[Gmsh] Another STL question

Max Orok morok at mevex.com
Wed Mar 20 00:33:16 CET 2019


Yes, sorry Peter, perhaps there are some differences I'm not aware of.
I mistook STL for STEP in your first email and STEP is the one I'm more
familiar with, having successfully used Boolean operations on.

Sincerely,
Max

On Tue, Mar 19, 2019 at 7:13 PM Peter Johnston <p.johnston at griffith.edu.au>
wrote:

> 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>
> 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
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>>
>
>
> --
> Max Orok
> Contractor
> www.mevex.com
>
>
>

-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190319/a059b8c5/attachment.html>


More information about the gmsh mailing list