Giter VIP home page Giter VIP logo

Comments (9)

thomthom avatar thomthom commented on June 20, 2024

Which one of the files are you trying to import?

from sketchup-stl.

indrora avatar indrora commented on June 20, 2024

I'm trying to import sch_base_rev2_no_support.stl.

MeshLab says it has 205k verticies and 68k faces.

(edit: If I use MeshLab to transmogrify it into a Collada DAE model, it's happy. Takes a few seconds, but it's happy)

from sketchup-stl.

thomthom avatar thomthom commented on June 20, 2024

What's your import settings?

I tried SCH_Base_rev2_no_support.STL and it imported within 1-2min. However, I set the import units to meters. Comes in huge.

image

But I did that because if you import really dense meshes you end up with vertices very close to each other - less than 1mm and that comes within the lower range of SU tolerance. After that things start merging and breaking apart. Currently the script will try to heal these things which in turn becomes very slow.

I suspect this might be the cause - and that the script could be improved to detect this and even time out. But please verify so we can be sure.

from sketchup-stl.

thomthom avatar thomthom commented on June 20, 2024

Also, what SketchUp version do you use? (I don' think it should matter - but just to be sure.)

from sketchup-stl.

thomthom avatar thomthom commented on June 20, 2024

Even when imported in meters there are edges ~15mm. It's clear that any smaller units will cause issues. The model is very dense - even for 3d printing this seem excessive.

image

from sketchup-stl.

indrora avatar indrora commented on June 20, 2024

My settings are the defaults: Import in MM, preserve object origin. If I set import to be in "meters" or "feet", it does indeed import after a few minutes of an unresponsive interface, but it imports.

I'm on Sketchup �Make 2016 with no other extensions added.

Again, exporting a Collada DAE model from MeshLab or severely decimating the mesh makes it possible to import into SketchUp.

from sketchup-stl.

thomthom avatar thomthom commented on June 20, 2024

What is the original unit of that STL file? Millimeters?
I don't think there's any way to not get issues with the file if you import in original size. Since SU has a fixed precision which was tuned for architectural size.
The best the extension can do is try to avoid locking up for too long.

from sketchup-stl.

indrora avatar indrora commented on June 20, 2024

Original unit is MM. I don't think we're hitting a limitation of SketchUp. If I transmogrify the model Into a DAE model using MeshLab, it imports happily (and nicer)

from sketchup-stl.

thomthom avatar thomthom commented on June 20, 2024

Su has a hard coded precision of 1/1000". If the model have 17mm edges when imported at meters it will be well under that limit when importing in mm.
Native importers use the C API or the old C++ SDK which might not trigger the same internal functions as the Ruby API. The Ruby API cause a lot more clean up operation to run automatically.
Even if dae or anything manage to import initially there will quickly be issues when manipulating the mesh as the algorithm will fail due to the vertices being treated as equal.

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.