<html><body><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000"><div>Dear Developers,</div><div><br data-mce-bogus="1"></div><div>I was going through the python demos and came across the following issue in the plugin.py example:</div><div><br data-mce-bogus="1"></div><div>when after creating a view with model data with:<br></div><div><br data-mce-bogus="1"></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">t = gmsh.view.add("some data")</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">gmsh.view.addModelData(t, 0, "test", "NodeData",</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> [1, 2, 3, 4],</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> [[1.],[10.],[20.],[1.]])</span><br></div><div><br></div><div>I try to retrieve some of the data with:</div><div><br data-mce-bogus="1"></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">dataType, tags, data, time, numComp = gmsh.view.getModelData(t, 0)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">print dataType, tags, data, time, numComp</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br data-mce-bogus="1"></span></div><div>i get empty arrays for tags and data:</div><div><br data-mce-bogus="1"></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">NodeData [] [] 0.0 1.</span></div><div><br></div><div>However, when I store the view in a .msh file and inspect it the data is there.</div><div><br data-mce-bogus="1"></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">gmsh.view.write(t, "test.msh")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br data-mce-bogus="1"></span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">$NodeData<br>1<br>"some data"<br>1<br>0<br>3<br>0<br>1<br>4<br>1 1<br>2 10<br>3 20<br>4 1<br>$EndNodeData</span></div><div><br></div><div>I have tried different versions of the gmsh library on different systems. All seem to have the same issue.</div><div><br data-mce-bogus="1"></div><div>Best regards,</div><div>Michiel Van Ginderachter</div><div><br></div><div data-marker="__SIG_PRE__"><div style="max-width: 450px; font-size: small;" data-mce-style="max-width: 450px; font-size: small;">
</div></div></div></body></html>