ThreeConeObject.geometry_to_objects
- ThreeConeObject.geometry_to_objects(geometry, color, contrastcolor=None, transformation=None)
Convert a PyThreeJS geometry to a list of PyThreeJS objects.
- Parameters:
- geometry
three.Geometry
The PyThreeJS geometry to convert.
- colorrgb1 | rgb255 |
compas.colors.Color
The RGB color of the geometry.
- contrastcolorrgb1 | rgb255 |
compas.colors.Color
, optional The RGB color of the edges.
- transformation
compas.geometry.Transformation
, optional The transformation to apply to the geometry.
- geometry
- Returns:
- tuple[three.Mesh, three.LineSegments]
List of PyThreeJS objects created.