Snap star (customisable) 3d model
Warning. This content is not moderated and could be offensive.
drug
3dmdb logo
Thingiverse
Snap star (customisable)

Snap star (customisable)

by Thingiverse
Last crawled date: 4 years, 2 months ago
Snap Star
This is a customisable snap version of Multipoint 3D Star.
API
// Include API
use

// rendering precision
$fn=100;

// Create star with default sizes
star = newStar();

// Show the core
snapStarCore( star );

// Show the bed full of 26 branches (18 square + 8 triangle)
snapStarAllBranches(star);

// Show the special branch for stand on a tree
snapStarTreeStandBranch(star);

Default parameters defines a star with 20mm side branches and 80mm length branches.
You can change this when building the star object. undef means "use default value":
// width: cell width (ie square border length)
// long: long branches (square branches) length
// short: short branches (triangle branches) length
// thickness: branch wall thickness
// form: branch form factor ( 0: Flat, 2: Rounded, 3:Straight, 4:Sharp etc... )
// trunk_d: tree trunk diameter if you need tree stand
// trunk_l: tree trunk stand length if you need tree stand
function newStar( width=undef, long=undef, short=undef, thickness=undef, form=undef, trunk_d=undef, trunk_l=undef ) =

Prerequisites for customsation
What you need:
Install OpenSCAD
Install libraries (see below)
Create a new file in OpenSCAD.
Folowing libraries must be installed in %USERPROFILE%\Documents\OpenSCAD\libraries
The folder libraries might not exist you have to create it yourself.
Download as ZIP and unzip in libraries:
scad-utils
list-comprehension-demos
agentscad
The result should be:
%USERPROFILE%
\__Documents
\__ OpenSCAD
\__ libraries
\__ agentscad
\__ list-comprehension-demos
\__ scad-utils

Tags