Click or drag to resize

SurfaceMeshPrimitiveSetWithoutTexturing Method

Defines the surface mesh using the specified surfaceTriangulator. The mesh is rendered in the primitive's ReferenceFrame.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
public void SetWithoutTexturing(
	SurfaceTriangulatorResult surfaceTriangulator


Type: AGI.Foundation.Geometry.DiscreteSurfaceTriangulatorResult
The surface triangulator used to define the surface mesh.
ArgumentNullExceptionsurfaceTriangulator is null.
CouldNotCreateVideoCardResourceException Could not allocate video memory for the mesh.
CouldNotCreateVideoCardResourceException Could not compile or link the required shaders. This may indicate that the video driver needs to be updated.

Calling this method is more efficient than calling Set(SurfaceTriangulatorResult) but the surface mesh will not render textures when this is used instead of Set(SurfaceTriangulatorResult). Therefore, only use SetWithoutTexturing when the surface mesh's Texture will only ever be null.

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