How to Mesh a Sphere on GHPython

Hi guys, I am very new at this, so I don’t know how to do pretty basic things.
How would I be able to mesh a sphere using a GHPython script?

I made the sphere using Rhino.Geometry, and below is what I have so far:

import rhinoscriptsyntax as rs
import Rhino.Geometry as rg


pt = rg.Point3d(0,0,0)

c = rg.Sphere(pt, 12)
a = c

Thanks!!

Use Mesh.CreateFromSphere.

– Dale

@dale Thanks!!

What if I wanted a specific type of mesh design, like triangles?

Well, there is Mesh.CreateIcoSphere, and Mesh.CreateQuadSphere too.

– Dale

1 Like

@dale Thanks so much. Just what I was looking for!!