> I think your question is the same as mine : subject 'navigating data'
> You are at the topology level (TopoDS_Shape ), and you need to drill down to 
> the geometry level (Handle_Geom_Surface)?
> I think the answer has something to do with the various Exploreres
> TopExp_Explorer
> BRepTools_WireExplorer
I urge you not to use these classes, but rather their pythonic nephews found in 
OCC.Utils.Topology.Topo.
These classes are really neat and clean.


> I'm reading a data from a STL or STEP file, after reading I have a
> TopoDS_Shape. Now I want to transform that TopoDS_Shape to a
> Handle_Geom_BSplineSurface using the method SurfaceToBSplineSurface
> from GeomConvert class, but it waits as argument a
> Handle_Geom_Surface. I can't find a way to transform that TopoDS_Shape
> to Handle_Geom_Surface. How can I do that? Are there a better way to
> transform a TopoDS_Shape to Handle_Geom_BSplineSurface ?

What you could do is to look into the BRepAdaptor module.
Its likely that the BRepAdaptor_Surface is what you'll need. 
Adaptors are a nice way to couple to Topological ( BRep* ) and the Geometrical 
( Geom* ) API's together.

-jelle
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to