M_Rhino_Geometry_Mesh_CreateFromSphere - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs a mesh sphere.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
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
- 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.
Type: Mesh
[Missing documentation for "M:Rhino.Geometry.Mesh.CreateFromSphere(Rhino.Geometry.Sphere,System.Int32,System.Int32)"]
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. |
Supported in: 6.0.16224.21491, 5D58w