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)
public void Set(
	IEnumerable<Cartesian> positions,
	IEnumerable<Cartesian> normals,
	IEnumerable<int> indices,
	IEnumerable<int> outlineIndices,
	WindingOrder windingOrder,
	BoundingSphere boundingSphere,
	bool closed


Type: System.Collections.GenericIEnumerableCartesian
The positions of the solid.
Type: System.Collections.GenericIEnumerableCartesian
The normals of the mesh.
Type: System.Collections.GenericIEnumerableInt32
The indices into positions and normals.
Type: System.Collections.GenericIEnumerableInt32
The indices into positions that define an outline of the solid.
Type: AGI.Foundation.Geometry.DiscreteWindingOrder
The orientation of front-facing triangles.
Type: AGI.Foundation.Graphics.AdvancedBoundingSphere
The bounding sphere that encompasses the solid.
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.

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