mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-10-01 01:16:54 +02:00
Handle region face after half space computation
This commit is contained in:
9
vnf.scad
9
vnf.scad
@@ -1163,7 +1163,12 @@ function vnf_halfspace(_arg1=_UNDEF, _arg2=_UNDEF,
|
|||||||
newedges=[for(x=tmp2) each x[1]],
|
newedges=[for(x=tmp2) each x[1]],
|
||||||
// generate new faces
|
// generate new faces
|
||||||
paths=_vnf_halfspace_paths(newedges),
|
paths=_vnf_halfspace_paths(newedges),
|
||||||
loops=[for(p=paths) if(coords[p[0]] == coords[last(p)]) reverse(p)])
|
reg = [for(p=paths) project_plane(select(coords,p), halfspace)],
|
||||||
[coords, concat(newfaces, loops)];
|
regvnf = region_faces(reg,reverse=true),
|
||||||
|
regvert = lift_plane(regvnf[0], halfspace)
|
||||||
|
//loops=[for(p=paths) if(coords[p[0]] == coords[last(p)]) reverse(p)])
|
||||||
|
)
|
||||||
|
vnf_merge([[coords, newfaces], [regvert, regvnf[1]]]);
|
||||||
|
// [coords, concat(newfaces, loops)];
|
||||||
|
|
||||||
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
|
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
|
||||||
|
Reference in New Issue
Block a user