IPrimitive#

class ansys.stk.core.graphics.IPrimitive#

Primitives represent objects rendered in the 3D scene.

Overview#

automatically_compute_bounding_sphere

Get or set if the primitiveโ€™s bounding sphere is automatically computed.

bounding_sphere

Get or set the bounding sphere that encompasses the primitive. The center is defined in the primitiveโ€™s reference frame.

color

Get or set the primitiveโ€™s color.

display

Get or set if the primitive should be rendered. Both this and display condition must evaluate to true for the primitive to be rendered.

display_condition

Get or set the display condition that determines if the primitive should be rendered. Both this and display must evaluate to true for the primitive to be rendered.

reference_frame

Get or set the reference frame this primitive is defined and rendered in.

tag

Get or set custom value associated with this primitive.

translucency

Get or set the primitiveโ€™s translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.

Import detail#

from ansys.stk.core.graphics import IPrimitive

Property detail#

property IPrimitive.automatically_compute_bounding_sphere: bool#

Get or set if the primitiveโ€™s bounding sphere is automatically computed.

property IPrimitive.bounding_sphere: BoundingSphere#

Get or set the bounding sphere that encompasses the primitive. The center is defined in the primitiveโ€™s reference frame.

property IPrimitive.color: Color#

Get or set the primitiveโ€™s color.

property IPrimitive.display: bool#

Get or set if the primitive should be rendered. Both this and display condition must evaluate to true for the primitive to be rendered.

property IPrimitive.display_condition: IDisplayCondition#

Get or set the display condition that determines if the primitive should be rendered. Both this and display must evaluate to true for the primitive to be rendered.

property IPrimitive.reference_frame: IVectorGeometryToolSystem#

Get or set the reference frame this primitive is defined and rendered in.

property IPrimitive.tag: Any#

Get or set custom value associated with this primitive.

property IPrimitive.translucency: float#

Get or set the primitiveโ€™s translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.