Skip to content

Commit

Permalink
Base: fix MeshUtils::normal()
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed May 17, 2024
1 parent 1184a68 commit 6862a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/mesh_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ Poly_Triangulation_NormalType normal(const OccHandle<Poly_Triangulation>& triang
Poly_Triangulation_NormalType nvec;
#if OCC_VERSION_HEX >= 0x070600
triangulation->Normal(index, nvec);
return nvec;
#else
const TShort_Array1OfShortReal& normals = triangulation->Normals();
nvec.SetX(normals.Value(index * 3 - 2));
nvec.SetY(normals.Value(index * 3 - 1));
nvec.SetZ(normals.Value(index * 3));
#endif
return nvec;
}

const Poly_Array1OfTriangle& triangles(const OccHandle<Poly_Triangulation>& triangulation)
Expand Down

0 comments on commit 6862a16

Please sign in to comment.