[Gmsh] rotating an stl

Ricardo Ruiz Baier ruizbaier at maths.ox.ac.uk
Wed Jul 25 14:24:18 CEST 2018


Dear all,


I would like to rotate an stl (actually, the resulting volumetric mesh)
around the z-axis.

If I simply do

Merge "test_surface.stl";
Surface Loop(2) = {1};
Volume(3) = {2};
Rotate {{0, 0, 1}, {0, 0, 0}, Pi/4} { Volume{3};}

Then I can generate the volumetric mesh (and eventually rescale it with
Mesh.ScalingFactor = 2;) but the rotation has not been applied.

If instead I apply the rotation on the surface

Rotate {{0, 0, 1}, {0, 0, 0}, Pi/4} { Surface{1};}

then gmsh throws an error:

Impossible to transform entity 1 (of type 305)


Any assistance with this issue is much appreciated.

Kind regards,

Ricardo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_surface.stl
Type: application/sla
Size: 1232810 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20180725/62329d7d/attachment-0001.stl>


More information about the gmsh mailing list