mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-15 23:34:01 +02:00
same_shape bugfix (fails if b==undef)
check for collinear points in round_corners plus other fixes fix path_cut to work correctly when closed==true, and change it to fail with error when cut is too long instead of returning undef. Add path_cut_segs.
This commit is contained in:
@@ -245,6 +245,12 @@ test_is_consistent();
|
||||
module test_same_shape() {
|
||||
assert(same_shape([3,[4,5]],[7,[3,4]]));
|
||||
assert(!same_shape([3,4,5], [7,[3,4]]));
|
||||
assert(!same_shape([3,4,5],undef));
|
||||
assert(!same_shape([5,3],3));
|
||||
assert(!same_shape(undef,[3,4]));
|
||||
assert(same_shape(4,5));
|
||||
assert(!same_shape(5,undef));
|
||||
|
||||
}
|
||||
test_same_shape();
|
||||
|
||||
|
Reference in New Issue
Block a user