1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-01 02:33:00 +02:00

voronoi preview

This commit is contained in:
Justin Lin
2020-05-23 16:57:12 +08:00
parent 9282b74d8b
commit 17d8aa9a7e
22 changed files with 198 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
use <voronoi3d.scad>;
use <voronoi/vrn3_from.scad>;
use <bezier_curve.scad>;
use <hollow_out.scad>;
use <polysections.scad>;
use <sweep.scad>;
r = 13;
h = 60;
@@ -44,13 +44,13 @@ module voronoi_vase(r, h, thickness, num_of_pts, fn, profile_step) {
difference() {
scale([0.95, 0.95, 1])
polysections(sections);
sweep(sections);
scale([0.85, 0.85, 1])
polysections(sections);
sweep(sections);
intersection() {
polysections(sections);
sweep(sections);
render()
voronoi3d(concat([for(i = indices) pts[i]], [sections[0][0], sections[0][half_fn], sections[last_section_i][0], sections[last_section_i][half_fn]]));
vrn3_from(concat([for(i = indices) pts[i]], [sections[0][0], sections[0][half_fn], sections[last_section_i][0], sections[last_section_i][half_fn]]));
}
}