[Gmsh] Another STL question
Peter Johnston
p.johnston at griffith.edu.au
Wed Mar 20 00:13:05 CET 2019
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 p.johnston at griffith.edu.au
On 20 Mar 2019, 1:51 AM +1000, Max Orok <morok at mevex.com>, 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 <p.johnston at griffith.edu.au<mailto:p.johnston at griffith.edu.au>> 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 p.johnston at griffith.edu.au<mailto:p.johnston at griffith.edu.au>
_______________________________________________
gmsh mailing list
gmsh at onelab.info<mailto:gmsh at onelab.info>
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190319/96e902f3/attachment-0001.html>
More information about the gmsh
mailing list