<html><head></head><body><div class="ydpc15e12f7yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Christophe,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">thanks for clarifying, I've found that I can solve the problem by doing first translate/rotate and then extrude.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Marco</div><div dir="ltr" data-setdir="false"><br></div><div><br></div>
        
        </div><div id="ydpbc3ac5dyahoo_quoted_7680719382" class="ydpbc3ac5dyahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Il venerdì 20 dicembre 2019, 08:27:44 CET, Christophe Geuzaine <cgeuzaine@uliege.be> ha scritto:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr"><br clear="none"><br clear="none">> On 19 Dec 2019, at 21:24, Marco Antolovic <<a shape="rect" href="mailto:marco_antolovic@yahoo.it" rel="nofollow" target="_blank">marco_antolovic@yahoo.it</a>> wrote:<br clear="none">> <br clear="none">> Hi all,<br clear="none">> <br clear="none">> I have noticed a strange behavior for layered extrusion. It appears that if you first extrude a point to line and then operate a translation on the line than the layering is lost:<br clear="none">> <br clear="none"><br clear="none">That's currently (unfortunately) normal. Extruded meshes rely on the fact that the mesher knows how the geometry was constructed: currently as soon as a geometrical entity is modified, we assume that this relationship is lost.<br clear="none"><br clear="none">We should handle translations and other simple transforms and modify the extrusion functions accordingly - but that's in the TODO list. Don't hesitate to contribute a patch if this is critical for your workflow.<br clear="none"><br clear="none">Christophe<div class="ydpbc3ac5dyqt1505811742" id="ydpbc3ac5dyqtfd62298"><br clear="none"><br clear="none"><br clear="none"><br clear="none">> my GMSH version is version 4.5.0-git-a2a0ecd on a Mac<br clear="none">> <br clear="none">> below is my code:<br clear="none">> <br clear="none">> SetFactory("OpenCASCADE");<br clear="none">> <br clear="none">> trace_width = DefineNumber[ 1, Min .01, Max 1000, Step .01, Name "  Track parameters/trace width (mm)"  ];<br clear="none">> trace_width = trace_width/1000;<br clear="none">> <br clear="none">> trace_thickness = DefineNumber[ 1, Min .01, Max 1000, Step .01, Name "  Track parameters/trace thickness (mm)"  ];<br clear="none">> trace_thickness = trace_thickness/1000;<br clear="none">> <br clear="none">> trace_start_right = newp;<br clear="none">> Point(trace_start_right) = {0, 0, -trace_thickness/2, trace_width};<br clear="none">> extrude_point = Extrude {-trace_width, 0, 0}{ Point{trace_start_right}; Layers { 3 };};<br clear="none">> trace_width_line = extrude_point(1);<br clear="none">> Translate { -.1, .1, 0 } { Line{trace_width_line}; } // this operation voids the Layers{3} request<br clear="none">> <br clear="none">> Is this normal?<br clear="none">> <br clear="none">> Many thanks,<br clear="none">> <br clear="none">> Marco</div><br clear="none">> <br clear="none">> <br clear="none">>  <br clear="none">> _______________________________________________<br clear="none">> gmsh mailing list<br clear="none">> <a shape="rect" href="mailto:gmsh@onelab.info" rel="nofollow" target="_blank">gmsh@onelab.info</a><br clear="none">> <a shape="rect" href="http://onelab.info/mailman/listinfo/gmsh" rel="nofollow" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br clear="none"><br clear="none">— <br clear="none">Prof. Christophe Geuzaine<br clear="none">University of Liege, Electrical Engineering and Computer Science <br clear="none"><a shape="rect" href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="nofollow" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><div class="ydpbc3ac5dyqt1505811742" id="ydpbc3ac5dyqtfd03070"><br clear="none"><br clear="none"><br clear="none"></div></div></div>
            </div>
        </div></body></html>