primitive compounds for OpenSCAD, partial hollow by salvador-richter 3d model
3dmdb logo
Thingiverse
primitive compounds for OpenSCAD, partial hollow by salvador-richter

primitive compounds for OpenSCAD, partial hollow by salvador-richter

by Thingiverse
Last crawled date: 3 years ago
I always try to keep my code lean.
This is why I started to create a library for more complex compounds.
Today it contains:
rounding
drill_cone_head
pyramid
tri_angle
hollow_sphere
hollow_cylinder
hollow_cube
rounded_cube
hollow_rounded_cube
Last edit history:
Improved Rendering time and preview of hollow items.
Added rounding to round inner and outer corners.
Added drill_cone_head
Added dimensions=2.5 on rounded_cube
Any comments, suggestions, improvements or extensions are welcome
See the detailed inline documentation:
creates circular roundings
size: The size of the rounding
lenght: The length of the rounding module
quadrant: Number of the quadrant starting top right rotating counter clockwise.
rotation: To adjust he axis the center corner goes alongmodule rounding(size=10, length=10, quadrant=1, rotation=[0,0,0])
creates a drill for cone headed screws
dia: the screws diameter
len: the screws or drills len
cover: additional cylindric drill to insert a cover plate in the drill
the top of screw's drill is leveled on xy floormodule drill_cone_head(dia=3, len=12, cover=0)
rectangular pyramid
x and y may differ on floor and top
possible to create roofsmodule pyramid(xFloor=10, yFloor=10, xTop=minVal, yTop=minVal, z=10)
rectangular tri angle, with height
directions 1-3: the rect angle is located at coordinates 0,0,0
direction 0: default, legacy, the rect angle is at x,0
negative values changes direction
direction 1: xy
direction 2: xz
direction 3: yzmodule tri_angle(a, b, wall, direction=0)
hollow sphere, outer diameter and wall givenmodule hollow_sphere(outerDia, wall=1)
hollow cylinder (ring or pipe)
uses r1, r2 as outer perimters and h like normal cylinder
wall means thickness of the wall
center like center of cylinder
lid and bottom: creates round box with lid or bottommodule hollow_cylinder(r1, r2, h, wall, center=false, lid=false, bottom=false)
hollow cube, what else?
outerCube is [X,Y,Z]
wall is thickness of wall
center like center of cube
lid and bottom: creates box with lid or bottommodule hollow_cube(outerCube, wall, center=false, lid=true, bottom=true)
cube with rounded edges and corners, depends on param dimensions
outerCube is [X,Y,Z]
rCorner is the radius of the edges rounding
dimensions 2: 4 edges rounded
dimensions 2.5: 8 edges rounded, bottom corners as well
dimensions 3: all 16 edges rounded, corners as wellmodule rounded_cube(outerCube, rCorner, dimensions=3)
hollow cube, rounded edges only, what else?
outerCube is [X,Y,Z]
rCorner is the radius of the edges rounding
wall is thickness of wall
lid and bottom: creates box with lid or bottommodule hollow_rounded_cube(outerCube, rCorner, wall, lid=true, bottom=true)

Tags