When you import an stl file, where exactly is it positioned?
I tried adjusting the values for center=true/false but that did not seem to
do anything
import("Your stl", center=true/false)
--
View this message in context: http://forum.openscad.org/position-of-stl-file-after-import-stl-tp11010.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
On Mon, Jan 12, 2015 at 08:16:07AM -0700, digital wrote:
When you import an stl file, where exactly is it positioned?
I tried adjusting the values for center=true/false but that did not seem to
do anything
import("Your stl", center=true/false)
It uses the coordinates specified in the STL.
--
Kind regards,
Loong Jin
is there a module or library that can determine where the stl's origin is
i.e. getorigin();
--
View this message in context: http://forum.openscad.org/position-of-stl-file-after-import-stl-tp11010p11016.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Unfortunately no, ATM, there has been discussion about such but no resolution
to date.
BTW, there is no center= parameter to import()
Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/position-of-stl-file-after-import-stl-tp11010p11019.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
On Mon, Jan 12, 2015 at 01:53:54PM -0700, digital wrote:
is there a module or library that can determine where the stl's origin is
i.e. getorigin();
I can make you one:
function getorigin () = [0, 0, 0];
Really, when you import an STL, you're using the same coordinate system within
your SCAD model as well as the STL, so the origin definitely coincides with
OpenSCAD's origin. :)
--
Kind regards,
Loong Jin