Hey Andy, here’s a quick example…
// assume we're inside an async function const sphere = new Rhino3dm.Sphere([0, 0, 0], 12) console.log(sphere.diameter) const brep = sphere.toBrep() const mp = new Rhino3dm.MeshingParameters(0.5) const res = await compute.Mesh.createFromBrep1(brep, mp) const meshes = res.map(r => Rhino3dm.CommonObject.decode(r)) console.log(meshes.vertices().count)
The rhino3dm.js API documentation describes the
MeshingParameters class further.
Thanks Will! I didn’t realize that rhino3dm.js had its own API docs so that will be very helpful.
The various API docs are all linked from https://developer.rhino3d.com/api/, to save you searching around!