Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admmpd_tetmesh.h « src « softbody « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d1e4304cd226bebd884f46fc619659170aa903d (plain)
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
// Copyright Matt Overby 2020.
// Distributed under the MIT License.

#ifndef ADMMPD_TETMESH_H_
#define ADMMPD_TETMESH_H_

#include "admmpd_types.h"

namespace admmpd {

class TetMesh {
public:
   // Given an embedding, compute masses
   // for the lattice vertices
   static void compute_masses(
        TetMeshData *mesh,
        const Eigen::MatrixXd *x,
        Eigen::VectorXd *masses,
        double density_kgm3 = 1100);

}; // class Lattice

} // namespace admmpd

#endif // ADMMPD_LATTICE_H_