[Gmsh] Geometry.OCCTargetUnit

jeremy theler jeremy at seamplex.com
Tue Dec 5 12:13:39 CET 2017


Find attached one step file that works with 3.0.6 but fails with newest git
using Geometry.OCCTargetUnit = "MM";

Both versions give the same mesh if I set the new lc to 1e-3 times the old
lc.

On Mon, Dec 4, 2017 at 9:16 AM jeremy theler <jeremy at seamplex.com> wrote:

> Hi Chrstophe
>
> I tried setting it to "MM" and the result was the same. I will take a look
> again and send a mwe illustrating the issue.
>
> Regards
> jeremy
>
> On Mon, Dec 4, 2017, 08:45 Christophe Geuzaine <cgeuzaine at uliege.be>
> wrote:
>
>>
>>
>> > On 4 Dec 2017, at 10:59, Jeremy Theler <jeremy at seamplex.com> wrote:
>> >
>> > Is the new property Geometry.OCCTargetUnit working as expected?
>> >
>>
>> Yes.
>>
>> > How can I revert back to the original behavior, i.e. do not assume
>> anything about units in an imported OCC model and leave them as
>> "non-dimensional"?
>>
>> Actually, when importing a STEP and IGES file with OpenCASCADE a "target
>> unit" was always set - and it was set to "MM", i.e. millimeters.
>>
>> To revert millimeters, use Geometry.OCCTargetUnit = "MM";
>>
>> Christophe
>>
>> >
>> > Thanks
>> > --
>> > Jeremy Theler
>> > www.seamplex.com
>> >
>> > _______________________________________________
>> > gmsh mailing list
>> > gmsh at onelab.info
>> > http://onelab.info/mailman/listinfo/gmsh
>>
>>
>> --
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science
>> http://www.montefiore.ulg.ac.be/~geuzaine
>>
>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>>
>> --
> --
> jeremy theler
> www.seamplex.com
>
-- 
--
jeremy theler
www.seamplex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20171205/d5bf4c3f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: engine-piston.geo
Type: application/octet-stream
Size: 848 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20171205/d5bf4c3f/attachment-0001.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: engine-piston.stp
Type: application/octet-stream
Size: 265535 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20171205/d5bf4c3f/attachment-0001.stp>


More information about the gmsh mailing list