14 openvdb::Coord xyz, XYZ;
16 openvdb::Int32Grid::Accessor accessor = m_VDBPropagationGrid_Ptr->getAccessor();
19 for (openvdb::Int32Grid::ValueOnIter iter = m_VDBPropagationGrid_Ptr->beginValueOn(); iter.test(); ++iter) {
20 xyz = iter.getCoord();
22 for (k = 0; k <
MFQ27; k++) {
23 XYZ.z() = xyz.z() + m_LatticeParameters_Ptr->DirectionVectorComponent_Cz[k];
24 XYZ.y() = xyz.y() + m_LatticeParameters_Ptr->DirectionVectorComponent_Cy[k];
25 XYZ.x() = xyz.x() + m_LatticeParameters_Ptr->DirectionVectorComponent_Cx[k];
26 if (accessor.isValueOn(XYZ)) {
137 std::cout <<
"Error in propagationD3Q19 test" << std::endl;
143 accessor.setValue(xyz, value.
node_t.
FF);
#define MFQ27
Number of lattice directions D3Q27.
void PropagationTest()
Propagation test.
struct MF::GU::DirectionsD3Q19::@2::@3 ff
A structure that allows to code/decode in unsigned int number (32bit) the propagation directions of t...
union MF::GU::DirectionsD3Q19::@2 node_t