STL import script with some helpers
All  1-8  9-12

Previous
Next
 From:  Hamish Mead (HAIRYKIWI)
8860.9 
Very nice work Ralf!

There can never be enough conversion tools - even if extra time is still needed to clean and tweak such imported files.

Many thanks :)

- Hamish
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Chris (UGMENTALCASE)
8860.10 
Hi,

Is there a way to edit this script so it just imports the stl without trying to make it solid and so on? I have literally no idea when it comes to scripts so forgive me :-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8860.11 In reply to 8860.10 
Hi Chris, you might want to try converting the STL file to .obj format and then use the OBJ to 3DM wireframe converter from here:
https://moi3d.com/wiki/Resources#Obj23dmWireframe_converter

That makes wireframe lines or closed polylines for each polygon instead of trying to construct a solid out of it which is much more heavyweight.

If you did want to edit this script to not try to join it into a solid, the joining part is done by a function named JoinTriangles(). The function is called on line number 17 in the file _STLimport.js . It's a long line of code, look for the piece of it that has this:

var solid=JoinTriangles(triangles);var sol=solid.numSolids;if(sol<1){var message="SORRY!\nI WAS NOT ABLE TO MAKE A SOLID!\nDont't try to \"Clean flat surfaces\"";}else{var message=sol+" SOLID CREATED!";};

Delete all of that or "comment it out" by putting /*    */ around it and then it shouldn't do the joining part.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Chris (UGMENTALCASE)
8860.12 In reply to 8860.11 
Cheers I'll take a look. I have used the other script a little bit, but sometimes there is just too many lines!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-8  9-12