Skip to main content

PrimitiveType

Other
  • 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

ValueDescription
PrimitiveType.PointPoint option
PrimitiveType.LineLine option
PrimitiveType.CircleCircle option
PrimitiveType.SphereSphere option
PrimitiveType.EllipsoidEllipsoid option
PrimitiveType.CylinderCylinder option
PrimitiveType.CapsuleCapsule option
PrimitiveType.TubeTube option
PrimitiveType.ConeCone option
PrimitiveType.ArrowArrow option
PrimitiveType.SplineSpline option
PrimitiveType.PlanePlane option
PrimitiveType.CubeCube option
PrimitiveType.CuboidCuboid option

Usage Example

import ScriptingApi as api

# Access enumeration values
value = api.PrimitiveType.Point

See Also