Improve make_sketch and geometric related functions

This commit is contained in:
marioalexis
2020-10-09 23:13:46 -03:00
committed by Yorik van Havre
parent bec4195642
commit 1ad7b9788b
8 changed files with 435 additions and 194 deletions

View File

@@ -444,7 +444,10 @@ def placements_on_path(shapeRotation, pathwire, count, xlate, align,
Each copy will be distributed evenly.
"""
closedpath = DraftGeomUtils.isReallyClosed(pathwire)
normal = DraftGeomUtils.getNormal(pathwire)
normal = DraftGeomUtils.get_normal(pathwire)
# for backward compatibility with previous getNormal implementation
if normal == None:
normal = App.Vector(0, 0, 1)
if forceNormal and normalOverride:
normal = normalOverride