Dear Max,

Thanks for your reply and suggestion. Your approach was the first thing I 
tried, but it did not appear to work when the surfaces and volumes were created 
from imported STL files.

Perhaps there is difference between your approach and my original approach?

Thanks again,

Peter.


---------------------------------------------------------------------

Associate Professor Peter Johnston (FAustMS, FIMA)
School of Environment and Science
Griffith University | Nathan | QLD 4111 | Technology (N44) Room 3.19
T +61 7 373 57748| F +61 7 373 57656 Email [email protected]
On 20 Mar 2019, 1:51 AM +1000, Max Orok <[email protected]>, wrote:
Hi Peter,

For two volumes (including STL imports), you can find the volume between them 
using the `BooleanDifference` command.

Here is a small example:

SetFactory("OpenCASCADE");

Box(1) = {-10, -10, -10, 20, 20, 20};

Sphere(2) = {0, 0, 0, 10};

BooleanDifference{ Volume{1}; Delete; }{ Volume{2}; Delete; }

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.

Picture after using a clipping plane:

<image.png>

On Tue, Mar 19, 2019 at 2:41 AM Peter Johnston 
<[email protected]<mailto:[email protected]>> wrote:
Hello again,

I’m sorry to keep asking questions about STL files, but there is something else 
that has arisen.

I import two surfaces, one inside the other as follows:


Merge "inner_shape.stl";

Mesh.Smoothing=100;

//+

Surface Loop(1) = {1};

//+

Volume(1) = {1};

//+

Merge "outer_shape.stl";

//+

Surface Loop(2) = {2};

//+

Volume(2) = {2};

Can I mesh the space in between the two shapes?

Thanks,

Peter.

---------------------------------------------------------------------

Associate Professor Peter Johnston (FAustMS, FIMA)
School of Environment and Science
Griffith University | Nathan | QLD 4111 | Technology (N44) Room 3.19
T +61 7 373 57748| F +61 7 373 57656 Email 
[email protected]<mailto:[email protected]>
_______________________________________________
gmsh mailing list
[email protected]<mailto:[email protected]>
http://onelab.info/mailman/listinfo/gmsh<http://onelab.info/mailman/listinfo/gmsh>


--
Max Orok
Contractor
www.mevex.com<http://www.mevex.com>

[https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ]
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to