help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Feature Request] [nurbs] IGES Export - Unit Magnitude (mm instead o


From: jcorno
Subject: Re: [Feature Request] [nurbs] IGES Export - Unit Magnitude (mm instead of m)
Date: Thu, 25 Jan 2018 01:40:30 -0700 (MST)

Dear Adam,

thanks for the feedback. I was the one writing the nrb2iges function and I
did not think of the problem at the time. 

It might require some time to add options to the functions such that the
user can set whichever unit she/he prefers. In the meantime, one quick
solution would be to directly modify the function nrb2iges. To switch from
metres to millimetres it should be sufficient to change lines 61 and 62 of
the function in such a way:

G{14}= '2';                             % Unit Flag (2 = millimetres, 6 =
metres)
G{15}= HString('MM');             % Units  (millimetres = "MM, metres = "M")

You can find more information about the IGES file format specification, for
example, here:
https://filemonger.com/specs/igs/devdept.com/version6.pdf
on page 20 you will find all the flags for the different units...

I hope this was helpful. Best regards,
Jacopo Corno



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]