discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

position of stl file after import stl

D
digital
Mon, Jan 12, 2015 3:16 PM

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.

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.
CL
Chow Loong Jin
Mon, Jan 12, 2015 5:59 PM

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

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
D
digital
Mon, Jan 12, 2015 8:53 PM

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.

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.
M
MichaelAtOz
Mon, Jan 12, 2015 10:03 PM

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.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

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.

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. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- 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.
CL
Chow Loong Jin
Tue, Jan 13, 2015 3:39 AM

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

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