Click or drag to resize

SolidPrimitiveSet Method (SolidTriangulatorResult)

Defines the solid using the specified solidTriangulatorResult. The solid is rendered in the primitive's ReferenceFrame.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.2.399.0 (19.2.399.0)
Syntax
public void Set(
	SolidTriangulatorResult solidTriangulatorResult
)

Parameters

solidTriangulatorResult
Type: AGI.Foundation.Geometry.DiscreteSolidTriangulatorResult
The triangulator used to define the solid.
Exceptions
ExceptionCondition
ArgumentNullExceptionsolidTriangulatorResult is null.
CouldNotCreateVideoCardResourceException Could not allocate video memory for the solid.
Remarks

If this method is called frequently, it is recommended to construct the primitive with Frequent, which is the default. If this method will be called only once or infrequently, construct the primitive with Infrequent. See the Set Hint topic for more information.

If the primitive's AutomaticallyComputeBoundingSphere property is , the primitive's BoundingSphere is computed based on the input. Otherwise, it is the caller's responsibility to update the primitive's BoundingSphere to a sphere that encompasses the input.

See Also