Box3#applyMatrix4() no longer supports projection transformation matrices

Description of the problem

#13993 introduced an optimization to Box3#applyMatrix4() that only supports affine transforms.

screen shot 2018-08-06 at 9 24 21 pm

CodePen

  • geometry.applyMatrix() – The geometry is transformed with applyMatrix().
  • r93 Box3#applyMatrix4() & r92 Box3#applyMatrix4() – A Box3 instance is constructed from the geometry. A non-affine matrix is then applied.

For BoxGeometry, it is expected is that both operations result in equivalent Box3 instances.

The r92 version transformed each Box3 vertex, then used setFromPoints() to resize to fit.

See #6039 for a similar issue with a Vector3#applyMatrix4() optimization.

Three.js version
  • Dev
  • r95
  • r94
  • r93
Browser
  • All of them
OS
  • All of them

Author: Fantashit

1 thought on “Box3#applyMatrix4() no longer supports projection transformation matrices

Comments are closed.