mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-07 14:56:30 +02:00
Fixed bezier_patch_flat()
This commit is contained in:
@@ -809,7 +809,7 @@ function bezier_patch_flat(size=[100,100], N=4, orient=ORIENT_Z, trans=[0,0,0])
|
|||||||
patch = [for (x=[0:N]) [for (y=[0:N]) vmul(point3d(size),[x/N-0.5, 0.5-y/N, 0])]]
|
patch = [for (x=[0:N]) [for (y=[0:N]) vmul(point3d(size),[x/N-0.5, 0.5-y/N, 0])]]
|
||||||
) [for (row=patch)
|
) [for (row=patch)
|
||||||
translate_points(v=trans,
|
translate_points(v=trans,
|
||||||
rotate_points3d(v=orient,row)
|
rotate_points3d(a=orient,row)
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user