This commit is contained in:
Adrian Mariano
2024-04-25 06:31:05 -04:00
parent 5a1aee6c34
commit d6537c9e74
2 changed files with 2 additions and 1 deletions

View File

@@ -3449,6 +3449,7 @@ function _get_cp(geom) =
function _force_anchor_2d(anchor) =
is_undef(anchor) ? anchor :
assert(anchor.y==0 || anchor.z==0, "Anchor for a 2D shape cannot be fully 3D. It must have either Y or Z component equal to zero.")
anchor.y==0 ? [anchor.x,anchor.z] : point2d(anchor);