<div dir="ltr"><div dir="ltr"><div>Hi Peter, <br></div><div><br></div><div>For two volumes (including STL imports), you can find the volume between them using the `BooleanDifference` command. <br></div><div><br></div><div>Here is a small example: <br></div><div><br></div><div>SetFactory("OpenCASCADE");<br><br>Box(1) = {-10, -10, -10, 20, 20, 20};<br><br>Sphere(2) = {0, 0, 0, 10};<br><br>BooleanDifference{ Volume{1}; Delete; }{ Volume{2}; Delete; }<br></div><div><br></div><div>Also, depending on the number of shapes you're importing, the `Coherence` command might also help if you find that volumes don't end up sharing mesh faces. <br></div><div><br></div><div>Picture after using a clipping plane: <br></div><div><br></div><div><div><img src="cid:ii_jtfyd0i70" alt="image.png" width="473" height="454"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 19, 2019 at 2:41 AM Peter Johnston <<a href="mailto:p.johnston@griffith.edu.au">p.johnston@griffith.edu.au</a>> wrote:<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>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Hello again,
<div><br>
</div>
<div>I’m sorry to keep asking questions about STL files, but there is something else that has arisen.</div>
<div><br>
</div>
<div>I import two surfaces, one inside the other as follows:</div>
<div><br>
</div>
<div>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Merge "inner_shape.stl";</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Mesh.Smoothing=100;</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
//+</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Surface Loop(1) = {1};</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
//+</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Volume(1) = {1};</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
//+</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Merge "outer_shape.stl";</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
//+</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Surface Loop(2) = {2};</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
//+</p>
<p style="margin:0px;color:rgb(0,0,0);background-color:rgb(255,255,168)">
Volume(2) = {2};</p>
</div>
</div>
<div name="messageSignatureSection"><br>
<div class="gmail-m_3045325878615082150matchFont">Can I mesh the space in between the two shapes? </div>
<div class="gmail-m_3045325878615082150matchFont"><br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
</div>
<div class="gmail-m_3045325878615082150matchFont">Thanks,</div>
<div class="gmail-m_3045325878615082150matchFont"><br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
</div>
<div class="gmail-m_3045325878615082150matchFont">Peter.</div>
<div class="gmail-m_3045325878615082150matchFont"><br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
</div>
<div class="gmail-m_3045325878615082150matchFont">---------------------------------------------------------------------<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Associate Professor Peter Johnston (FAustMS, FIMA)<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
School of Environment and Science<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Griffith University | Nathan | QLD 4111 | Technology (N44) Room 3.19<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
T +61 7 373 57748| F +61 7 373 57656 Email <a href="mailto:p.johnston@griffith.edu.au" target="_blank">p.johnston@griffith.edu.au</a></div>
</div>
</div>

_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>