discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Importing OBJ files

LM
Leonard Martin Struttmann
Thu, Nov 14, 2024 12:18 PM

I am attempting to import an OBJ file exported from PrusaSlicer. As
expected, when imported the obj does not align with any of the OpenSCAD
axis origins.

Since the OBJ file is ASCII text, and since it contains a list of vertices
in the format " v X Y Z", such as "v 100.008842 131.285110 1.463421", I
expected to be able to use the the negatives of the minimum X, Y, and Z
vertex values to translate the imported object to align with the OpenSCAD
origin.

However, that does not seem to be the case.  The only axis that this
appears to work on is the Z axis.  I do not understand this.

What am I doing wrong?

Thanks!  Len

I am attempting to import an OBJ file exported from PrusaSlicer. As expected, when imported the obj does not align with any of the OpenSCAD axis origins. Since the OBJ file is ASCII text, and since it contains a list of vertices in the format " v X Y Z", such as "v 100.008842 131.285110 1.463421", I expected to be able to use the the negatives of the minimum X, Y, and Z vertex values to translate the imported object to align with the OpenSCAD origin. However, that does not seem to be the case. The only axis that this appears to work on is the Z axis. I do not understand this. What am I doing wrong? Thanks! Len
LM
Leonard Martin Struttmann
Thu, Nov 14, 2024 12:41 PM

Never mind.  I'm not sure what I was doing wrong, but this process seems to
be working fine for me now.

Sorry for the interruption.  Len

On Thu, Nov 14, 2024 at 6:18 AM Leonard Martin Struttmann <
lenstruttmann@gmail.com> wrote:

I am attempting to import an OBJ file exported from PrusaSlicer. As
expected, when imported the obj does not align with any of the OpenSCAD
axis origins.

Since the OBJ file is ASCII text, and since it contains a list of vertices
in the format " v X Y Z", such as "v 100.008842 131.285110 1.463421", I
expected to be able to use the the negatives of the minimum X, Y, and Z
vertex values to translate the imported object to align with the OpenSCAD
origin.

However, that does not seem to be the case.  The only axis that this
appears to work on is the Z axis.  I do not understand this.

What am I doing wrong?

Thanks!  Len

Never mind. I'm not sure what I was doing wrong, but this process seems to be working fine for me now. Sorry for the interruption. Len On Thu, Nov 14, 2024 at 6:18 AM Leonard Martin Struttmann < lenstruttmann@gmail.com> wrote: > I am attempting to import an OBJ file exported from PrusaSlicer. As > expected, when imported the obj does not align with any of the OpenSCAD > axis origins. > > Since the OBJ file is ASCII text, and since it contains a list of vertices > in the format " v X Y Z", such as "v 100.008842 131.285110 1.463421", I > expected to be able to use the the negatives of the minimum X, Y, and Z > vertex values to translate the imported object to align with the OpenSCAD > origin. > > However, that does not seem to be the case. The only axis that this > appears to work on is the Z axis. I do not understand this. > > What am I doing wrong? > > Thanks! Len > > > >