MeshVertexNormalList.SetNormal Method (Int32, Double, Double, Double)

MeshVertexNormalListSetNormal Method (Int32, Double, Double, Double)

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.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool SetNormal(
	int index,
	double x,
	double y,
	double z
)
Public Function SetNormal ( 
	index As Integer,
	x As Double,
	y As Double,
	z As Double
) As Boolean

Parameters

index
Type: SystemInt32
Index of vertex normal to set.
x
Type: SystemDouble
X component of vertex normal.
y
Type: SystemDouble
Y component of vertex normal.
z
Type: SystemDouble
Z component of vertex normal.

Return Value

Type: Boolean
true on success, false on failure.
See Also