<div dir="ltr">Already figured it out, all I needed to da was declare the physical groups again after applying the cut :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 19 de fev. de 2020 às 23:39, Rinaldi Polese Petrolli <<a href="mailto:rinaldi.petrolli@wsdg.com">rinaldi.petrolli@wsdg.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Hope everything is good. I'm working merging two meshes into one via the .cut OCC class method, but my output has all the Physical Groups defined as 0, even when adding a PhysicalGroup to the model. Here's a quick example. </div><div><br></div><div>
gmsh.model .occ.addPlaneSurface([-(12 + i)], i + 2 + 100)</div><div>gmsh.model.addPhysicalGroup(2, [i + 2 + 100], i + 2 + 100)<br></div><div><br></div><div>When I open the meshes all of the surfaces have the same PhysicalGorup index. Is there a way to use the OCC class and set Physical Groups as it can be done using the geo class?<br clear="all"><div><br></div><div>Thanks!</div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#000000">Rinaldi Petrolli<br></font></div><div><font color="#000000">Acoustic Engineer</font></div><div><font color="#000000">Walters-Storyk Design Group</font><br></div><div><font color="#6aa84f">Architectural Acoustic Consulting</font></div><div><font color="#6aa84f">Media Systems Engineering</font></div><div><a href="https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305" target="_blank">262 Martin Avenue</a></div><div><a href="https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305" target="_blank">Highland, NY 12528, USA</a></div><div><font color="#000000">O +1 845 691 9300</font></div><div><font color="#000000">F +1 845 691 9361</font></div><div><a href="http://goog_1434455421/" target="_blank">rinaldi.petrolli@wsdg.com</a></div><div><a href="http://www.wsdg.com/" target="_blank">www.wsdg.com</a></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#000000">Rinaldi Petrolli<br></font></div><div><font color="#000000">Acoustic Engineer</font></div><div><font color="#000000">Walters-Storyk Design Group</font><br></div><div><font color="#6aa84f">Architectural Acoustic Consulting</font></div><div><font color="#6aa84f">Media Systems Engineering</font></div><div><a href="https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305" target="_blank">262 Martin Avenue</a></div><div><a href="https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305" target="_blank">Highland, NY 12528, USA</a></div><div><font color="#000000">O +1 845 691 9300</font></div><div><font color="#000000">F +1 845 691 9361</font></div><div><a href="http://goog_1434455421/" target="_blank">rinaldi.petrolli@wsdg.com</a></div><div><a href="http://www.wsdg.com/" target="_blank">www.wsdg.com</a></div></div></div></div></div></div></div></div></div></div></div>