discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Export pieces of an object?

MP
Marijan Pollak
Mon, Feb 27, 2017 10:35 PM

It may not be easy to do, If parts can be separated then do each piece in
separate program. If pieces are normally one atop another You can separate
them this way.
Maybe Puzzlecut can help, too. But what is reason You want them separated?
You can also write program that draw each piece You want to separate in
paralel and make Union at end so You have whole piece to control if it all
fit together properly and then simply disable one Module and save .stl file
and repeat same with other  module.
You should also have have some connecting elements or leave holes for
screws.
Most complex is to be sure that You would be able to put them together, as
You I asume need one part at end. But what is the main reason, they are
simply too large to be printed as one piece?

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20617.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It may not be easy to do, If parts can be separated then do each piece in separate program. If pieces are normally one atop another You can separate them this way. Maybe Puzzlecut can help, too. But what is reason You want them separated? You can also write program that draw each piece You want to separate in paralel and make Union at end so You have whole piece to control if it all fit together properly and then simply disable one Module and save .stl file and repeat same with other module. You should also have have some connecting elements or leave holes for screws. Most complex is to be sure that You would be able to put them together, as You I asume need one part at end. But what is the main reason, they are simply too large to be printed as one piece? -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20617.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jazzjohn
Mon, Feb 27, 2017 11:39 PM

I want to get a close fit (one piece slides into the other) so if they were
printed unassembled, the gap could be minimized. I have the gap set at .005
inch, but have no idea how that will work on the printer (Again, my first
design!).

http://forum.openscad.org/file/n20624/model.jpg

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20624.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I want to get a close fit (one piece slides into the other) so if they were printed unassembled, the gap could be minimized. I have the gap set at .005 inch, but have no idea how that will work on the printer (Again, my first design!). <http://forum.openscad.org/file/n20624/model.jpg> -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20624.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Tue, Feb 28, 2017 4:19 PM
If that image is the object, then you can create a linear extrusion <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_to_3D_Extrusion#Linear_Extrude> of a polygon <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon> , move it over to the locaion you want using rotate() <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#rotate> and translate() <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#translate> and use difference() <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling#difference> and intersection() <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling#intersection> to pull out what you want. -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20653.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jazzjohn
Tue, Feb 28, 2017 6:38 PM

adrian wrote

It's not an extrusion. the V shaped cutouts are actually tapered and were
created from subtracting multiple hulled spheres. I did not know it was
going to be two pieces in the beginning, but then the issue came up with the
first prototype (the usual time for mistakes to be uncovered!) To create an
extrusion to capture tapers in different directions along the center piece
would be very tedious.

I guess I'll have to chalk up my first SCAD design to experience!

I am going to look into separating the pieces from the STL file using
Meshmixer or ?

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20662.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

adrian wrote > If that image is the object, then you can create a > linear extrusion > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_to_3D_Extrusion#Linear_Extrude> > of a > polygon > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon> > , move it over to the locaion you want using > rotate() > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#rotate> > and > translate() > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#translate> > and use > difference() > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling#difference> > and > intersection() > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling#intersection> > to pull out what you want. It's not an extrusion. the V shaped cutouts are actually tapered and were created from subtracting multiple hulled spheres. I did not know it was going to be two pieces in the beginning, but then the issue came up with the first prototype (the usual time for mistakes to be uncovered!) To create an extrusion to capture tapers in different directions along the center piece would be very tedious. I guess I'll have to chalk up my first SCAD design to experience! I am going to look into separating the pieces from the STL file using Meshmixer or ? -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20662.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Tue, Feb 28, 2017 8:51 PM

Then create a polyhedron. As long as the rails are straight, it shouldn't be
horribly difficult.

Alternatively, if they are already separated physically from each other
(I.e. The meshes of the two parts don't touch) export to an STL, import it
into something like sketchup, and then you should be able to select each
object separately by double or triple clicking on each object and export
them.

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20664.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Then create a polyhedron. As long as the rails are straight, it shouldn't be horribly difficult. Alternatively, if they are already separated physically from each other (I.e. The meshes of the two parts don't touch) export to an STL, import it into something like sketchup, and then you should be able to select each object separately by double or triple clicking on each object and export them. -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20664.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Tue, Feb 28, 2017 8:52 PM

