mantaflow  0.10
A framework for fluid simulation
edgecollapse.h
Go to the documentation of this file.
1 
2 /******************************************************************************
3  *
4  * MantaFlow fluid solver framework
5  * Copyright 2011 Tobias Pfaff, Nils Thuerey
6  *
7  * This program is free software, distributed under the terms of the
8  * GNU General Public License (GPL)
9  * http://www.gnu.org/licenses
10  *
11  * Mesh edge collapse and subdivision
12  *
13  ******************************************************************************/
14 
15 /******************************************************************************/
16 // Copyright note:
17 //
18 // These functions (C) Chris Wojtan
19 // Long-term goal is to unify with his split&merge codebase
20 //
21 /******************************************************************************/
22 
23 #ifndef _EDGECOLLAPSE_H
24 #define _EDGECOLLAPSE_H
25 
26 #include "mesh.h"
27 
28 namespace Manta {
29 
30 void CollapseEdge(Mesh& mesh, const int trinum, const int which, const Vec3 &edgevect, const Vec3 &endpoint,
31  std::vector<int> &deletedNodes, std::map<int,bool> &taintedTris, int &numCollapses, bool doTubeCutting);
32 
33 Vec3 ModifiedButterflySubdivision(Mesh& mesh, const Corner& ca, const Corner& cb, const Vec3& fallback);
34 
35 }
36 
37 #endif
38 
Definition: commonkernels.h:22
Vector3D< Real > Vec3
3D vector class of type Real (typically float)
Definition: randomstream.h:545