<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"><div>I'm trying to find the best way to approach the following problem:</div><div><br></div><div>I have a parallelepiped with the edge alone z much smaller than that along x and y (this is typical, for example, </div><div>for PCB traces) and I would like to guarantee, in the volume, a predefined number of layers (np_layers) along z</div><div>edge.</div><div><br></div><div>If I build the structure in gmsh this is quite simple to obtain by saying:</div><div><br></div><div>SetFactory("OpenCASCADE");</div><div>thickness = 140e-6;</div><div>nr_layers = 4;</div><div>surf=newreg;</div><div>Rectangle(surf)={.001,0,0,.001,.001,0};</div><div>Extruded_surf() = Extrude { 0,0, thickness } { Surface{surf}; Layers{nr_layers}; Recombine;};</div><div><br></div><div dir="ltr" data-setdir="false">But how can I apply this in case the parallelepiped is coming from a step file? The command above</div><div dir="ltr" data-setdir="false">(Extrude{...}{... Layers{}}) can't be used.</div><div dir="ltr" data-setdir="false"><br></div><div>I was thinking about slicing the Volume with some planes (see example below)</div><div><br></div><div>SetFactory("OpenCASCADE");</div><div>thickness = 140e-6;</div><div>nr_layers = 4;</div><div>surf=newreg;</div><div>Rectangle(surf)={.001,0,0,.001,.001,0};</div><div>Extruded_surf() = Extrude { 0,0, thickness } { Surface{surf};};</div><div>vol() = Extruded_surf(1);</div><div>For i In {1:nr_layers-1}</div><div>surf1(i-1)=newreg;</div><div>Rectangle(surf1(i-1)) = {.001, 0, thickness/nr_layers*i, .001, .001};</div><div>EndFor</div><div>results() = BooleanFragments{Volume{vol()};Delete;}{Surface{surf1()}; Delete;};</div><div><br></div><div>but when trying to recombine the triangles in the layers I get the following error:</div><div><br></div><div>Error   : Pyramid top vertex already classified on volume 2 (!= 3) - non-manifold quad boundaries not supported</div><div>yet</div><div><br></div><div>Any suggestion on how to address the issue is much appreciated.</div><div><br></div><div>Regards,</div><div><br></div><div>Marco</div><div dir="ltr" data-setdir="false"><br></div></div></div></body></html>