SurfaceMeshPrimitiveFactory#

class ansys.stk.core.graphics.SurfaceMeshPrimitiveFactory#

A triangle mesh primitive for meshes on the surface that need to conform to terrain.

Overview#

initialize

Initialize a default surface mesh primitive. This is equivalent to constructing a surface mesh with a set hint of Frequent and a surface mesh rendering method of Automatic.

initialize_with_set_hint

Initialize a surface mesh primitive with the specified setHint. This is equivalent to constructing a surface mesh with the specified setHint and a surface mesh rendering method of Automatic.

initialize_with_set_hint_and_rendering_method

Initialize a surface mesh primitive with the specified setHint and renderingMethod.

supported

Determine whether or not the video card supports the surface mesh primitive with the given renderingMethod.

supported_with_default_rendering_method

Determine whether or not the video card supports the surface mesh primitive. This is equivalent to calling Supported with automatic.

Import detail#

from ansys.stk.core.graphics import SurfaceMeshPrimitiveFactory

Method detail#

SurfaceMeshPrimitiveFactory.initialize(self) SurfaceMeshPrimitive#

Initialize a default surface mesh primitive. This is equivalent to constructing a surface mesh with a set hint of Frequent and a surface mesh rendering method of Automatic.

Returns:

SurfaceMeshPrimitive

SurfaceMeshPrimitiveFactory.initialize_with_set_hint(self, set_hint: SetHint) SurfaceMeshPrimitive#

Initialize a surface mesh primitive with the specified setHint. This is equivalent to constructing a surface mesh with the specified setHint and a surface mesh rendering method of Automatic.

Parameters:

set_hint : SetHint

Returns:

SurfaceMeshPrimitive

SurfaceMeshPrimitiveFactory.initialize_with_set_hint_and_rendering_method(self, set_hint: SetHint, rendering_method: SurfaceMeshRenderingMethod) SurfaceMeshPrimitive#

Initialize a surface mesh primitive with the specified setHint and renderingMethod.

Parameters:

set_hint : SetHint

rendering_method : SurfaceMeshRenderingMethod

Returns:

SurfaceMeshPrimitive

SurfaceMeshPrimitiveFactory.supported(self, rendering_method: SurfaceMeshRenderingMethod) bool#

Determine whether or not the video card supports the surface mesh primitive with the given renderingMethod.

Parameters:

rendering_method : SurfaceMeshRenderingMethod

Returns:

bool

SurfaceMeshPrimitiveFactory.supported_with_default_rendering_method(self) bool#

Determine whether or not the video card supports the surface mesh primitive. This is equivalent to calling Supported with automatic.

Returns:

bool