mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 04:00:07 +02:00
Renamed normalize() to unit()
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
// half_of([1,1], planar=true) circle(d=50);
|
||||
module half_of(v=UP, cp=[0,0,0], s=1000, planar=false)
|
||||
{
|
||||
cp = is_num(cp)? cp*normalize(v) : cp;
|
||||
cp = is_num(cp)? cp*unit(v) : cp;
|
||||
if (cp != [0,0,0]) {
|
||||
translate(cp) half_of(v=v, s=s, planar=planar) translate(-cp) children();
|
||||
} else if (planar) {
|
||||
|
Reference in New Issue
Block a user