SolidPrimitive.Set Method (IEnumerable<Cartesian>, IEnumerable<Cartesian>, IEnumerable<Int32>, IEnumerable<Int32>, 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: 24.3.420.0 (24.3.420.0)
Syntaxpublic void Set(
IEnumerable<Cartesian> positions,
IEnumerable<Cartesian> normals,
IEnumerable<int> indices,
IEnumerable<int> outlineIndices,
WindingOrder windingOrder,
BoundingSphere boundingSphere,
bool closed
)
Public Sub Set (
positions As IEnumerable(Of Cartesian),
normals As IEnumerable(Of Cartesian),
indices As IEnumerable(Of Integer),
outlineIndices As IEnumerable(Of Integer),
windingOrder As WindingOrder,
boundingSphere As BoundingSphere,
closed As Boolean
)
public:
void Set(
IEnumerable<Cartesian>^ positions,
IEnumerable<Cartesian>^ normals,
IEnumerable<int>^ indices,
IEnumerable<int>^ outlineIndices,
WindingOrder windingOrder,
BoundingSphere boundingSphere,
bool closed
)
member Set :
positions : IEnumerable<Cartesian> *
normals : IEnumerable<Cartesian> *
indices : IEnumerable<int> *
outlineIndices : IEnumerable<int> *
windingOrder : WindingOrder *
boundingSphere : BoundingSphere *
closed : bool -> unit
Parameters
- positions
- Type: System.Collections.Generic.IEnumerable<Cartesian>
The positions of the solid. - normals
- Type: System.Collections.Generic.IEnumerable<Cartesian>
The normals of the mesh. - indices
- Type: System.Collections.Generic.IEnumerable<Int32>
The indices into positions and normals. - outlineIndices
- Type: System.Collections.Generic.IEnumerable<Int32>
The indices into positions that define an outline of the solid. - windingOrder
- Type: AGI.Foundation.Geometry.Discrete.WindingOrder
The orientation of front-facing triangles. - boundingSphere
- Type: AGI.Foundation.Graphics.Advanced.BoundingSphere
The bounding sphere that encompasses the solid. - closed
- Type: System.Boolean
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 true, 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