Commit 69688f1a authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX #22] this fix allows now to use arbitrary transforms for datasets

parent 78b3a874
...@@ -61,7 +61,7 @@ WDataTexture3D::WDataTexture3D( boost::shared_ptr< WValueSetBase > valueSet, boo ...@@ -61,7 +61,7 @@ WDataTexture3D::WDataTexture3D( boost::shared_ptr< WValueSetBase > valueSet, boo
offset( 1, 3 ) = 0.5 / grid->getNbCoordsY(); offset( 1, 3 ) = 0.5 / grid->getNbCoordsY();
offset( 2, 3 ) = 0.5 / grid->getNbCoordsZ(); offset( 2, 3 ) = 0.5 / grid->getNbCoordsZ();
transformation()->set( offset * scale * invert( static_cast< WMatrix4d >( grid->getTransform() ) ) ); transformation()->set( invert( static_cast< WMatrix4d >( grid->getTransform() ) ) * scale * offset );
// set the size // set the size
WGETexture3D::initTextureSize( this, grid->getNbCoordsX(), grid->getNbCoordsY(), grid->getNbCoordsZ() ); WGETexture3D::initTextureSize( this, grid->getNbCoordsX(), grid->getNbCoordsY(), grid->getNbCoordsZ() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment