mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-30 08:19:36 +00:00
Handle region face after half space computation
This commit is contained in:
parent
6e805163ab
commit
5ea5e301b8
1 changed files with 7 additions and 2 deletions
9
vnf.scad
9
vnf.scad
|
@ -1163,7 +1163,12 @@ function vnf_halfspace(_arg1=_UNDEF, _arg2=_UNDEF,
|
|||
newedges=[for(x=tmp2) each x[1]],
|
||||
// generate new faces
|
||||
paths=_vnf_halfspace_paths(newedges),
|
||||
loops=[for(p=paths) if(coords[p[0]] == coords[last(p)]) reverse(p)])
|
||||
[coords, concat(newfaces, loops)];
|
||||
reg = [for(p=paths) project_plane(select(coords,p), halfspace)],
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue