> Your Topology.py script is not buggy!
Feww....
What arrogance to think that topology is handled by this module.
Still, it works:
for f in facelist:
dumpTopology(f);
->
from OCC.Utils.Topology import Topo
for f in Topo(box).faces():
dumpTopology(f)
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
Face:27861
. Wire:27913
.. Edge:28561
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
... Vertex:28101 ( -3.93700787402 -3.93700787402 -0.393700787402 )
.. Edge:28873
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
... Vertex:29001 ( -3.93700787402 3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
.. Edge:29185
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
... Vertex:28377 ( -3.93700787402 -3.93700787402 -1.1811023622 )
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users