Hey Thomas,
Thanks for the prompt reply. :)
I have had a look at PAF , should be the way to go in the longer term.
However I was going to spend a good few hours getting my head around
pythonOCC in general. It is a _massive_ api and the typing and toolkits
are quite daunting.
I tried the Brep_Tool as you sugguested:
fused is my proto_bottle
> faces = TopExp_Explorer(fused.Shape(),TopAbs_FACE)
> mostZ = 0
> while faces.More():
> current_face = faces.Current()
> surf = BRep_Tool().Surface(current_face)
> faces.Next()
However it seems to give me a type error
Traceback (most recent call last):
File "./viewer.py", line 90, in <module>
bottle()
File "./viewer.py", line 77, in bottle
surf = BRep_Tool().Surface(current_face)
TypeError: in method 'BRep_Tool_Surface', argument 2 of type
'TopoDS_Face const &'
I assume that it is looking for a face pointer rather that a direct face.
Simon
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users