Click or drag to resize

MeshCreateFromTorus Method

Constructs a mesh torus.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public static Mesh CreateFromTorus(
	Torus torus,
	int vertical,
	int around
)

Parameters

torus
Type: Rhino.GeometryTorus
The torus.
vertical
Type: SystemInt32
Number of faces in the top-to-bottom direction.
around
Type: SystemInt32
Number of faces around the torus.

Return Value

Type: Mesh
Returns a mesh torus if successful, null otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when torus is invalid.
See Also