mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 09:15:38 +02:00
Added convexity= to skin() and vnf_polyhedron()
This commit is contained in:
5
vnf.scad
5
vnf.scad
@@ -301,9 +301,10 @@ function vnf_vertex_array(
|
||||
// Given a VNF structure, or a list of VNF structures, creates a polyhedron from them.
|
||||
// Arguments:
|
||||
// vnf = A VNF structure, or list of VNF structures.
|
||||
module vnf_polyhedron(vnf) {
|
||||
// convexity = Max number of times a line could intersect a wall of the shape.
|
||||
module vnf_polyhedron(vnf, convexity=2) {
|
||||
vnf = is_vnf_list(vnf)? vnf_merge(vnf) : vnf;
|
||||
polyhedron(vnf[0], vnf[1]);
|
||||
polyhedron(vnf[0], vnf[1], convexity=convexity);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user