> The python OCC.Utils package looks really useful… Sweet.
> but I still seem to be stuck... - I can't cant drill down to the geometry > level > > looking at > http://2.bp.blogspot.com/_ZnQO9nI8DrY/SYn-gi04zCI/AAAAAAAAAG0/ed5c_GHlW5g/s1600-h/abstract-2.png > I want to go from the face down to the surface (i assume there must be some > kind of BRep surface down there) Sure. Here's an example. from OCC.Utils.Construct import * from OCC.BRepTools import * p1,p2,p3,p4 = gp_Pnt(), gp_Pnt(0,1,0), gp_Pnt(1,1,0), gp_Pnt(1,0,0) wire = make_closed_polygon([p1,p2,p3,p4]) face = make_face(wire) # returns Geom.Geom_Surface srf = BRep_Tool().Surface(face).GetObject() However, the OCC API has trizillion methods. What do you need specifically? For instance; to get the gaussian curvature of a surface, you dont need to go to the Geom level. > the Topo class allows me to go from the face to other topology entities, like > wires and edges. But I can't see a way of getting to the actual geometry. (Or > am I misunderstanding something…) Hard to say, I think you always need to work as high-level as possible. You should avoid diving into the Geometry too soon. So, tell me what you need, or see what you can find on the doxygen documentation. Finally; have a look at the examples/Level2/PAF/* This wraps the GEOM api ( OCC.GEOMAlgo / GEOMImpl ) in a nice pythonic manner. PAF gives us relations, rules and associative / parametric geometry. Checkout the cool demo here. -jelle
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users