mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-07-31 01:50:33 +02:00
Merge pull request #138 from adrianVmariano/master
bug fix qr factorization, removed echo in plane intersection, fixed bezier_surface so vnf arg is in right order
This commit is contained in:
@@ -923,12 +923,12 @@ function patch_reverse(patch) = [for (row=patch) reverse(row)];
|
||||
// ];
|
||||
// vnf = bezier_surface(patches=[patch1, patch2], splinesteps=16);
|
||||
// polyhedron(points=vnf[0], faces=vnf[1]);
|
||||
function bezier_surface(patches=[], splinesteps=16, i=0, vnf=[[],[]]) =
|
||||
function bezier_surface(patches=[], splinesteps=16, vnf=[[],[]], i=0) =
|
||||
let(
|
||||
vnf = (i >= len(patches))? vnf :
|
||||
bezier_patch(patches[i], splinesteps=splinesteps, vnf=vnf)
|
||||
) (i >= len(patches))? vnf :
|
||||
bezier_surface(patches=patches, splinesteps=splinesteps, i=i+1, vnf=vnf);
|
||||
bezier_surface(patches=patches, splinesteps=splinesteps, vnf=vnf, i=i+1);
|
||||
|
||||
|
||||
|
||||
|
@@ -606,8 +606,7 @@ function plane_intersection(plane1,plane2,plane3) =
|
||||
let(
|
||||
matrix = [for(p=[plane1,plane2]) select(p,0,2)],
|
||||
rhs = [for(p=[plane1,plane2]) p[3]],
|
||||
point = linear_solve(matrix,rhs),
|
||||
dd=echo(point=point, normal=normal)
|
||||
point = linear_solve(matrix,rhs)
|
||||
)
|
||||
[point, point+normal];
|
||||
|
||||
|
Reference in New Issue
Block a user