Hi,
I was wondering what the fastest method to create and intersect two spheres is? I have to do this hundreds of times in a loop and it is going pretty slowly…so what I am doing is
- Creating two ON_Sphere
- Transforming them into breps using their GetNurbForm method:
- Intersecting those two breps with RhinoIntersectBreps().
As I said…pretty slow process… can I speed it up?
Thanks!
P.S. My ON_Sphere->ON_Brep* transformation looks like this:
ON_Sphere sphere(centerpt, radius);
ON_NurbsSurface spheresrf;
sphere.GetNurbForm( spheresrf );
ON_Surface* srf = spheresrf.Duplicate();
ON_Brep* brep = ON_Brep::New();
brep->Create( srf );
delete srf;
srf = 0;