mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-22 22:35:18 +02:00
better bottom fitness
This commit is contained in:
@@ -11,11 +11,11 @@ beginning_radius = 15;
|
|||||||
thickness = 2;
|
thickness = 2;
|
||||||
fn = 180;
|
fn = 180;
|
||||||
amplitude = 10;
|
amplitude = 10;
|
||||||
curve_step = 0.02;
|
curve_step = 0.01;
|
||||||
smoothness = 15;
|
smoothness = 15;
|
||||||
// Perlin noise 2D or 3D
|
// Perlin noise 2D or 3D
|
||||||
perlin = 2; // [2, 3]
|
perlin = 2; // [2, 3]
|
||||||
bottom = "NO"; // ["YES", "NO"]
|
bottom = "YES"; // ["YES", "NO"]
|
||||||
epsilon = 0.000001;
|
epsilon = 0.000001;
|
||||||
|
|
||||||
distorted_vase(beginning_radius, thickness, fn, amplitude, curve_step, smoothness, perlin, epsilon);
|
distorted_vase(beginning_radius, thickness, fn, amplitude, curve_step, smoothness, perlin, epsilon);
|
||||||
@@ -77,7 +77,10 @@ module distorted_vase(beginning_radius, thickness, fn, amplitude,curve_step, smo
|
|||||||
sweep(all, triangles = "HOLLOW");
|
sweep(all, triangles = "HOLLOW");
|
||||||
|
|
||||||
if(bottom == "YES") {
|
if(bottom == "YES") {
|
||||||
linear_extrude(thickness)
|
sweep([
|
||||||
polygon([for(p = offset_noisy[len(offset_noisy) - 1]) [p[0], p[1]]]);
|
for(section = noisy)
|
||||||
|
if(section[0][2] < thickness)
|
||||||
|
section
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user