[Gmsh] rotating an stl

Christophe Geuzaine cgeuzaine at uliege.be
Thu Jul 26 17:56:03 CEST 2018



> On 25 Jul 2018, at 14:24, Ricardo Ruiz Baier <ruizbaier at maths.ox.ac.uk> wrote:
> 
> 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.

All the geometrical transformation are applied on the CAD (geometry) level - there's nothing implemented on the mesh level.

Christophe

> 
> Kind regards,
> 
> Ricardo
> 
> 
> 
> <test_surface.stl>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180726/31f748c9/attachment.html>


More information about the gmsh mailing list