diff options
author | over0219 <over0219@umn.edu> | 2020-06-24 07:03:53 +0300 |
---|---|---|
committer | over0219 <over0219@umn.edu> | 2020-06-24 07:03:53 +0300 |
commit | 9e2042ca033a2ff8134abd719e60292ce65e720c (patch) | |
tree | b10369045ec723819beb373876e80c5671705d67 /extern/softbody/src/admmpd_embeddedmesh.h | |
parent | a125171beca714c2bf9e71347da56b14c7195153 (diff) |
several bugfixes but I think I'm going to need to change the way I handle constrained solve
Diffstat (limited to 'extern/softbody/src/admmpd_embeddedmesh.h')
-rw-r--r-- | extern/softbody/src/admmpd_embeddedmesh.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/extern/softbody/src/admmpd_embeddedmesh.h b/extern/softbody/src/admmpd_embeddedmesh.h index a1abe02f904..8b0cdc5bb04 100644 --- a/extern/softbody/src/admmpd_embeddedmesh.h +++ b/extern/softbody/src/admmpd_embeddedmesh.h @@ -1,8 +1,8 @@ // Copyright Matt Overby 2020. // Distributed under the MIT License. -#ifndef ADMMPD_LATTICE_H_ -#define ADMMPD_LATTICE_H_ +#ifndef ADMMPD_EMBEDDEDMESH_H_ +#define ADMMPD_EMBEDDEDMESH_H_ #include "admmpd_types.h" @@ -23,6 +23,15 @@ public: const Eigen::MatrixXd *x_data, int idx); + // Given an embedding, compute masses + // for the lattice vertices + void compute_masses( + EmbeddedMeshData *emb_mesh, // where embedding is stored + const Eigen::MatrixXd *x_embed, // embedded vertices, p x 3 + const Eigen::MatrixXd *x_tets, // lattice vertices, n x 3 + Eigen::VectorXd *masses_tets, // masses of the lattice verts + double density_kgm3 = 1100); + protected: // Returns true on success @@ -36,4 +45,4 @@ protected: } // namespace admmpd -#endif // ADMMPD_LATTICE_H_ +#endif // ADMMPD_EMBEDDEDMESH_H_ |