} else // Show the spheres only - not necessary code
{
Handle(AIS_Shape) AIStempsphere=new AIS_Shape(tempSphere);
theContext->Display(AIStempsphere, Standard_False);
theContext->SetMaterial(AIStempsphere,Graphic3d_NOM_NEON_PHC);
//theContext->SetTransparency(AIStempsphere,0.9);
theContext->Display(AIStempsphere, Standard_False);
theContext->SetDisplayMode(AIStempsphere,1,true);
}
}
}
//}
Handle(AIS_Shape) AISBottle=new AIS_Shape(finalshape);
theContext->SetMaterial(AISBottle,Graphic3d_NOM_GOLD);
theContext->SetColor(AISBottle, Quantity_NOC_RED);
if (mydebug) theContext->SetDisplayMode(AISBottle,AIS_WireFrame,true);
else theContext->SetDisplayMode(AISBottle,AIS_Shaded,true);
theContext->Display(AISBottle, Standard_False);
...endcode
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.
thanks
Michele Fiorentino
2012/08/16 17:12
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!
Forum supervisor
2012/08/16 17:40
Dear Michele,
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.
Regards