Skip to content

Commit

Permalink
Merge pull request #1773 from xeokit/XEOK-191-fix-transformPoint4-call
Browse files Browse the repository at this point in the history
XEOK-191 Fix math.transformPoint4 call
  • Loading branch information
xeolabs authored Jan 10, 2025
2 parents bf5ac60 + 9cde47e commit c16c527
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,8 +1122,7 @@ export class DTXTrianglesLayer {
worldPos[2] = positions[i + 2];
worldPos[3] = 1.0;
math.decompressPosition(worldPos, positionsDecodeMatrix);
math.transformPoint4(this.model.worldMatrix, worldPos, worldPos);
math.transformPoint4(this.model.worldMatrix, worldPos, worldPos);
math.mulMat4v4(this.model.worldMatrix, worldPos, worldPos);
worldPos[0] += offsetX;
worldPos[1] += offsetY;
worldPos[2] += offsetZ;
Expand Down

0 comments on commit c16c527

Please sign in to comment.