![]() |
UnityMol
1.0.25beta
|
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <iostream>#include <string>#include <fstream>#include <vector>#include <sstream>#include <iterator>#include "MarchingCubes.h"#include "SmoothMesh.h"Macros | |
| #define | MAXGRIDSIZE 500 |
Functions | |
| TRIANGLE * | marchingCubes (const float *data, const int3 gridDim, int *nbTri, const float isolevel=0.0f) |
| int | PolygoniseCube (GRIDCELL g, float iso, TRIANGLE *tri) |
| float3 | VertexInterp (float isolevel, int3 p1, int3 p2, float valp1, float valp2) |
| 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 () |
| template<typename Out > | |
| void | split (const std::string &s, char delim, Out result) |
| std::vector< std::string > | split (const std::string &s, char delim) |
| float * | readDX (const string filePath, int *totalN, int3 *gridSize) |
| int | main () |
Variables | |
| TRIANGLE * | mesh |
| float * | vertices |
| int * | triangles |
| int | sizeMesh = 0 |
| #define MAXGRIDSIZE 500 |
| API void ComputeMesh | ( | const float * | gridVal, |
| const int | sizeX, | ||
| const int | sizeY, | ||
| const int | sizeZ, | ||
| const float | isoValue, | ||
| int * | vertnumber, | ||
| int * | facenumber | ||
| ) |
| API void freeMeshData | ( | ) |
| API int* getTriangles | ( | ) |
| API float* getVertices | ( | ) |
| int main | ( | ) |
| TRIANGLE* marchingCubes | ( | const float * | data, |
| const int3 | gridDim, | ||
| int * | nbTri, | ||
| const float | isolevel = 0.0f |
||
| ) |
| float* readDX | ( | const string | filePath, |
| int * | totalN, | ||
| int3 * | gridSize | ||
| ) |
| void split | ( | const std::string & | s, |
| char | delim, | ||
| Out | result | ||
| ) |
| std::vector<std::string> split | ( | const std::string & | s, |
| char | delim | ||
| ) |
| TRIANGLE* mesh |
| int sizeMesh = 0 |
| int* triangles |
| float* vertices |