HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CSampleFromVoxels.h File Reference
#include "../CNanoVDB.h"
#include <math.h>
+ Include dependency graph for CSampleFromVoxels.h:

Go to the source code of this file.

Macros

#define CREATE_STENCIL(VALUETYPE, SUFFIX)
 
#define CREATE_LERPSIMPLE(VALUETYPE, SUFFIX)
 
#define CREATE_SAMPLE(VALUETYPE, SUFFIX)
 

Functions

void cnanovdb_coord_round (cnanovdb_coord *RESTRICT coord, const cnanovdb_Vec3F *RESTRICT xyz)
 
void cnanovdb_coord_fract (cnanovdb_coord *RESTRICT coord, cnanovdb_Vec3F *RESTRICT fraction, const cnanovdb_Vec3F *RESTRICT xyz)
 
cnanovdb_Vec3F cnanovdb_lerpF3 (cnanovdb_Vec3F a, cnanovdb_Vec3F b, float w)
 
void cnanovdb_sampleF_gradient (cnanovdb_Vec3F *RESTRICT ret, cnanovdb_readaccessor *RESTRICT acc, const cnanovdb_Vec3F *RESTRICT xyz)
 
void cnanovdb_sampleF_gradient0 (cnanovdb_Vec3F *RESTRICT ret, cnanovdb_readaccessor *RESTRICT acc, const cnanovdb_Vec3F *RESTRICT xyz)
 
void cnanovdb_sampleF_gradient0_stencil (cnanovdb_Vec3F *RESTRICT ret, cnanovdb_stencil1F *RESTRICT stencil, cnanovdb_readaccessor *RESTRICT acc, const cnanovdb_Vec3F *RESTRICT xyz)
 

Macro Definition Documentation

#define CREATE_LERPSIMPLE (   VALUETYPE,
  SUFFIX 
)
Value:
VALUETYPE \
cnanovdb_lerp##SUFFIX(VALUETYPE a, VALUETYPE b, float w) \
{ \
return a + w * (b - a); \
} \
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857

Definition at line 115 of file CSampleFromVoxels.h.

#define CREATE_SAMPLE (   VALUETYPE,
  SUFFIX 
)

Definition at line 135 of file CSampleFromVoxels.h.

#define CREATE_STENCIL (   VALUETYPE,
  SUFFIX 
)

Definition at line 57 of file CSampleFromVoxels.h.

Function Documentation

void cnanovdb_coord_fract ( cnanovdb_coord *RESTRICT  coord,
cnanovdb_Vec3F *RESTRICT  fraction,
const cnanovdb_Vec3F *RESTRICT  xyz 
)

Definition at line 33 of file CSampleFromVoxels.h.

void cnanovdb_coord_round ( cnanovdb_coord *RESTRICT  coord,
const cnanovdb_Vec3F *RESTRICT  xyz 
)

Definition at line 19 of file CSampleFromVoxels.h.

cnanovdb_Vec3F cnanovdb_lerpF3 ( cnanovdb_Vec3F  a,
cnanovdb_Vec3F  b,
float  w 
)

Definition at line 127 of file CSampleFromVoxels.h.

void cnanovdb_sampleF_gradient ( cnanovdb_Vec3F *RESTRICT  ret,
cnanovdb_readaccessor *RESTRICT  acc,
const cnanovdb_Vec3F *RESTRICT  xyz 
)

Definition at line 224 of file CSampleFromVoxels.h.

void cnanovdb_sampleF_gradient0 ( cnanovdb_Vec3F *RESTRICT  ret,
cnanovdb_readaccessor *RESTRICT  acc,
const cnanovdb_Vec3F *RESTRICT  xyz 
)

Definition at line 244 of file CSampleFromVoxels.h.

void cnanovdb_sampleF_gradient0_stencil ( cnanovdb_Vec3F *RESTRICT  ret,
cnanovdb_stencil1F *RESTRICT  stencil,
cnanovdb_readaccessor *RESTRICT  acc,
const cnanovdb_Vec3F *RESTRICT  xyz 
)

Definition at line 294 of file CSampleFromVoxels.h.