Skip to content

Commit 4ea0a06

Browse files
committed
change division to multiplication
1 parent b12d180 commit 4ea0a06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compas/geometry/_core/normals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def normal_polygon(polygon, unitized=True):
6161
n = cross_vectors(oa, ob)
6262
oa = ob
6363

64-
nx += n[0] / 2
65-
ny += n[1] / 2
66-
nz += n[2] / 2
64+
nx += n[0] * 0.5
65+
ny += n[1] * 0.5
66+
nz += n[2] * 0.5
6767

6868
if not unitized:
6969
return [nx, ny, nz]

0 commit comments

Comments
 (0)