[Gmsh] Finding coordinates of transformed point in python api
Peter Johnston
p.johnston at griffith.edu.au
Mon Sep 30 04:27:29 CEST 2019
Hello,
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.
I have created a point with:
apex_pt = gmsh.model.occ.addPoint(a_epi,0.0,0.0,0,-1)
and transform it (translate and rotate) with a routine that I wrote:
transform([0,apex_pt])
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.
Any help would be much appreciated.
Thanks,
Peter.
---------------------------------------------------------------------
Associate Professor Peter Johnston (FAustMS, FIMA)
School of Environment and Science
Griffith University | Nathan | QLD 4111 | Technology (N44) Room 3.19
T +61 7 373 57748| F +61 7 373 57656 Email p.johnston at griffith.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190930/f41137f4/attachment.html>
More information about the gmsh
mailing list