mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fixed the inverted faces in the bezier patch example.
This commit is contained in:
parent
9ffa7815d1
commit
55a797b9b9
1 changed files with 6 additions and 6 deletions
|
@ -12,11 +12,11 @@ function CR_corner(size, orient=[0,0,0], trans=[0,0,0]) =
|
|||
// rounding, but it's a first approximation proof of concept.
|
||||
// Currently this is a degree 4 triangular patch.
|
||||
patch = [
|
||||
[[1,1,0], [1,r,0], [1,0,0], [1,0,r], [1,0,1]],
|
||||
[[r,1,0], [k,k,0], [k,0,k], [r,0,1]],
|
||||
[[0,1,0], [0,k,k], [0,0,1]],
|
||||
[[0,1,r], [0,r,1]],
|
||||
[[0,1,1]]
|
||||
[[0,1,1], [0,r,1], [0,0,1], [r,0,1], [1,0,1]],
|
||||
[[0,1,r], [0,k,k], [k,0,k], [1,0,r]],
|
||||
[[0,1,0], [k,k,0], [1,0,0]],
|
||||
[[r,1,0], [1,r,0]],
|
||||
[[1,1,0]]
|
||||
]
|
||||
) [for (row=patch)
|
||||
translate_points(v=trans,
|
||||
|
@ -108,7 +108,7 @@ module CR_cube(size=[100,100,100], r=10, splinesteps=8, cheat=false)
|
|||
}
|
||||
|
||||
|
||||
CR_cube(size=[100,100,100], r=20, splinesteps=16, cheat=false);
|
||||
CR_cube(size=[100,100,100], r=20, splinesteps=2, cheat=false);
|
||||
cube(1);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue