mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 03:34:42 +02:00
it's documented
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
include <shape_taiwan.scad>;
|
|
||||||
include <in_shape.scad>;
|
|
||||||
|
|
||||||
/*
|
|
||||||
points = [
|
|
||||||
[10, 0],
|
|
||||||
[10, 10],
|
|
||||||
[-10, 10],
|
|
||||||
[-10, -10]
|
|
||||||
];*/
|
|
||||||
|
|
||||||
|
|
||||||
points = shape_taiwan(30);
|
|
||||||
%polygon(points);
|
|
||||||
pt = [-10, 9];
|
|
||||||
|
|
||||||
n = 200;
|
|
||||||
xs = rands(-10, 10, n);
|
|
||||||
ys = rands(-18, 18, n);
|
|
||||||
|
|
||||||
pts = [
|
|
||||||
for(i = [0:n])
|
|
||||||
let(p = [xs[i], ys[i]])
|
|
||||||
if(in_shape(points, p, true))
|
|
||||||
p
|
|
||||||
];
|
|
||||||
|
|
||||||
for(p = pts) {
|
|
||||||
translate(p) circle(.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@@ -1,12 +1,3 @@
|
|||||||
voronoi, bend_extrude:
|
|
||||||
https://www.thingiverse.com/thing:3650115
|
|
||||||
|
|
||||||
voronoi3d
|
|
||||||
3d version of voronoi, slow but workable
|
|
||||||
|
|
||||||
in_shape, in_line
|
|
||||||
in_shape_demo.scad
|
|
||||||
|
|
||||||
midpt_smooth
|
midpt_smooth
|
||||||
midpt_smooth.scad
|
midpt_smooth.scad
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user