1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-01 19:33:06 +02:00

Added convexity parameter to sweep.

This commit is contained in:
Chris Palmer
2020-11-04 22:27:31 +00:00
parent df43fe7dc6
commit 34b58e3b64
2 changed files with 3 additions and 3 deletions

View File

@@ -152,10 +152,10 @@ function sweep(path, profile, loop = false, twist = 0) = //! Generate the point
faces = loop ? skin_faces : concat([cap(facets)], skin_faces, [cap(facets, npoints - 1)])
) [points, faces];
module sweep(path, profile, loop = false, twist = 0) { //! Draw a polyhedron that is the swept volume
module sweep(path, profile, loop = false, twist = 0, convexity = 1) { //! Draw a polyhedron that is the swept volume
mesh = sweep(path, profile, loop, twist);
polyhedron(points = mesh[0], faces = mesh[1]);
polyhedron(points = mesh[0], faces = mesh[1], convexity = convexity);
}
function path_length(path, i = 0, length = 0) = //! Calculated the length along a path