RhinoCommon API
MeshCreateFromSphere Method |
Constructs a mesh sphere.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0

public static Mesh CreateFromSphere( Sphere sphere, int xCount, int yCount )
Public Shared Function CreateFromSphere ( sphere As Sphere, xCount As Integer, yCount As Integer ) As Mesh
Parameters
- sphere
- Type: Rhino.GeometrySphere
Base sphere for mesh. - xCount
- Type: SystemInt32
Number of faces in the around direction. - yCount
- Type: SystemInt32
Number of faces in the top-to-bottom direction.
Return Value
Type: Mesh[Missing <returns> 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. |
