Welcome! Log In Create A New Profile

Advanced

how to modify a STL file

Posted by joedassin 
how to modify a STL file
December 16, 2013 09:47AM
Hi all,


I am starting to learn how to use Openscad, as a former mechanical designer I am much more used to software such a ProE or Solidworks...

My first attempt was to open a file I took from Thingiverse, and to modify it.

I tried to make a small hole inside, but the whole file got damaged (see the attached picture).

Can anyone help me ? How to modify an existing file ?

Thanks
Attachments:
open | download - before.png (8.9 KB)
open | download - after.png (7.6 KB)
Re: how to modify a STL file
December 16, 2013 11:13AM
First make sure that the STL file is manifold.
Use netfabb Studio Basic for this purpose or the netfabb Cloud Service that can fix even more problems.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: how to modify a STL file
December 19, 2013 01:55PM
I agree with Bob.

Run it through NetFabb first an than bolean subtract the fixed object with your object as the hole.
for instance like below

module yourhole () { // a circular shaped hole module
translate (v=[x, y, z]) // put the hole in the right position
rotate (a=[x, y, z]) // put the hole in the right direction
cylinder (h=5, r1=3, r2=3); // the hole itself
} // end of module


difference () { // start the subtraction
import ("object_fixed.stl"); // the original fixed object
yourhole (); // the module that builds your own hole object
} // end of the subtraction


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Sorry, only registered users may post in this forum.

Click here to login