3dCustomizer.net
Search:
Browse
|
Create
|
Register
|
Login
3dCustomizer.net: Design custom 3D Models for 3D printing
Logarithmic Spiral
Controls:
seconds
OpenSCAD Code
Input Params
Imported Files
Imported files:
Add file(s):
Select
HTML Form
Output Params
CLI Args
fast-csg
fast-csg-trust-corefinement
fast-csg-debug
fast-csg-remesh
fast-csg-remesh-predictibly
roof
input-driver-dbus
lazy-union
vertex-object-renderers
vertex-object-renderers-indexing
vertex-object-renderers-direct
vertex-object-renderers-prealloc
textmetrics
import-function
sort-stl
manifold
debug=all
STL Viewer
Viewer Settings
Buy 3D Print
Save:
|
| Draw:
flat
smooth
wireframe
|
| Opacity:
|
Lock Camera/Position
Rotate Model
Edge Lines
Show X,Y,Z axises
Center Model on X,Y,Z axes
Part Printing Services
Affiliates
3D Part Price
TreatStock
JLC PCB - 3D Printing
Non-affiliates
iMaterialise
Craftcloud
Sculpteo
Printelize
JawsTec
Shapeways
MakeXYZ
//A logarthmic Spiral has the form r=a*exp(b*theta); loops=3; $fn=20; //resolution steps_per_loop=$fn; wallThickness = 0.5; height = 10; a=0.4; b=0.2; incrementBy = 1; for(i=[0:incrementBy:loops*steps_per_loop]){ hull(){ translate([r(rad(i))*cos(deg(i+0.5)),r(rad(i))*sin(deg(i+0.5)),0]) cylinder(r=wallThickness,height); translate([r(rad(i+incrementBy))*cos(deg(i+incrementBy+0.5)),r(rad(i+1))*sin(deg(i+incrementBy+0.5)),0]) cylinder(r=wallThickness,height); } } ////////////////// Functions ////////////////////////// function deg(n)=360*n/steps_per_loop; function rad(n)=2*PI*n/steps_per_loop; function arc_length(n)= //The length of a line segment = sqrt( (y2-y1)^2 + (x2-x1)^2 ) sqrt( pow( r(rad(n+1))*sin(deg(n+1)) - r(rad(n))*sin(deg(n)) ,2) + pow( r(rad(n+1))*cos(deg(n+1)) - r(rad(n))*cos(deg(n)) ,2) ); function r(th)=a*exp(b*th); function d(i) =r(rad(i))/3;
Console
Debugger
3dCustomizer.net © 2025 |
Help
|
About
|
Contact
|
Links
|
Credits
Loaded in: 0.0040 seconds