dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11079
mesh entities in python
Hi,
I'm new in Swing and python bindings, so maybe answer to my question
will be trivial. Could you please tell me, if it is possible to access
into mesh entities from python. For example:
c = Cell(mesh, 111)
print c.numEntities(0)
ent = c.entities()
print ent
gives output:
4
<Swig Object of type 'dolfin::uint *' at 0x3a26fb8>
According to the documentation I expect that entities method "Return
array of indices ". 'dolfin::uint *' is propably pointer to array, but
ent[0] fails with "'int' object is unsubscriptable" error.
So how can I get elements for this array?
regrd.
BArtek
Follow ups