create MeshFunction from MeshValueCollection
I'm currently improving mesh converter from Triangle format in order to support edge boundary markers. It now outputs single XML file with mesh and MeshValueCollection on edges. But I can't find the way how to create MeshFunction from it to be written to VTK file. Documented way fails:
mesh = Mesh('A.1.xml')
mf = MeshFunction(
Traceback (most recent call last):
File "testTriangle2x
mf = MeshFunction(
File "/usr/local/
return MeshFunctionUIn
File "/usr/local/
_cpp.
TypeError: in method 'new_MeshFuncti
Would somebody try to reproduce it on development version for example with aneurysm mesh in data/meshes dir
mesh = Mesh('aneurysm.
mf = MeshFunction(
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jan Blechta for more information if necessary.