IPrimitive#

class ansys.stk.core.graphics.IPrimitive#

Primitives represent objects rendered in the 3D scene.

Overview#

reference_frame

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

bounding_sphere

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

automatically_compute_bounding_sphere

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

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.

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.

color

Get or set the primitiveโ€™s color.

translucency

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

tag

Get or set custom value associated with this primitive.

Import detail#

from ansys.stk.core.graphics import IPrimitive

Property detail#

property IPrimitive.reference_frame: IVectorGeometryToolSystem#

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

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.automatically_compute_bounding_sphere: bool#

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

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.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.color: Color#

Get or set the primitiveโ€™s color.

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.

property IPrimitive.tag: Any#

Get or set custom value associated with this primitive.