Thingiverse
OpenSCAD Parametric Packaging Script v2 by M_G
by Thingiverse
Last crawled date: 3 years ago
This OpenSCAD script will generate a 2 part fit together packaging for a device of user selectable size. Any amount of various shaped cutouts, support posts, engraved text and logos can be easily placed on any face using special array variables. Check out the instructions below as well as the examples and comments in the code for more information on how to use them.
Author: Mark Gaffney
Version: 2.6c (versions d e & f are slight modifications for a specific item without proper controls but these will be included in v2.7)
Date: 2013-04-04
ToDo:
add user controllable flanges and interlocking lip features
Warning:
Some combinations of values, shapes and locations etc. may lead to an invalid or non-manifold shape beign created, preventing you from exporting a .stl
If this happens try to remove or change some of the features or values until you get a valid shape and then add them back gradually until you find the offending item, then change it so it doesn't cause a problem
Note: This thing uses HarlanDMii's"write.scad" module http://www.thingiverse.com/thing:16193
which you will need to have downloaded and located in the directory if you want to run this on your PC
The version I had did not properly implement spacing on 'writecube', a modified version that implements this is included here...
Generating text can be very slow!
When generating a stacked layout it may look like the top is taller than it should be, this seems to be a visualisation bug in OpenSCAD, if you create a .STL it will be perfect
Changes from previous versions:
v2.6c
Implemented ability to choose box shape i.e. "cuboid","rounded4sides", "rounded6sides", "chamfered6sides"
Ensured "box_type" module is used in generation of each box_half
v2.6b
investigated and fixed some top lip mis alignment
v2.6
implements loading external objects (such as .stl files) to place on faces
implemented overlooked translation of text on faces from previous version
fixed box_t in make_cutouts
v2.5 (AKA cutouts_on_faces_for_loop-v0_2.scad)
Implement tolerancing of connection between 2 halves using lip_fit
implement text on faces
Complete documentation
v2.4 (AKA cutouts_on_faces_for_loop-v0_4.scad)
user provides device dimensions and internal clearance(s), packaging dimensions are calculated based on this
preparations to allow for different wall_t in x,y,z
implement posts
mouse ears work properly
2 halves in "beside" layout joined by union
v2.3 2013-03-23 (AKA cutouts_on_faces_for_loop-v0_3.scad)
fixed calls to make_box and half_box modules
added ability to handle "holes" array for making cutouts to make_box and half_box modules
added module for rounded cuboid
fixed errors on rounded cuboid cutouts's use of a_bit
fixed translate errors for making lips on box
ensured all parts generate on z=0
gave top (greenish) and bottom (reddish) different colours for ease of identification
rotated top in "beside" layout to more intuitive orientation
added box cross module and included in hull calculations to ensure box sizes are exact even with low side count
added box_type module to allow choice of different shaped boxes or automatically swap them based on the current variables
added mouse_ears module
Note: In stacked mode you may notice the red half looks like it is the full length, this appears to be a visualisation bug in openscad, the part is generated correctly
v2.2 2013-03-22 (AKA cutouts_on_faces_for_loop-v0_2.scad)
based on My own structure
New format [face_name, shape_name, shape_position[x_pos,y_pos,x_offs,y_offs,rotate,align], shape_size[depth,,,]]
face_name ("N", "S", "E", "W", "T", "B")
shape_name ("Square", "Rectangle" , "Round_Rect", "Cylinder", "Ellipse" , "Cone")
shape_position[x_pos,y_pos,x_offs,y_offs,rotate,align=("inside" or "outside")]
"Square" shape_size[depth, length_breadth]
"Rectangle" shape_size[depth, length, breadth]
"Round_Rect" shape_size[depth, length, breadth, corner_radius, corner_sides]
"Cylinder" shape_size[depth, radius ,sides]
"Ellipse" shape_size[depth, radius_length, radius_breadth, sides]
"Cone" shape_size[[depth, radius_bottom, radius_top ,sides]
pos_x and pos_y are chosen to align with views taken from the North, Top or East faces towards the origin so that they are aligned with [-x,+z], [+x,+y] & [+y,+z] respectively
rotation is clockwise about the plane of the North, Top or East faces as lookign towards the origin this means they are anticlockwise for the opposite faces(i.e. same convention as above)
these 2 conventiosn are chosen to make it easier to position cutouts that align with oppsite sides. e.g. a box that fits around a rotated ellipse pipe
v2.1 2013-03-22 (AKA cutouts_on_faces_for_loop-v0_1.scad)
based on kitlaan's array structure, supporting cones and rectangles
from kitlaan's Customisable Electronic Device Packaging http://www.thingiverse.com/thing:8607
rect [ x-offset, y-offset, x-width, y-width, corner-radius, corner-sides, depth, rotate ]
cylinder [ x-offset, y-offset, inner-radius, outer-radius, sides, depth, rotate ]
Author: Mark Gaffney
Version: 2.6c (versions d e & f are slight modifications for a specific item without proper controls but these will be included in v2.7)
Date: 2013-04-04
ToDo:
add user controllable flanges and interlocking lip features
Warning:
Some combinations of values, shapes and locations etc. may lead to an invalid or non-manifold shape beign created, preventing you from exporting a .stl
If this happens try to remove or change some of the features or values until you get a valid shape and then add them back gradually until you find the offending item, then change it so it doesn't cause a problem
Note: This thing uses HarlanDMii's"write.scad" module http://www.thingiverse.com/thing:16193
which you will need to have downloaded and located in the directory if you want to run this on your PC
The version I had did not properly implement spacing on 'writecube', a modified version that implements this is included here...
Generating text can be very slow!
When generating a stacked layout it may look like the top is taller than it should be, this seems to be a visualisation bug in OpenSCAD, if you create a .STL it will be perfect
Changes from previous versions:
v2.6c
Implemented ability to choose box shape i.e. "cuboid","rounded4sides", "rounded6sides", "chamfered6sides"
Ensured "box_type" module is used in generation of each box_half
v2.6b
investigated and fixed some top lip mis alignment
v2.6
implements loading external objects (such as .stl files) to place on faces
implemented overlooked translation of text on faces from previous version
fixed box_t in make_cutouts
v2.5 (AKA cutouts_on_faces_for_loop-v0_2.scad)
Implement tolerancing of connection between 2 halves using lip_fit
implement text on faces
Complete documentation
v2.4 (AKA cutouts_on_faces_for_loop-v0_4.scad)
user provides device dimensions and internal clearance(s), packaging dimensions are calculated based on this
preparations to allow for different wall_t in x,y,z
implement posts
mouse ears work properly
2 halves in "beside" layout joined by union
v2.3 2013-03-23 (AKA cutouts_on_faces_for_loop-v0_3.scad)
fixed calls to make_box and half_box modules
added ability to handle "holes" array for making cutouts to make_box and half_box modules
added module for rounded cuboid
fixed errors on rounded cuboid cutouts's use of a_bit
fixed translate errors for making lips on box
ensured all parts generate on z=0
gave top (greenish) and bottom (reddish) different colours for ease of identification
rotated top in "beside" layout to more intuitive orientation
added box cross module and included in hull calculations to ensure box sizes are exact even with low side count
added box_type module to allow choice of different shaped boxes or automatically swap them based on the current variables
added mouse_ears module
Note: In stacked mode you may notice the red half looks like it is the full length, this appears to be a visualisation bug in openscad, the part is generated correctly
v2.2 2013-03-22 (AKA cutouts_on_faces_for_loop-v0_2.scad)
based on My own structure
New format [face_name, shape_name, shape_position[x_pos,y_pos,x_offs,y_offs,rotate,align], shape_size[depth,,,]]
face_name ("N", "S", "E", "W", "T", "B")
shape_name ("Square", "Rectangle" , "Round_Rect", "Cylinder", "Ellipse" , "Cone")
shape_position[x_pos,y_pos,x_offs,y_offs,rotate,align=("inside" or "outside")]
"Square" shape_size[depth, length_breadth]
"Rectangle" shape_size[depth, length, breadth]
"Round_Rect" shape_size[depth, length, breadth, corner_radius, corner_sides]
"Cylinder" shape_size[depth, radius ,sides]
"Ellipse" shape_size[depth, radius_length, radius_breadth, sides]
"Cone" shape_size[[depth, radius_bottom, radius_top ,sides]
pos_x and pos_y are chosen to align with views taken from the North, Top or East faces towards the origin so that they are aligned with [-x,+z], [+x,+y] & [+y,+z] respectively
rotation is clockwise about the plane of the North, Top or East faces as lookign towards the origin this means they are anticlockwise for the opposite faces(i.e. same convention as above)
these 2 conventiosn are chosen to make it easier to position cutouts that align with oppsite sides. e.g. a box that fits around a rotated ellipse pipe
v2.1 2013-03-22 (AKA cutouts_on_faces_for_loop-v0_1.scad)
based on kitlaan's array structure, supporting cones and rectangles
from kitlaan's Customisable Electronic Device Packaging http://www.thingiverse.com/thing:8607
rect [ x-offset, y-offset, x-width, y-width, corner-radius, corner-sides, depth, rotate ]
cylinder [ x-offset, y-offset, inner-radius, outer-radius, sides, depth, rotate ]
Similar models
thingiverse
free
WIMUv3a Packagaing from OpenSCAD Parametric Packaging Script v2 by M_G
...basis, and tyndall national institute has no obligation to provide maintenance, support, updates, enhancements, or modifications.
thingiverse
free
Ellipse intersection shape by M_G
...l
v1-0
uses intersection of somewhat arbitrarily sized circles minkowski using a smaller circle for rounding off to prove concept
thingiverse
free
Parametric storage for gaming miniatures by Gemelli23
...s an array of eight coordinate points defining two four-sided layers that can be used to add a simple solid to a given mini well.
thingiverse
free
Parametric spool holder with hyperbolic cutouts by osadchy
...wkwardly implemented in openscad).
number of cutouts, and few other parameters are customizable (as described in the scad file).
thingiverse
free
Parametric Facet Box for Cards by filipmagula
...f the scad file but needs some tinkering to fit well.
it is not bullet-proof and it takes time to generate it in openscad.
enjoy.
thingiverse
free
stackable box by yujika
...le may not aligned, but i could fixed it with repetierhost.
i made customizable version.http://www.thingiverse.com/thing:307059
thingiverse
free
OpenSCAD bend procedures 2017 fix and example [How to work] by bscheshir
... changes. each next piece will be rotated relative to the axis f(x,"0","radius") arount piece center y-coord.
thingiverse
free
Recursive Sierpin?ski Tetrahedron by cgranade
...with arbitrary recursion depth to generate levels of the fractal.
(not the best pictures, sorry. i will take better ones soon!)
thingiverse
free
Rotational Binary Print Module by avrgeek
...ows for the publishing of a binary string in a circle. heavily influenced by "rotational openscad bitmap fonts module"
thingiverse
free
Haskmas Tree by olssonknlnsn
...depth of the tree, etc.
the haskell program outputs "scad" commands which can be put into openscad to generate the stl.
Script
design_connected
$16
Script Side M-267
...m-267
designconnected
mcguire furniture company script side m-267 chairs computer generated 3d model. designed by barbara barry.
3d_ocean
$5
ktRainbowPolygons maya mel script
... each polygon objects in your scene.(generates only a shader) by the way you can detect objects clear way on viewport and rend...
3d_ocean
$49
GMH2 Hair Script
...sion group a script to help users to convert/edit polygon hair to maya hair or generating next-gen polygon hair strips easily....
turbosquid
$19
Script side table PORADA
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$1
Alphabet Old englisch Font / script
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_ocean
$6
One Click Grass Generator Script
...-fast way. a script to help users to create grass with the help of single-click. users can create n-number of grasses as it is...
3ddd
$1
Кресло Porada Arena Poltrona и столик Script 45
...//www.porada.it/porada/file/public_admin/14_poradalow-570.pdf
в сцене 122 000 полигонов.
пользуйтесь с удовольствием)
3ddd
$1
Диван Porada Arena Sofa 224 и столик Script 150
...//www.porada.it/porada/file/public_admin/14_poradalow-570.pdf
в сцене 158 000 полигонов
пользуйтесь с удовольствием)))
3d_ocean
$9
Maxya - MEL Script Editor for Autodesk Maya
...ramming language. maxya is an versatile mel editor to maya. coding mel with maxya is funny and fast. maxya, boosts your mel co...
turbosquid
$18
Modular Gameready Stove scripted in unreal engine 100% BluePrint code
...del modular gameready stove for download as c4d, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1554141)
Parametric
turbosquid
$25
Parametric
...oyalty free 3d model parametric for download as blend and stl on turbosquid: 3d models for games, architecture, videos. (1683196)
3ddd
$1
Parametric Wall
...parametric wall
3ddd
панель
parametric wall with shelf
3d_export
$5
parametric table
...parametric table
3dexport
parametric table model created on rhinoceros 6. this 3d model includes: .gh, .3dm files
turbosquid
$2
Parametric Seat
...id
royalty free 3d model parametric seat for download as max on turbosquid: 3d models for games, architecture, videos. (1691557)
turbosquid
$2
Parametric Wall
...id
royalty free 3d model parametric wall for download as max on turbosquid: 3d models for games, architecture, videos. (1690373)
turbosquid
$2
parametrical chandelier
...lty free 3d model parametrical chandelier for download as dxf on turbosquid: 3d models for games, architecture, videos. (1257635)
turbosquid
$1
Parametric Wall
...id
royalty free 3d model parametric wall for download as max on turbosquid: 3d models for games, architecture, videos. (1691303)
turbosquid
$1
Parametric Wall
...id
royalty free 3d model parametric wall for download as max on turbosquid: 3d models for games, architecture, videos. (1691148)
turbosquid
$19
Parametric Bench
...ty free 3d model parametric bench for download as max and max on turbosquid: 3d models for games, architecture, videos. (1713396)
turbosquid
free
Parametric wall
...ee 3d model parametric wall for download as max, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1356869)
Openscad
thingiverse
free
OpenSCAD sphere
...openscad sphere
thingiverse
basic project for openscad.
thingiverse
free
Openscad Football by KySyth
...openscad football by kysyth
thingiverse
openscad not tested
thingiverse
free
Openscad Apple by KySyth
...openscad apple by kysyth
thingiverse
openscad apple = not tested
thingiverse
free
Plugs with openscad by benengel
...plugs with openscad by benengel
thingiverse
plugs with openscad and fontawesome
thingiverse
free
Openscad spirals by mafmuf
...openscad spirals by mafmuf
thingiverse
just fooling around with openscad.
thingiverse
free
Practice on OpenScad by ajensen906
...practice on openscad by ajensen906
thingiverse
a very crude practice on openscad
thingiverse
free
Batteries in OpenSCAD by roman_hegglin
...batteries in openscad by roman_hegglin
thingiverse
common batteries as modules for openscad.
thingiverse
free
OpenScad Propeller by KySyth
...se
trying to make a propeller with openscad = not tested
this is some of the results
added the openscad file but still need work
thingiverse
free
Openscad Cloud by Twanne
...openscad cloud by twanne
thingiverse
openscad cloud.
size can be adjusted
thingiverse
free
Geomag for OpenScad by vicnet
...geomag for openscad by vicnet
thingiverse
openscad file to design geomag things.
G
3ddd
free
G. Moscatelli
...алка
вешалка 25 / 26 / 27коллекция: belle heleneбренд: g. moscatelliстрана: италияразмеры: высота - 190 / 195; диаметр - 50 / 60.
3ddd
$1
G Plan Vintage
...g plan vintage
3ddd
винтаж , g plan
g plan vintage armchair
turbosquid
free
G protein
...otein
turbosquid
free 3d model g protein for download as c4d on turbosquid: 3d models for games, architecture, videos. (1309660)
turbosquid
$14
Fence G
...turbosquid
royalty free 3d model fence g for download as fbx on turbosquid: 3d models for games, architecture, videos. (1310122)
turbosquid
$7
G for Gun
...rbosquid
royalty free 3d model g for gun for download as max on turbosquid: 3d models for games, architecture, videos. (1685215)
turbosquid
$5
Letter G
...urbosquid
royalty free 3d model letter g for download as max on turbosquid: 3d models for games, architecture, videos. (1408463)
turbosquid
$5
Letter g
...urbosquid
royalty free 3d model letter g for download as max on turbosquid: 3d models for games, architecture, videos. (1408408)
turbosquid
$5
G Ring
...
turbosquid
royalty free 3d model g ring for download as stl on turbosquid: 3d models for games, architecture, videos. (1285079)
3ddd
$1
Infiniti / G-Chair
...infiniti / g-chair
3ddd
infiniti
www.infinitidesign.it/ita/g-chair.php
3ddd
$1
кресло G-68
...кресло g-68
3ddd
кресло
кресло руководителя g-68
V2
3d_export
free
Lamp v2
...lamp v2
3dexport
lamp v2 with solar panel
3d_export
$5
hammerhead v2
...hammerhead v2
3dexport
razer hammerhead v2 headphones, modeled in cinema 4d, render in corona
3d_export
$5
manometer v2
...manometer v2
3dexport
3d_export
$5
potato v2
...potato v2
3dexport
turbosquid
$52
Lifebuoys v2
...squid
royalty free 3d model lifebuoys v2 for download as fbx on turbosquid: 3d models for games, architecture, videos. (1560870)
turbosquid
$2
Mask v2
...turbosquid
royalty free 3d model mask v2 for download as stl on turbosquid: 3d models for games, architecture, videos. (1527741)
turbosquid
free
Flashlight V2
...d
free 3d model flashlight v2 for download as , obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1663559)
turbosquid
$29
Thanos v2
...
royalty free 3d model thanos v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1651077)
turbosquid
$29
Titan v2
...d
royalty free 3d model titan v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1540228)
turbosquid
$29
Frieza v2
...
royalty free 3d model frieza v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1701238)
Packaging
archibase_planet
free
Package
...package
archibase planet
cat food package
package n190111 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
archibase_planet
free
Package
...package
archibase planet
package dog food petfood
package 2 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
archibase_planet
free
Package
...package
archibase planet
package dog food petfood
package 3 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
archibase_planet
free
Package
...package
archibase planet
package paper bag screw
package n050313 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
archibase_planet
free
Package
...package
archibase planet
package cat food dry cat food
package 4 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
archibase_planet
free
Package
...package
archibase planet
package cat food dry cat food
package 1 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
3d_ocean
$5
Packaging Box
...packaging box
3docean
3dmodel box packaging packaging box
simple packaging box
turbosquid
$19
Package
...turbosquid
royalty free 3d model package for download as max on turbosquid: 3d models for games, architecture, videos. (1372445)
turbosquid
$1
packaging
...osquid
royalty free 3d model packaging for download as blend on turbosquid: 3d models for games, architecture, videos. (1304457)
3ddd
free
package
...package
3ddd
банка
packing design
M
turbosquid
$20
Stage M&M
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3ddd
$1
bag m&m's
...bag m&m's
3ddd
bag m&m's
bag m&m;'s
3d_export
$35
iskander m
...iskander m
3dexport
iskander m 3d model
design_connected
$7
barstool m
...barstool m
designconnected
barstool m computer generated 3d model.
3ddd
free
CACTUS M
...cactus m
3ddd
cactus , lzf
настольный светильник cactus m
производитель lzf
design_connected
$13
Anfora M
...anfora m
designconnected
lzf anfora m computer generated 3d model. designed by herranz, miguel.
3ddd
$1
зеркало M Gastone
...зеркало m gastone
3ddd
зеркало m gastone
зеркало m gastone
design_connected
$16
Dogon M
...dogon m
designconnected
emmemobili dogon m chairs computer generated 3d model. designed by ferruccio laviani.
design_connected
$9
Sunlight M
...sunlight m
designconnected
bonacina pierantonio sunlight m computer generated 3d model. designed by bizzozzero, franco.
3ddd
$1
Karman / Norma-M
...arman , norma-m
http://www.karmanitalia.it/en/prodotto/norma-m/norma-m-ap640n/