I get the following error when trying to visualise a polyline: “An error occurred while generating the results”. This isn’t a very helpful error message.
The code is below:
from viktor import ViktorController
from viktor.parametrization import ViktorParametrization
from viktor.geometry import Point, Polyline
from viktor.views import GeometryView, GeometryResult
class Parametrization(ViktorParametrization):
pass
class Controller(ViktorController):
label = "My Entity Type"
parametrization = Parametrization
@GeometryView("3D", duration_guess=1)
def get_geometry(self, params, **kwargs):
test = Polyline(Point(0, 0, 0), Point(1,1,1), Point(3, 3, 3))
return GeometryResult(test)
I get the following output from the CLI:
: App is ready
: Job (uid: 4594) received - EntityType: Controller - call: parametrization
: Job (uid: 4594) completed in 0ms
If anyone can help, I’d greatly appreciate it.