PointBatchPrimitiveFactory#

class ansys.stk.core.graphics.PointBatchPrimitiveFactory#

Render one or more points in the 3D scene. Each point in the batch has a unique position and an optional color. All points in the batch share the same pixel size. For best performance, avoid creating lots of batches with only a few points each…

Overview#

initialize

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

initialize_with_set_hint

Initialize a new instance of a point batch primitive with the specified set hint.

minimum_pixel_size_supported

Get the minimum pixel size supported by the video card.

maximum_pixel_size_supported

Get the maximum pixel size supported by the video card.

Import detail#

from ansys.stk.core.graphics import PointBatchPrimitiveFactory

Property detail#

property PointBatchPrimitiveFactory.minimum_pixel_size_supported: float#

Get the minimum pixel size supported by the video card.

property PointBatchPrimitiveFactory.maximum_pixel_size_supported: float#

Get the maximum pixel size supported by the video card.

Method detail#

PointBatchPrimitiveFactory.initialize(self) PointBatchPrimitive#

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

Returns:

PointBatchPrimitive

PointBatchPrimitiveFactory.initialize_with_set_hint(self, set_hint: SetHint) PointBatchPrimitive#

Initialize a new instance of a point batch primitive with the specified set hint.

Parameters:

set_hint : SetHint

Returns:

PointBatchPrimitive