Class MeshUtils.Face
References a slice of indices for a face.
Inheritance
System.Object
MeshUtils.Face
Implements
System.Collections.Generic.IReadOnlyList<System.Int32>
System.Collections.Generic.IEnumerable<System.Int32>
System.Collections.IEnumerable
System.Collections.Generic.IReadOnlyCollection<System.Int32>
Assembly: Sylves.dll
Syntax
public sealed class Face : ValueType
Constructors
Face(Int32[], Int32, Int32, Boolean, Boolean)
Declaration
public Face(int[] indices, int offset, int length, bool invertWinding, bool negateTail = false)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
System.Boolean |
invertWinding |
|
System.Boolean |
negateTail |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Indices
Declaration
public int[] Indices { get; set; }
Property Value
Type |
Description |
System.Int32[] |
|
InvertWinding
Declaration
public bool InvertWinding { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Item[Int32]
Declaration
public int this[int i] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Property Value
Type |
Description |
System.Int32 |
|
Length
Declaration
public int Length { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
NegateTail
Declaration
public bool NegateTail { get; }
Property Value
Type |
Description |
System.Boolean |
|
Offset
Declaration
public int Offset { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Int32> |
|
GetFaceVertexPairs(Vector3[])
Declaration
public IEnumerable<(Vector3, Vector3)> GetFaceVertexPairs(Vector3[] vertices)
Parameters
Type |
Name |
Description |
Vector3[] |
vertices |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.ValueTuple<Vector3, Vector3>> |
|
GetFaceVertices(Vector3[])
Declaration
public IEnumerable<Vector3> GetFaceVertices(Vector3[] vertices)
Parameters
Type |
Name |
Description |
Vector3[] |
vertices |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Vector3> |
|
Implements
System.Collections.Generic.IReadOnlyList<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
System.Collections.Generic.IReadOnlyCollection<>