M_Rhino_Geometry_Mesh_CreateFromSphere - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh.CreateFromSphere Method

Constructs a mesh sphere.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static Mesh CreateFromSphere(
	Sphere sphere,
	int xCount,
	int yCount
)

VB

Public Shared Function CreateFromSphere ( 
	sphere As Sphere,
	xCount As Integer,
	yCount As Integer
) As Mesh

Parameters

 

sphere
Type: Rhino.Geometry.Sphere
Base sphere for mesh.
xCount
Type: System.Int32
Number of faces in the around direction.
yCount
Type: System.Int32
Number of faces in the top-to-bottom direction.

Return Value

Type: Mesh
[Missing documentation for "M:Rhino.Geometry.Mesh.CreateFromSphere(Rhino.Geometry.Sphere,System.Int32,System.Int32)"]

Exceptions

 

Exception Condition
ArgumentException Thrown when sphere is invalid.
ArgumentOutOfRangeException Thrown when xCount is less than or equal to two.
ArgumentOutOfRangeException Thrown when yCount is less than or equal to two.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️