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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorover0219 <over0219@umn.edu>2020-06-23 03:00:36 +0300
committerover0219 <over0219@umn.edu>2020-06-23 03:00:36 +0300
commit88ab1c138dcb370829ae0362ad6ee8a462d8a6ca (patch)
treef8a1f130be9bd564141e720114e31aef4839e748 /extern/softbody/src/admmpd_collision.h
parent50e2c479cc22d0efd1d744720df64311d8fefb80 (diff)
more interface changes
Diffstat (limited to 'extern/softbody/src/admmpd_collision.h')
-rw-r--r--extern/softbody/src/admmpd_collision.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/extern/softbody/src/admmpd_collision.h b/extern/softbody/src/admmpd_collision.h
index 5126d1a6958..2996249158e 100644
--- a/extern/softbody/src/admmpd_collision.h
+++ b/extern/softbody/src/admmpd_collision.h
@@ -4,10 +4,8 @@
#ifndef ADMMPD_COLLISION_H_
#define ADMMPD_COLLISION_H_
-#include <Eigen/Sparse>
-#include <Eigen/Geometry>
-#include <vector>
#include "admmpd_bvh.h"
+#include "admmpd_types.h"
namespace admmpd {
@@ -62,16 +60,23 @@ public:
const int *faces,
int nf);
- // Unlike set_obstacles, the pointers
- void set_embedded(
- const Eigen::MatrixXd *emb_barys,
- const Eigen::VectorXi *vtx_to_tet,
- const Eigen::MatrixXi *tets){}
+ // Updates the tetmesh BVH for self collisions
+ // TODO
+ void update_bvh(
+ const EmbeddedMeshData *mesh,
+ const Eigen::MatrixXd *x0,
+ const Eigen::MatrixXd *x1)
+ { (void)(mesh); (void)(x0); (void)(x1); }
// Given a list of deformable vertices (the lattice)
// perform collision detection of the surface mesh against
// obstacles and possibly self.
- void detect(const Eigen::MatrixXd *x0, const Eigen::MatrixXd *x1);
+ void detect(
+ const EmbeddedMeshData *mesh,
+ const Eigen::MatrixXd *x0,
+ const Eigen::MatrixXd *x1){
+
+ }
void jacobian(
const Eigen::MatrixXd *x,