Hello

I'm trying to iterate over the faces of a mesh, but can't get the iteration
to work. The mesh does have faces as you can see below:

In [288]: aMesh
Out[288]: <OCC.SMESH.SMESH_Mesh; proxy of <Swig Object of type 'SMESH_Mesh
*' at 0x122f8e540> >

In [289]: aMesh.GetMeshDS()
Out[289]: <OCC.SMESHDS.SMESHDS_Mesh; proxy of <Swig Object of type
'SMESHDS_Mesh *' at 0x122fd5120> >

In [290]: aMesh.GetMeshDS().NbFaces()
Out[290]: 3454

In [293]: it = aMesh.GetMeshDS().facesIterator()
swig/python detected a memory leak of type 'SMDS_FaceIteratorPtr *', no
destructor found.

I was expecting to be able to do it.next() until I get a None, but can't
access even the first element. I'm new to most of this, so it might be
something obvious.

Any ideas?

Thanks!
Benjamin


-- 
Benjamin Nortier
bjnort...@gmail.com
http://www.twitter.com/bjnortier
http://www.1011ltd.com
+44 (0)778 946 1959
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to