mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 17:40:13 +02:00
improve speed in trivial path subdivision (subdivide_path)
fix bug in bezier_patch_points when u,v are singletons add bezier_patch_normals
This commit is contained in:
@@ -412,6 +412,7 @@ function subdivide_path(path, n, refine, maxlen, closed=true, exact, method) =
|
||||
let(path = force_path(path))
|
||||
assert(is_path(path))
|
||||
assert(num_defined([n,refine,maxlen]),"Must give exactly one of n, refine, and maxlen")
|
||||
refine==1 || n==len(path) ? path :
|
||||
is_def(maxlen) ?
|
||||
assert(is_undef(method), "Cannot give method with maxlen")
|
||||
assert(is_undef(exact), "Cannot give exact with maxlen")
|
||||
|
Reference in New Issue
Block a user