You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/tutorial/getting_started.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ The sizes of ``edges`` and ``faces`` are ``#E x 2`` and ``#F x 3`` respectively
60
60
Collisions
61
61
----------
62
62
63
-
Now that we have a collision mesh, we can compute the collision barrier potential. To do this we first need to build the set of active collisions (``Collisions``).
63
+
Now that we have a collision mesh, we can compute the collision barrier potential. To do this we first need to build the set of active collisions (``NormalCollisions``).
64
64
65
65
To start we need the current positions of the ``vertices``. For this tutorial, let us use squash the bunny has to 1% of its original height.
66
66
@@ -92,7 +92,7 @@ We will use a value of :math:`\hat{d} = 10^{-3}`.
92
92
93
93
const double dhat = 1e-3;
94
94
95
-
ipc::Collisions collisions;
95
+
ipc::NormalCollisions collisions;
96
96
collisions.build(collision_mesh, vertices, dhat);
97
97
98
98
.. md-tab-item:: Python
@@ -101,7 +101,7 @@ We will use a value of :math:`\hat{d} = 10^{-3}`.
101
101
102
102
dhat =1e-3
103
103
104
-
collisions = ipctk.Collisions()
104
+
collisions = ipctk.NormalCollisions()
105
105
collisions.build(collision_mesh, vertices, dhat)
106
106
107
107
This will automatically use a spatial data structure to perform a broad-phase culling and then perform a narrow-phase culling by computing distances (discarding any collision candidates with a distance :math:`> \hat{d}`).
0 commit comments