Click or drag to resize

SolidPrimitiveSet Method (IEnumerableCartesian, IEnumerableCartesian, IEnumerableInt32, IEnumerableInt32, WindingOrder, BoundingSphere, Boolean)

Defines the solid using the specified parameters. 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(
	IEnumerable<Cartesian> positions,
	IEnumerable<Cartesian> normals,
	IEnumerable<int> indices,
	IEnumerable<int> outlineIndices,
	WindingOrder windingOrder,
	BoundingSphere boundingSphere,
	bool closed
)

Parameters

positions
Type: System.Collections.GenericIEnumerableCartesian
The positions of the solid.
normals
Type: System.Collections.GenericIEnumerableCartesian
The normals of the mesh.
indices
Type: System.Collections.GenericIEnumerableInt32
The indices into positions and normals.
outlineIndices
Type: System.Collections.GenericIEnumerableInt32
The indices into positions that define an outline of the solid.
windingOrder
Type: AGI.Foundation.Geometry.DiscreteWindingOrder
The orientation of front-facing triangles.
boundingSphere
Type: AGI.Foundation.Graphics.AdvancedBoundingSphere
The bounding sphere that encompasses the solid.
closed
Type: SystemBoolean
Indicates if the solid is closed. For example, a box with six faces is closed. If one face is removed, the box is open.
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