PrimitiveType
- Line: A cylinder connecting two points. - Circle: A disk primitive defined by center and radius. - Sphere: A spherical volume defined by center and radius. - Ellipsoid: An ellipsoid defined by center and three radii (X, Y, Z). - Cylinder: A cylinder connecting two endpoint positions with a radius. - Capsule: A cylinder with hemispherical caps at both ends. - Tube: A hollow cylinder (pipe) with inner and outer radii. - Cone: A cone connecting two endpoint positions with a base radius. - Arrow: An arrow with shaft and tip connecting two points. - Spline: A curved tube following a spline path through control points. - Plane: A flat rectangular surface defined by center, dimensions, and orientation. - Cube: A cubic volume defined by center and edge length. - Cuboid: A box-shaped volume defined by center and three dimensions (width, height, depth).
Import
import ScriptingApi as api
# Access the class
# PrimitiveType is available via api.PrimitiveType
Enumeration Values
Enumeration Type from PrimitiveType
| Value | Description |
|---|---|
PrimitiveType.Point | Point option |
PrimitiveType.Line | Line option |
PrimitiveType.Circle | Circle option |
PrimitiveType.Sphere | Sphere option |
PrimitiveType.Ellipsoid | Ellipsoid option |
PrimitiveType.Cylinder | Cylinder option |
PrimitiveType.Capsule | Capsule option |
PrimitiveType.Tube | Tube option |
PrimitiveType.Cone | Cone option |
PrimitiveType.Arrow | Arrow option |
PrimitiveType.Spline | Spline option |
PrimitiveType.Plane | Plane option |
PrimitiveType.Cube | Cube option |
PrimitiveType.Cuboid | Cuboid option |
Usage Example
import ScriptingApi as api
# Access enumeration values
value = api.PrimitiveType.Point