Skip to content

Commit 504df17

Browse files
committed
changes
1 parent bc12af0 commit 504df17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/openFrameworks/3d/ofMesh.inl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,11 +2986,11 @@ template<class V, class N, class C, class T>
29862986
void ofMeshFace_<V,N,C,T>::calculateFaceNormal() const{
29872987
glm::vec3 u, v;
29882988

2989-
u = toGlm(vertices[1]-vertices[0]);
2990-
v = toGlm(vertices[2]-vertices[0]);
2989+
u = (vertices[1]-vertices[0]);
2990+
v = (vertices[2]-vertices[0]);
29912991

29922992
faceNormal = glm::cross(u, v);
2993-
faceNormal = glm::normalize(toGlm(faceNormal));
2993+
faceNormal = glm::normalize((faceNormal));
29942994
bFaceNormalDirty = false;
29952995
}
29962996

libs/openFrameworks/math/ofMathConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using ofDefaultVec3 = glm::vec3;
2222
using ofDefaultVec4 = glm::vec4;
2323
#endif
2424

25-
//#define OF_USE_LEGACY_MATH_MACROS
25+
#define OF_USE_LEGACY_MATH_MACROS
2626

2727
#ifdef OF_USE_LEGACY_MATH_MACROS
2828
#include <glm/gtc/constants.hpp>

0 commit comments

Comments
 (0)