Click or drag to resize

MeshVertexListSetVertex Method (Int32, Single, Single, Single)

Sets or adds a vertex to the Vertex List.

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

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

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

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool SetVertex(
	int index,
	float x,
	float y,
	float z


Type: SystemInt32
Index of vertex to set.
Type: SystemSingle
X component of vertex location.
Type: SystemSingle
Y component of vertex location.
Type: SystemSingle
Z component of vertex location.

Return Value

Type: Boolean
true on success, false on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also