Geometry¶
-
class
pythreejs.
Geometry
[source]¶ This widget has some manual overrides on the Python side.
Inherits
BaseGeometry
.Three.js docs: https://threejs.org/docs/#api/core/Geometry
-
vertices
¶ List(trait=List()).tag(sync=True)
-
colors
¶ List(trait=Unicode(), default_value=["#ffffff"]).tag(sync=True)
-
faces
¶ TypedTuple(trait=Face3()).tag(sync=True)
-
faceVertexUvs
¶ List().tag(sync=True)
-
lineDistances
¶ List().tag(sync=True)
-
morphTargets
¶ List().tag(sync=True)
-
morphNormals
¶ List().tag(sync=True)
-
skinWeights
¶ List(trait=List()).tag(sync=True)
-
skinIndices
¶ List(trait=List()).tag(sync=True)
-
_ref_geometry
¶ Instance(BaseGeometry, allow_none=True).tag(sync=True, **widget_serialization)
-
_store_ref
¶ Bool(False, allow_none=False).tag(sync=True)
-
type
¶ Unicode("Geometry", allow_none=False).tag(sync=True)
-
classmethod
from_geometry
(geometry, store_ref=False)[source]¶ Creates a PlainGeometry of another geometry.
store_ref determines if the reference is stored after initalization. If it is, it will be used for future embedding.
NOTE: The PlainGeometry will copy the arrays from the source geometry. To avoid this, use PlainBufferGeometry.
-