UnityMol  1.0.25beta
MarchingCubes.h File Reference

Go to the source code of this file.

Classes

struct  int3
 
struct  float3
 
struct  GRIDCELL
 
struct  TRIANGLE
 

Macros

#define API
 
#define ABS(x)   (x < 0 ? -(x) : (x))
 

Functions

int PolygoniseCube (GRIDCELL, float, TRIANGLE *)
 
float3 VertexInterp (float, int3, int3, float, float)
 
TRIANGLEmarchingCubes (const float *data, const int3 gridDim, int *nbTri)
 
API void ComputeMesh (const float *gridVal, const int sizeX, const int sizeY, const int sizeZ, const float isoValue, int *vertnumber, int *facenumber)
 
API float * getVertices ()
 
API int * getTriangles ()
 
API void freeMeshData ()
 

Macro Definition Documentation

◆ ABS

#define ABS (   x)    (x < 0 ? -(x) : (x))

◆ API

#define API

Function Documentation

◆ ComputeMesh()

API void ComputeMesh ( const float *  gridVal,
const int  sizeX,
const int  sizeY,
const int  sizeZ,
const float  isoValue,
int *  vertnumber,
int *  facenumber 
)

◆ freeMeshData()

API void freeMeshData ( )

◆ getTriangles()

API int* getTriangles ( )

◆ getVertices()

API float* getVertices ( )

◆ marchingCubes()

TRIANGLE* marchingCubes ( const float *  data,
const int3  gridDim,
int *  nbTri 
)

◆ PolygoniseCube()

int PolygoniseCube ( GRIDCELL  ,
float  ,
TRIANGLE  
)

◆ VertexInterp()

float3 VertexInterp ( float  ,
int3  ,
int3  ,
float  ,
float   
)