Click or drag to resize

SurfaceMeshPrimitive Constructor (SetHint, SurfaceMeshRenderingMethod)

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

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public SurfaceMeshPrimitive(
	SetHint setHint,
	SurfaceMeshRenderingMethod renderingMethod
)

Parameters

setHint
Type: AGI.Foundation.GraphicsSetHint
The expected usage for Set methods. See the Set Hint topic for more information on selecting an appropriate value.
renderingMethod
Type: AGI.Foundation.Graphics.AdvancedSurfaceMeshRenderingMethod
The method used to render the primitive.
Exceptions
ExceptionCondition
UnsupportedCaseExceptionsetHint must be Infrequent or Frequent. Partial is not supported by this primitive.
UnsupportedCaseExceptionrenderingMethod must be a valid value in SurfaceMeshRenderingMethod.
InsufficientVideoCardException The surface mesh is not supported by this video card. Check Supported to determine if the surface mesh is supported.
Remarks

After constructing the primitive, call Set(SurfaceTriangulatorResult) to provide it with a mesh for rendering.

The primitive's properties are initialized to the following values:

Once the primitive is constructed, it must be added to Primitives before it will be rendered.

See Also