mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 10:41:52 +02:00
add deduplicate to rect(), add deduplicate to is_path_simple
add epsilon to degenerate bezier patch detection
This commit is contained in:
@@ -298,5 +298,11 @@ test_path_torsion();
|
||||
|
||||
|
||||
|
||||
//echo(fmt_float(sampled));
|
||||
module test_is_path_simple(){
|
||||
assert(is_path_simple([[0,0],[1,1],[1,1],[2,1]]));
|
||||
assert(is_path_simple([[0,0],[10,0],[0,20],[10,20]],closed=false));
|
||||
assert(!is_path_simple([[0,0],[10,0],[0,20],[10,20]],closed=true));
|
||||
assert(is_path_simple(circle($fn=20, r=10)));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user