IPrimitive#
- class ansys.stk.core.graphics.IPrimitive#
Primitives represent objects rendered in the 3D scene.
Overview#
Get or set the reference frame this primitive is defined and rendered in. |
|
Get or set the bounding sphere that encompasses the primitive. The center is defined in the primitiveโs reference frame. |
|
Get or set if the primitiveโs bounding sphere is automatically computed. |
|
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. |
|
Get or set if the primitive should be rendered. Both this and display condition must evaluate to true for the primitive to be rendered. |
|
Get or set the primitiveโs color. |
|
Get or set the primitiveโs translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent. |
|
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.