<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hello,
<div dir="auto"><br>
</div>
<div dir="auto">My apologies if this is a dumb question, but I am having difficulty working out how to find the coordinates of a transformed point in the python api.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I have created a point with:</div>
<div dir="auto"><br>
</div>
<div dir="auto">apex_pt = gmsh.model.occ.addPoint(a_epi,0.0,0.0,0,-1)<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">and transform it (translate and rotate) with a routine that I wrote:</div>
<div dir="auto"><br>
</div>
<div dir="auto">transform([0,apex_pt])<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Having inspected the geometry and mesh, I know that the transformation puts the point in the correct position. However, I cannot work out how to find the coordinates of the new point. I have tried using getEntities (for dimension 0 entities)
and getNodes for each entity returned, but this does not work for the one particular entity which is my apex_pt.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Any help would be much appreciated.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Peter.</div>
</div>
</div>
<div name="messageSignatureSection"><br>
<div class="matchFont">---------------------------------------------------------------------<br>
<br>
Associate Professor Peter Johnston (FAustMS, FIMA)<br>
School of Environment and Science<br>
Griffith University | Nathan | QLD 4111 | Technology (N44) Room 3.19<br>
T +61 7 373 57748| F +61 7 373 57656 Email p.johnston@griffith.edu.au</div>
</div>
</body>
</html>