When I say it shouldn't be horribly difficult, I mean you just have to
enclose one of them from the other. Doesn't have to be exact.

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20665.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

When I say it shouldn't be horribly difficult, I mean you just have to enclose one of them from the other. Doesn't have to be exact. -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20665.html Sent from the OpenSCAD mailing list archive at Nabble.com.
N
Neon22
Tue, Feb 28, 2017 9:58 PM

As a side note - when I've made connecting objects like this I have needed to
control the slop between the pieces quite carefully to get a tight fit.
You can't really precalculate this amount until you print it. But at a layer
height of 0.15 you probably need 0.5mm gap between the internal and external
parts so they will fit.
The reason is that the extruded plastic will swell out and be slightly wider
than the expected geometry. Depends on your filament and nozzle, pushing
force and a few other factors, all of which makes it impossible to
precalculate.
IMHO you should incorporate this gap factor into your design code so you can
adjust it as you make test prints.

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20668.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

As a side note - when I've made connecting objects like this I have needed to control the slop between the pieces quite carefully to get a tight fit. You can't really precalculate this amount until you print it. But at a layer height of 0.15 you probably need 0.5mm gap between the internal and external parts so they will fit. The reason is that the extruded plastic will swell out and be slightly wider than the expected geometry. Depends on your filament and nozzle, pushing force and a few other factors, all of which makes it impossible to precalculate. IMHO you should incorporate this gap factor into your design code so you can adjust it as you make test prints. -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20668.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jazzjohn
Tue, Feb 28, 2017 10:10 PM

adrian wrote

Then create a polyhedron. As long as the rails are straight, it shouldn't
be horribly difficult.

Alternatively, if they are already separated physically from each other
(I.e. The meshes of the two parts don't touch) export to an STL, import it
into something like sketchup, and then you should be able to select each
object separately by double or triple clicking on each object and export
them.

Something like you suggest worked great! I used Meshlab and was able
separate the pieces. Thanks!
http://forum.openscad.org/file/n20669/Piece.png

folder2inside.stl http://forum.openscad.org/file/n20669/folder2inside.stl

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20669.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

adrian wrote > Then create a polyhedron. As long as the rails are straight, it shouldn't > be horribly difficult. > > Alternatively, if they are already separated physically from each other > (I.e. The meshes of the two parts don't touch) export to an STL, import it > into something like sketchup, and then you should be able to select each > object separately by double or triple clicking on each object and export > them. Something like you suggest worked great! I used Meshlab and was able separate the pieces. Thanks! <http://forum.openscad.org/file/n20669/Piece.png> folder2inside.stl <http://forum.openscad.org/file/n20669/folder2inside.stl> -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20669.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jazzjohn
Tue, Feb 28, 2017 10:11 PM

Good suggestions. Thank you.

Neon22 wrote

As a side note - when I've made connecting objects like this I have needed
to control the slop between the pieces quite carefully to get a tight fit.
You can't really precalculate this amount until you print it. But at a
layer height of 0.15 you probably need 0.5mm gap between the internal and
external parts so they will fit.
The reason is that the extruded plastic will swell out and be slightly
wider than the expected geometry. Depends on your filament and nozzle,
pushing force and a few other factors, all of which makes it impossible to
precalculate.
IMHO you should incorporate this gap factor into your design code so you
can adjust it as you make test prints.

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20670.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Good suggestions. Thank you. Neon22 wrote > As a side note - when I've made connecting objects like this I have needed > to control the slop between the pieces quite carefully to get a tight fit. > You can't really precalculate this amount until you print it. But at a > layer height of 0.15 you probably need 0.5mm gap between the internal and > external parts so they will fit. > The reason is that the extruded plastic will swell out and be slightly > wider than the expected geometry. Depends on your filament and nozzle, > pushing force and a few other factors, all of which makes it impossible to > precalculate. > IMHO you should incorporate this gap factor into your design code so you > can adjust it as you make test prints. -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20670.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Wed, Mar 1, 2017 2:59 PM

Glad you succeeded. :)

--
View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20682.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Glad you succeeded. :) -- View this message in context: http://forum.openscad.org/Export-pieces-of-an-object-tp20615p20682.html Sent from the OpenSCAD mailing list archive at Nabble.com.