mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 18:17:08 +02:00
add comment
This commit is contained in:
parent
cea97aa317
commit
87dbec8974
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@ bool FBXGeometry::convexHullContains(const glm::vec3& point) const {
|
|||
|
||||
auto checkEachPrimitive = [=](FBXMesh& mesh, QVector<int> indices, int primitiveSize) -> bool {
|
||||
// Check whether the point is "behind" all the primitives.
|
||||
for (int j = 0; j < indices.size() - 2; j += primitiveSize) {
|
||||
for (int j = 0;
|
||||
j < indices.size() - 2; // -2 in case the vertices aren't the right size -- we access j + 2 below
|
||||
j += primitiveSize) {
|
||||
if (!isPointBehindTrianglesPlane(point,
|
||||
mesh.vertices[indices[j]],
|
||||
mesh.vertices[indices[j + 1]],
|
||||
|
|
Loading…
Reference in a new issue