Skip to content
Snippets Groups Projects
Verified Commit 8f8f3b7b authored by philippe.verley_ird.fr's avatar philippe.verley_ird.fr Committed by philippe.verley_ird.fr
Browse files

Bug fixing in TLSVoxelisation.java. Was mutliplying vop, pop and sop matrixes in wrong order.

parent 8674be6e
No related branches found
No related tags found
No related merge requests found
......@@ -57,22 +57,23 @@ public abstract class TLSVoxelisation extends AVoxTask {
nbVoxelisationFinished = 0;
// Transformation matrices
Matrix4d pop = (null == cfg.getPopMatrix())
? MatrixUtility.identity4d()
: new Matrix4d(cfg.getPopMatrix());
Matrix4d vop = (null == cfg.getVopMatrix())
? MatrixUtility.identity4d()
: new Matrix4d(cfg.getVopMatrix());
Matrix4d popvop = new Matrix4d();
popvop.mul(pop, vop);
transformation = new Matrix4d();
transformation.mul(pop, vop);
if (null != cfg.getSopMatrix()) {
transformation.mul(cfg.getSopMatrix());
}
Matrix4d sop = (null == cfg.getSopMatrix())
? MatrixUtility.identity4d()
: new Matrix4d(cfg.getSopMatrix());
// multiply vop by pop
transformation = new Matrix4d(vop);
transformation.mul(pop);
// multiply voppop by sop
transformation.mul(sop);
voxelAnalysis = new Voxelization(cfg);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment