MeshVertexNormalList

References
Provides access to the Vertex Normals of a Mesh.

Properties

Capacity

#Since v6.0
Gets or sets the amount of vertex normals that the list can hold without resizing.
public int Capacity { get; set; }

Count

#Since v5.0
Gets or sets the number of mesh vertex normals.
public int Count { get; set; }
Count
Explicit

ICollection<Vector3f>.IsReadOnly

#
Explicit

ICollection.IsSynchronized

#
bool ICollection.IsSynchronized
Explicit

ICollection.SyncRoot

#
Explicit

IList.IsFixedSize

#
bool IList.IsFixedSize
Explicit

IList.IsReadOnly

#
bool IList.IsReadOnly

Indexers

Explicit

IList.this[]

#
object IList.this[
index
]

this[]

#
Gets or sets the vertex at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
public Vector3f this[
index
Index of control vertex to access.
] { get; set; }
The control vertex at [index].
IndexOutOfRangeExceptionThrown when the index is invalid.

Methods

Add

#Since v5.0
Adds a new vertex normal at the end of the list.
public int Add(
x,
X component of new vertex normal.
y,
Y component of new vertex normal.
z
Z component of new vertex normal.
)
The index of the newly added vertex normal.

Add

#Since v5.0
Adds a new vertex normal at the end of the list.
public int Add(
x,
X component of new vertex normal.
y,
Y component of new vertex normal.
z
Z component of new vertex normal.
)
The index of the newly added vertex normal.

Add

#Since v5.0
Adds a new vertex normal at the end of the list.
public int Add(
normal
new vertex normal.
)
The index of the newly added vertex normal.

Add

#Since v5.0
Adds a new vertex normal at the end of the list.
public int Add(
normal
new vertex normal.
)
The index of the newly added vertex normal.

AddRange

#Since v5.0
Appends a collection of normal vectors.
public bool AddRange(
normals
Normals to append.
)
true on success, false on failure.

Clear

#Since v5.0
Clears the vertex normal collection on the mesh.
public void Clear()

ComputeNormals

#ExampleSince v5.0
Computes the vertex normals based on the physical shape of the mesh.
public bool ComputeNormals()
true on success, false on failure.

Destroy

#Since v6.0
Releases all memory allocated to store vertex normals. The list capacity will be 0 after this call.

Subsequent calls can add new items.

public void Destroy()

Flip

#Since v5.0
Reverses direction of all vertex normals

This is the same as Mesh.Flip(true, false, false)

public void Flip()

GetEnumerator

#Since v5.0
Gets an enumerator that yields all normals (vectors) in this collection.
public IEnumerator<Vector3f> GetEnumerator()
The enumerator.

SetNormal

#Since v5.0
Sets or adds a vertex normal to the list.

If [index] is less than [Count], the existing vertex normal at [index] will be modified.

If [index] equals [Count], a new vertex normal is appended to the end of the list.

If [index] is larger than [Count], the function will return false.

public bool SetNormal(
index,
Index of vertex normal to set.
x,
X component of vertex normal.
y,
Y component of vertex normal.
z
Z component of vertex normal.
)
true on success, false on failure.

SetNormal

#Since v5.0
Sets or adds a normal to the list.

If [index] is less than [Count], the existing vertex normal at [index] will be modified.

If [index] equals [Count], a new vertex normal is appended to the end of the list.

If [index] is larger than [Count], the function will return false.

public bool SetNormal(
index,
Index of vertex normal to set.
x,
X component of vertex normal.
y,
Y component of vertex normal.
z
Z component of vertex normal.
)
true on success, false on failure.

SetNormal

#Since v5.0
Sets or adds a vertex normal to the list.

If [index] is less than [Count], the existing vertex normal at [index] will be modified.

If [index] equals [Count], a new vertex normal is appended to the end of the list.

If [index] is larger than [Count], the function will return false.

public bool SetNormal(
index,
Index of vertex normal to set.
normal
The new normal at the index.
)
true on success, false on failure.

SetNormal

#Since v5.0
Sets or adds a vertex normal to the list.

If [index] is less than [Count], the existing vertex normal at [index] will be modified.

If [index] equals [Count], a new vertex normal is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

public bool SetNormal(
index,
Index of vertex normal to set.
normal
The new normal at the index.
)
true on success, false on failure.

SetNormals

#Since v5.0
Sets all normal vectors in one go. This method destroys the current normal array if it exists.
public bool SetNormals(
normals
Normals for the entire mesh.
)
true on success, false on failure.
Explicit

ICollection<Vector3f>.Add

#Since v5.0
void ICollection<Vector3f>.Add()
Explicit

ICollection<Vector3f>.Contains

#
Explicit

ICollection<Vector3f>.CopyTo

#
void ICollection<Vector3f>.CopyTo(
array,
arrayIndex
)
Explicit

ICollection<Vector3f>.Remove

#
Explicit

IList<Vector3f>.IndexOf

#
int IList<Vector3f>.IndexOf()
Explicit

IList<Vector3f>.Insert

#
void IList<Vector3f>.Insert(
index,
item
)
Explicit

IList<Vector3f>.RemoveAt

#
void IList<Vector3f>.RemoveAt(
index
)
Explicit

ICollection.CopyTo

#
void ICollection.CopyTo(
array,
index
)
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Explicit

IList.Add

#
int IList.Add(
value
)
Explicit

IList.Contains

#
bool IList.Contains(
value
)
Explicit

IList.IndexOf

#
int IList.IndexOf(
value
)
Explicit

IList.Insert

#
void IList.Insert(
index,
value
)
Explicit

IList.Remove

#
void IList.Remove(
value
)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(
index
)

ToFloatArray

#Since v6.0
Copies all vertex normals to a linear array of float in x,y,z order
public float[] ToFloatArray()
The float array.

UnitizeNormals

#Since v5.0
Unitizes all vertex normals.
public bool UnitizeNormals()
true on success, false on failure.