SolidPrimitiveFactory#

class ansys.stk.core.graphics.SolidPrimitiveFactory#

Render filled solid objects and their outlines. Example solids include boxes and ellipsoids. Various effects are supported, such as displaying the solid’s silhouette, and hiding the outline of the backside of the solid…

Overview#

initialize

Initialize a default solid primitive. This is equivalent to constructing a solid primitive with a set hint of Frequent.

initialize_with_hint

Initialize a solid primitive with the specified setHint.

minimum_silhouette_width_supported

Get the minimum silhouette width, in pixels, supported by the video card.

maximum_silhouette_width_supported

Get the maximum silhouette width, in pixels, supported by the video card.

Import detail#

from ansys.stk.core.graphics import SolidPrimitiveFactory

Property detail#

property SolidPrimitiveFactory.minimum_silhouette_width_supported: float#

Get the minimum silhouette width, in pixels, supported by the video card.

property SolidPrimitiveFactory.maximum_silhouette_width_supported: float#

Get the maximum silhouette width, in pixels, supported by the video card.

Method detail#

SolidPrimitiveFactory.initialize(self) SolidPrimitive#

Initialize a default solid primitive. This is equivalent to constructing a solid primitive with a set hint of Frequent.

Returns:

SolidPrimitive

SolidPrimitiveFactory.initialize_with_hint(self, set_hint: SetHint) SolidPrimitive#

Initialize a solid primitive with the specified setHint.

Parameters:

set_hint : SetHint

Returns:

SolidPrimitive