Skip to main content

PrimitiveFittingResult

Other

Results from primitive fitting operation.

Import

import ScriptingApi as api

# Access the class
# PrimitiveFittingResult is available via api.PrimitiveFittingResult

Properties

primitive_name

Name of the created primitive object.

Type: str


primitive_type

Type of primitive fitted.

Type: PrimitiveFittingType


center

Center position [x, y, z] of the fitted primitive.

Type: list


radius

Radius of sphere or cylinder (if applicable).

Type: float


height

Height of cylinder or cone (if applicable).

Type: float


axis

Axis direction [x, y, z] for cylinder, cone, or plane normal.

Type: list


apex_angle

Apex angle in degrees for cone (if applicable).

Type: float


fitting_error

Fitting error (root mean square distance to fitted primitive).

Type: float


See Also