Writes the model to the arrays, which can then be used with G3D::IFSModel::save and G3D::MeshAlg
26 Array<int> toNew, toOld;
31 double minEdgeLen, maxEdgeLen, meanEdgeLen, medianEdgeLen;
32 double minFaceArea, maxFaceArea, meanFaceArea, medianFaceArea;
34 minEdgeLen, meanEdgeLen, medianEdgeLen, maxEdgeLen,
35 minFaceArea, meanFaceArea, medianFaceArea, maxFaceArea);
36 close = minEdgeLen * 0.1;
42 for (
int t = 0; t <
triList.size(); t += 3) {
45 for (
int i = 0; i < 3; ++i) {
46 index[i] = toNew[t + i];
50 if ((index[0] != index[1]) &&
51 (index[1] != index[2]) &&
52 (index[2] != index[0])) {
53 indexArray.
append(index[0], index[1], index[2]);
Array< Vector3 > triList
Definition: MeshBuilder.h:43
void centerTriList()
Definition: MeshBuilder.cpp:59
static void computeWeld(const Array< Vector3 > &oldVertexPositions, Array< Vector3 > &newVertexPositions, Array< int > &toNew, Array< int > &toOld, float radius=fuzzyEpsilon32)
Definition: MeshAlgWeld.cpp:203
Definition: MeshBuilder.h:30
std::string name
Definition: MeshBuilder.h:36
static void computeAreaStatistics(const Array< Vector3 > &vertexArray, const Array< int > &indexArray, double &minEdgeLength, double &meanEdgeLength, double &medianEdgeLength, double &maxEdgeLength, double &minFaceArea, double &meanFaceArea, double &medianFaceArea, double &maxFaceArea)
Definition: MeshAlg.cpp:343
double close
Definition: MeshBuilder.h:51
void append(const T &value)
Definition: Array.h:583
static void createIndexArray(int n, Array< int > &array, int start=0, int run=1, int skip=0)
Definition: MeshAlg.cpp:316