You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've naively tried using a LineCurve3 for the path but I get an error along the following lines:
TraitError: The 'path' trait of a TubeGeometry instance must be a Curve or None, but a value of class 'pythreejs.extras.curves.LineCurve3_autogen.LineCurve3' (i.e. LineCurve3()) was specified.
Is there a way to get TubeGeometry to work as things stand? Or can you sketch out what work would need to be done?
Comparing this with another example where a constructor takes another pythreejs object:
Here I find that SphereGeometry is configured in three-class-config.js to have superClass BaseGeometry. Whereas LineCurve3 has a fairly empty configuration, and the autogen python has only ThreeWidget rather than Curve as its superclass.
Many thanks.
The text was updated successfully, but these errors were encountered:
I think this was left as a TODO because some logic has to be added to make sure Curve cannot be instantiated on the kernel side (it is an abstract base class). If you want to help with this, you could start by:
Updating the class config to match the three.js docs as closely as possible.
Add a manual override class in Python that cannot be instantiated directly (but can be instantiated as a subclass).
In your notebook
examples/Geometries.ipynb
you have the following for TubeGeometry:I've naively tried using a
LineCurve3
for the path but I get an error along the following lines:TraitError: The 'path' trait of a TubeGeometry instance must be a Curve or None, but a value of class 'pythreejs.extras.curves.LineCurve3_autogen.LineCurve3' (i.e. LineCurve3()) was specified.
Is there a way to get TubeGeometry to work as things stand? Or can you sketch out what work would need to be done?
Comparing this with another example where a constructor takes another pythreejs object:
Here I find that
SphereGeometry
is configured inthree-class-config.js
to have superClassBaseGeometry
. WhereasLineCurve3
has a fairly empty configuration, and the autogen python has only ThreeWidget rather than Curve as its superclass.Many thanks.
The text was updated successfully, but these errors were encountered: