mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
fixes
This commit is contained in:
parent
1cb7373284
commit
d8da1dbad7
1 changed files with 2 additions and 4 deletions
6
vnf.scad
6
vnf.scad
|
@ -430,7 +430,7 @@ function vnf_triangulate(vnf) =
|
||||||
// of cut points. You can use this to refine the faces of a VNF before applying
|
// of cut points. You can use this to refine the faces of a VNF before applying
|
||||||
// a nonlinear transformation to its vertex set.
|
// a nonlinear transformation to its vertex set.
|
||||||
// Example(3D):
|
// Example(3D):
|
||||||
// include <BOSL2-fork/polyhedra.scad>
|
// include <BOSL2/polyhedra.scad>
|
||||||
// vnf = regular_polyhedron_info("vnf", "dodecahedron", side=12);
|
// vnf = regular_polyhedron_info("vnf", "dodecahedron", side=12);
|
||||||
// vnf_polyhedron(vnf);
|
// vnf_polyhedron(vnf);
|
||||||
// sliced = vnf_slice(vnf, "X", [-6,-1,10]);
|
// sliced = vnf_slice(vnf, "X", [-6,-1,10]);
|
||||||
|
@ -704,7 +704,7 @@ function vnf_halfspace(plane, vnf, closed=true) =
|
||||||
:
|
:
|
||||||
let(
|
let(
|
||||||
M = project_plane(plane),
|
M = project_plane(plane),
|
||||||
faceregion = [for(path=newpaths) path2d(project_plane(plane, select(newvert,path)))],
|
faceregion = [for(path=newpaths) path2d(apply(M,select(newvert,path)))],
|
||||||
facevnf = region_faces(faceregion,transform=rot_inverse(M),reverse=true)
|
facevnf = region_faces(faceregion,transform=rot_inverse(M),reverse=true)
|
||||||
)
|
)
|
||||||
vnf_merge([[newvert, faces_edges_vertices[0]], facevnf]);
|
vnf_merge([[newvert, faces_edges_vertices[0]], facevnf]);
|
||||||
|
@ -892,8 +892,6 @@ function vnf_bend(vnf,r,d,axis="Z") =
|
||||||
) [new_vert,sliced[1]];
|
) [new_vert,sliced[1]];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Section: Debugging Polyhedrons
|
// Section: Debugging Polyhedrons
|
||||||
|
|
||||||
/// Internal Module: _show_vertices()
|
/// Internal Module: _show_vertices()
|
||||||
|
|
Loading…
Reference in a new issue