<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr" data-setdir="false">Hi all,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">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:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">my GMSH version is version 4.5.0-git-a2a0ecd on a Mac</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">below is my code:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>SetFactory("OpenCASCADE");</div><div><br></div><div>trace_width = DefineNumber[ 1, Min .01, Max 1000, Step .01, Name " Track parameters/trace width (mm)" ];</div><div>trace_width = trace_width/1000;</div><div><br></div><div>trace_thickness = DefineNumber[ 1, Min .01, Max 1000, Step .01, Name " Track parameters/trace thickness (mm)" ];</div><div>trace_thickness = trace_thickness/1000;</div><div><br></div><div>trace_start_right = newp;</div><div>Point(trace_start_right) = {0, 0, -trace_thickness/2, trace_width};</div><div>extrude_point = Extrude {-trace_width, 0, 0}{ Point{trace_start_right}; Layers { 3 };};</div><div>trace_width_line = extrude_point(1);</div><div dir="ltr" data-setdir="false">Translate { -.1, .1, 0 } { Line{trace_width_line}; } // this operation voids the Layers{3} request</div></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Is this normal?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Many thanks,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Marco</div></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> </div></div></body></html>