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:
geometrythree.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.

transformationcompas.geometry.Transformation, optional

The transformation to apply to the geometry.

Returns:
tuple[three.Mesh, three.LineSegments]

List of PyThreeJS objects created.