} else // Show the spheres only - not necessary code
Handle(AIS_Shape) AIStempsphere=new AIS_Shape(tempSphere);
Handle(AIS_Shape) AISBottle=new AIS_Shape(finalshape);
if (mydebug) theContext->SetDisplayMode(AISBottle,AIS_WireFrame,true);
I added the flag debug to see how are spatially located the spheres.
The code works for 1 row but give me a fault when I add a row (as in the example above)
Feel free to play with it..;)
So my question:
1) is the code right?(i.e. some faults because the resulting shape is temp?)
2) The geometry i want to build is tecnically feseabel in Opencascade? (the cheese?)
3) this 3D is very similar to this http://www.opencascade.org/org/forum/thread_9201/?forum=3
and another one where it was suggested to create a compound of objects and teh perform the boolean operation one time. This is the way I'll test..
4) if it's a bug i already sent a mail to the bugmaster but in my account i cannot open new issues.
Autoanswer: I did a quick test and using BRepAlgoAPI_Cut works for this example. It's pretty confusing having two functions doing the same thing!
BRepAlgoAPI contains a new version of Boolean operations algorithm.
BRepAlgo package contains old algorithm of Boolean operations. It is kept for compatibility and not maintained more.