from OCC.DataExchange.utils import file_to_shape # cad =
file_to_shape('cad.step')
from OCC.Utils.Topology import Topo

for solid in Topo(cad).solids():
    for face in Topo(solid):


Than use the  LProp3d_SLProps to compute the curvature on the surface.

-jelle




On Sat, Jul 7, 2012 at 7:48 PM, Dan Ullfig <dullfig90...@sbcglobal.net>wrote:

>   Hi All:
>
> Just hoping you guys will point me in the right direction. What I want to
> do is import a solid model (step file), and then count how many faces there
> are in the solid, and how many of those faces are flat. I have been reading
> the openCASCADE online documentation, and it is not immediately obvious how
> this could be done, although I can’t believe that there would be no way of
> doing this.
>
> Dan
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to