<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello!</div>
<div> </div>
<div>I've written Pyton code to retrieve the mesh data inside a python script. I can get the verice locations of each mesh element, but only the first order nodes.</div>
<div> </div>
<div>The produced .msh file does contain high order nodes, the MeshElements from the faces (or regions) not. How can I get the high order nodes?</div>
<div> </div>
<div>Here's the code sceleton:</div>
<div> </div>
<div>
<div> GmshInitialize()<br/>
GmshSetOption("Mesh", "ElementOrder", float(MeshingWidgetContainer.order))</div>
<div><br/>
....</div>
<div> ....</div>
<div> </div>
<div> g = GModel()<br/>
<br/>
g.readOCCBREP(buffer3DModel)</div>
<div> </div>
<div> g.mesh(2)<br/>
e = g.bindingsGetFaces()<br/>
for faces in e:<br/>
for z in range(0, faces.getNumMeshElements()):</div>
<div> meshElement = <span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">aces.getMeshElement(z)</span></div>
<div> for y in range(0, meshElement.getNumEdges()):<br/>
meshEdge = meshElement.getEdge(y)<br/>
firstMeshVertex = meshEdge.getVertex(0)<br/>
self.mesh.append( [firstMeshVertex.x(), firstMeshVertex.y(), firstMeshVertex.z()] ) # do anything with <span style="font-family: Verdana; font-size: 12px; line-height: 19.2000007629395px;">firstMeshVertex </span></div>
<div> ....<br/>
<br/>
g.writeMSH(str(MeshingWidgetContainer.filePath) + str(os.sep) + str(self.meshObject.Label) + str(".msh"))<br/>
<br/>
GmshFinalize()</div>
<div> </div>
<div>With much greetings,</div>
<div>Michael</div>
<div> </div>
</div></div></body></html>