-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarch.h
17 lines (14 loc) · 1.09 KB
/
march.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef MARCH_H
#define MARCH_H
#include "vector.h"
#include <cstdlib>
#include <limits>
#include <array>
#include <deque>
#include <map>
#include <set>
void smoothedPotentials(int *chunkCoords, unsigned int numChunkCoords, float *colorTargetCoordBuf, int colorTargetSize, float voxelSize, float *potentialsBuffer);
void marchingCubes(int dims[3], float *potential, uint8_t *brush, float shift[3], float scale[3], float *positions, float *colors, unsigned int *faces, unsigned int &positionIndex, unsigned int &colorIndex, unsigned int &faceIndex);
void computeGeometry(int *chunkCoords, unsigned int numChunkCoords, float *colorTargetCoordBuf, int colorTargetSize, float voxelSize, float marchCubesTexSize, float marchCubesTexSquares, float marchCubesTexTriangleSize, float *potentialsBuffer, float *positions, float *barycentrics, float *uvs, float *uvs2, unsigned int *positionIndex, unsigned int *barycentricIndex, unsigned int *uvIndex, unsigned int *uvIndex2);
void collide(float *positions, unsigned int numPositions, float origin[3], float direction[3], float *collision, unsigned int *collisionIndex);
#endif