forked from alecjacobson/nested_cages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreinflate.h
31 lines (28 loc) · 1.04 KB
/
reinflate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef REINFLATE_H
#define REINFLATE_H
#include <Eigen/Core>
#include <Eigen/SparseCore>
#include <stack>
// Given a history of fine flown meshes H, reinflates the fine
// mesh pushing the coarse mesh (C_hat,F_hat) away to new positions (C,F_hat).
//
// Inputs:
// H history of flow mesh positions
// T connectivity of the fine meshes (same for all meshes in H)
// C_hat #C_hat by 3 list of coarse mesh initial positions
// F_hat #F_hat by 3 list of coarse mesh triangle indices C_hat
// EnergyInflation either "None", or "DispInitial", or "DispStep" or
// "Volume" or "SurfARAP" or "VolARAP"
// EnergyFinal either "None", or "DispInitial", or "DispStep" or
// "Volume" or "SurfARAP" or "VolARAP"
// Output:
// C #C by 3 list of final coarse mesh vertex positions (optimal cage)
void reinflate(
std::stack<Eigen::MatrixXd> & H,
const Eigen::MatrixXi & T,
const Eigen::MatrixXd & C_hat,
const Eigen::MatrixXi & F_hat,
const char* EnergyInflation,
const char* EnergyFinal,
Eigen::MatrixXd & C);
#endif