Hello everybody, I'm István Csanády, and first of all, congrats to the project, it is really fascinating, and incredibly useful. I am new to pyocc, and trying to implement the basic opencascade "bottle tutorial". My problem is, that I can not "translate" the following part of the code from C++ to Python, since I dont know how to compare DynamicTypes of objects. Here is the C++ code: for(TopExp_Explorer aFaceExplorer(myBody , TopAbs_FACE) ; aFaceExplorer.More() ; aFaceExplorer.Next()){
TopoDS_Face aFace = TopoDS::Face(aFaceExplorer.Current()); Handle(Geom_Surface) aSurface = BRep_Tool::Surface(aFace); if(aSurface->DynamicType() == STANDARD_TYPE(Geom_Plane)) //Question: how does this line should look like in Python István _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users