1 #ifndef SURFACEEXTRACTION_H
2 #define SURFACEEXTRACTION_H
4 #include <MeshManipulation/translateToCog.h>
5 #include <MeshManipulation/transformMesh.h>
6 #include <MeshAnalysis/faceArea.h>
147 MyMesh::Color
fcpColor = MyMesh::Color(0,0.9,0,0.9);
150 enum start {north, east, south, west};
155 {3,2,4,5}, {1,3,6,4}, {1,5,6,2},
156 {1,2,6,5}, {1,4,6,3}, {4,2,3,5}};
160 {east, east, east, east}, {south, north, south, south}, {east, north, west, south},
161 {west, north, east, south}, {north, north, north, south}, {west, west, west, west}};
165 {west, west, west, west}, {north, north, north, south}, {east, north, west, south},
166 {west, north, east, south}, {south, north, south, south}, {east, east, east, east}};
184 MyMesh::VertexHandle vertex;
187 bool visitedNorth =
false;
188 bool visitedEast =
false;
189 bool visitedSouth =
false;
190 bool visitedWest =
false;
191 void visited(
start dir) {
193 case north: visitedNorth=
true;
break;
194 case east: visitedEast=
true;
break;
195 case south: visitedSouth=
true;
break;
196 case west: visitedWest=
true;
break;
197 default: std::cerr <<
"wrong assignment in fcp.visited()" << std::endl;
232 std::vector<int>*
altIndex(
int ori);
237 int offset(
int orientation,
start dir,
int case012,
bool connec);
250 int nextFCP(
int inIndex,
start& direction,
bool connec);
265 MyMesh::VertexHandle vertex;
273 bool existsPOA =
false;
274 bool northConnected = 0;
275 bool eastConnected = 0;
276 bool southConnected = 0;
277 bool westConnected = 0;
290 double fcpDensity(
int fcpOri,
int vd,
int xEdgeLength,
int yEdgeLength, std::vector<double> &densities);
325 bool drawTriangles(
int startIndex,
int fcpCycle[],
int lengthOfCycle,std::vector<MyMesh::FaceHandle>* fHandles,
MyMesh &mesh);
377 #endif // surfaceExtraction_H
Definition: Project.txt:1329
Definition: Project.txt:1393