PathPrimitiveFactory#

class ansys.stk.core.graphics.PathPrimitiveFactory#

Render a line to the 3D scene. Similar to the polyline primitive; however, the PathPrimitive was designed for the efficient addition/removal of points to/from the front or back of the line.

Overview#

initialize

Initialize a default path primitive. This is equivalent to constructing a path primitive with an initial capacity of 16.

initialize_with_capacity

Initialize a path primitive with the specified capacity.

minimum_width_supported

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

maximum_width_supported

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

Import detail#

from ansys.stk.core.graphics import PathPrimitiveFactory

Property detail#

property PathPrimitiveFactory.minimum_width_supported: float#

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

property PathPrimitiveFactory.maximum_width_supported: float#

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

Method detail#

PathPrimitiveFactory.initialize(self) PathPrimitive#

Initialize a default path primitive. This is equivalent to constructing a path primitive with an initial capacity of 16.

Returns:

PathPrimitive

PathPrimitiveFactory.initialize_with_capacity(self, capacity: int) PathPrimitive#

Initialize a path primitive with the specified capacity.

Parameters:

capacity : int

Returns:

PathPrimitive