Skip to content

Commit f853a2b

Browse files
committed
Use the projected coordinates
1 parent 38958d0 commit f853a2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/geom/mesh/Face.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ var Face = new Class({
258258
var v2 = this.vertex2;
259259
var v3 = this.vertex3;
260260

261-
return (v2.x - v1.x) * (v3.y - v1.y) - (v2.y - v1.y) * (v3.x - v1.x) >= 0;
261+
return (v2.vx - v1.vx) * (v3.vy - v1.vy) - (v2.vy - v1.vy) * (v3.vx - v1.vx) >= 0;
262262
},
263263

264264
/**
@@ -323,7 +323,7 @@ var Face = new Class({
323323
var v2 = this.vertex2;
324324
var v3 = this.vertex3;
325325

326-
return (v1.z + v2.z + v3.z) / 3;
326+
return (v1.vz + v2.vz + v3.vz) / 3;
327327
}
328328

329329
},

0 commit comments

Comments
 (0)