Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39494

Convert a Brep into a Sphere in GH?

$
0
0

@RIL wrote:

If I have a (nurbs) sphere in Rhino and assigned it to a Brep component in GrassHopper, how do I retrieve the sphere as a Sphere type in GH? Is scripting the only or simplest way?

  var bb = Brep.GetBoundingBox(true);
  sph = new Sphere(bb.Center, (bb.Max.X - bb.Min.X) / 2);

// Rolf

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 39494

Trending Articles