40 gridPosition *= (1.0 / voxelSize);
42 (
agx::Int)std::floor(gridPosition.
y() + 0.5),
43 (
agx::Int)std::floor(gridPosition.
z() + 0.5) );
54 static_cast<agx::Real>((voxelIndex.
y()))* voxelSize,
55 static_cast<agx::Real>((voxelIndex.
z()))* voxelSize );
static agx::Vec3i getVoxelIndexFromGridPosition(agx::Vec3 gridPosition, agx::Real voxelSize)
static agx::Vec3 getGridPositionFromVoxelIndex(agx::Vec3i voxelIndex, agx::Real voxelSize)
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.