-
Notifications
You must be signed in to change notification settings - Fork 1
Home
eriksunden edited this page Jan 28, 2015
·
3 revisions
Currently, OpenVDB does not compile in Visual Studio 2013 without this fix:
Change this section in LeafNode.h
static const Index
LOG2DIM = Log2Dim, // needed by parent nodes
TOTAL = Log2Dim, // needed by parent nodes
DIM = 1 << TOTAL, // dimension along one coordinate direction
NUM_VALUES = 1 << 3 * Log2Dim,
NUM_VOXELS = NUM_VALUES, // total number of voxels represented by this node
SIZE = NUM_VALUES,
LEVEL = 0; // level 0 = leaf
To this:
static const Index
LOG2DIM = Log2Dim, // needed by parent nodes
TOTAL = Log2Dim, // needed by parent nodes
DIM = 1 << TOTAL, // dimension along one coordinate direction
NUM_VALUES = 1 << 3 * Log2Dim,
NUM_VOXELS = NUM_VALUES; // total number of voxels represented by this node
static const Index
SIZE = NUM_VALUES,
LEVEL = 0; // level 0 = leaf