[Gmsh] Geometry.OCCTargetUnit

Christophe Geuzaine cgeuzaine at uliege.be
Tue Dec 5 13:39:42 CET 2017


You need to specify Geometry.OCCTargetUnit before loading the step...

CG

> On 5 Dec 2017, at 12:13, jeremy theler <jeremy at seamplex.com> wrote:
> 
> 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
> <engine-piston.geo><engine-piston.stp>


-- 
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




More information about the gmsh mailing list