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. Cone fitting is not currently supported, so this is always 0.

Type: float


fitting_error​

Fitting error (root mean square distance to fitted primitive). This value is currently always 0 because the fitting methods do not return a fitting error.

Type: float


See Also​