mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Merge pull request #1280 from typetetris/fix-typo-vnf-vertex-array
Fix typo in pts index
This commit is contained in:
commit
5dc1aaaa88
1 changed files with 1 additions and 1 deletions
2
vnf.scad
2
vnf.scad
|
@ -180,7 +180,7 @@ function vnf_vertex_array(
|
||||||
[[i1,i4,i2],[i2,i4,i3]]
|
[[i1,i4,i2],[i2,i4,i3]]
|
||||||
: style=="min_area"?
|
: style=="min_area"?
|
||||||
let(
|
let(
|
||||||
area42 = norm(cross(pts[i2]-pts[i1], pts[14]-pts[i1]))+norm(cross(pts[i4]-pts[i3], pts[i2]-pts[i3])),
|
area42 = norm(cross(pts[i2]-pts[i1], pts[i4]-pts[i1]))+norm(cross(pts[i4]-pts[i3], pts[i2]-pts[i3])),
|
||||||
area13 = norm(cross(pts[i1]-pts[i4], pts[i3]-pts[i4]))+norm(cross(pts[i3]-pts[i2], pts[i1]-pts[i2])),
|
area13 = norm(cross(pts[i1]-pts[i4], pts[i3]-pts[i4]))+norm(cross(pts[i3]-pts[i2], pts[i1]-pts[i2])),
|
||||||
minarea_edge = area42 < area13 + EPSILON
|
minarea_edge = area42 < area13 + EPSILON
|
||||||
? [[i1,i4,i2],[i2,i4,i3]]
|
? [[i1,i4,i2],[i2,i4,i3]]
|
||||||
|
|
Loading…
Reference in a new issue