Giter VIP home page Giter VIP logo

Comments (5)

thomthom avatar thomthom commented on June 16, 2024 1

STL format doesn't specify a standard for "up" as far as I can tell. Best is probably to add an import/export option for what axis is up.

from sketchup-stl.

thomthom avatar thomthom commented on June 16, 2024

This is a result of different applications using different axes for Up. SketchUp uses Z, sounds like Fusion 360 by default also use Z as Up. While Quick Look in OS-X uses Y.

When working with STL files most files I've used is Z up. Don't think I have many that is Y up.

Windows' preview window will display Z up:

image

I didn't find any options for Z or Y up though. Do Quick Look have some options for that?

Another issue here is that the API until recently didn't provide access of the model's working axis. Which is why changing the axes in SU didn't work for the export. Taking that into account would be good.

Though for this particular Z/Y issues I think the better solution is to have an Export option. Though I wonder if Quick View is the odd one out here, with Y up for STL files. I'd like to compare a few files from Thingyverse etc.

from sketchup-stl.

jsejcksn avatar jsejcksn commented on June 16, 2024

Hi @thomthom:

In a new install of Fusion 360, y-up is the default axis orientation.

QuickLook does not have any preferences because it is just a universal file preview tool. It is activated in macOS by pressing the spacebar when a file is selected and will give a visual preview of the contents if possible.

3D models (including STL files) can be opened natively in macOS in the Preview app. It also does not have any preferences related to up axis, although the Inspector (Info window) does display up axis if that information is embedded in a 3d model. I'm not sure if that's part of the STL spec or not—none of the STL files exported from SketchUp or Fusion 360 display information in that field in Preview, although the models exported from Fusion 360 are oriented differently depending on up axis. I have included a .zip of the STL files (I modeled an F this time so there's no symmetry/ambiguity) and here's a screenshot of the Inspector window of Preview:

inspector

stl-f-export-test.zip

from sketchup-stl.

jsejcksn avatar jsejcksn commented on June 16, 2024

Checking in on this after >1 yr. What's the status—is it fixed, in the backlog, etc.? (I haven't tested since raising the issue.)

from sketchup-stl.

thomthom avatar thomthom commented on June 16, 2024

SketchUp 2018 shipped with native STL importer/exporter. Both importer and exporter have options for Z/Y being up.

image

from sketchup-stl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.