Hi, everyone. I'm now working on a little CAD program using Open CASCADE, but I came across some problems when using the mesh utility, few examples are available and the reference documentation didn't provide enough imformation on how to use the APIs, can anybody help?
I've made a test program using the example given in the Open CASCADE help PDF file (Modeling Algorithms):
Standard_Real radius=10. ;
Standard_Real height=25. ;
BRepAPI_MakeCylinder myCyl (radius, height) ;
TopoDS_Shape myShape = myCyl.Shape() ;
Standard_Real Deflection = 0.01 ;
BRepMesh::Mesh (myShape, Deflection);
then convert the TopoDS_Shape into AIS object:
Handle(AIS_Shape) aisShape=new AIS_Shape(myShape);
at last display the AIS_Shape:
where myContext is an instance of Handle_AIS_InteractiveContext.
when the program runs, the cylinder appears, but the mesh result is not displayed, I don't know the reason.