Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iMSTK
iMSTK
Commits
99b9f859
Commit
99b9f859
authored
May 31, 2019
by
ruiliang.gao
Committed by
Sreekanth Arikatla
Jun 14, 2019
Browse files
REFAC: Updated the PBDFluidsExample according to the Collision Handler
parent
885d88be
Changes
1
Show whitespace changes
Inline
Side-by-side
Examples/PBDFluids/PBDFluidsExample.cpp
View file @
99b9f859
...
...
@@ -25,6 +25,8 @@
#include "imstkPbdSolver.h"
#include "imstkOneToOneMap.h"
#include "imstkAPIUtilities.h"
#include "imstkMeshToMeshBruteForceCD.h"
#include "imstkPBDCollisionHandling.h"
using
namespace
imstk
;
...
...
@@ -234,10 +236,10 @@ int main()
// Collisions
auto
colGraph
=
scene
->
getCollisionGraph
();
auto
pair
=
std
::
make_shared
<
PbdInteractionPair
>
(
PbdInteractionPair
(
deformableObj
,
floor
)
);
pair
->
setNumberOfInterations
(
2
);
colGraph
->
addInteractionPair
(
pai
r
);
auto
CD
=
std
::
make_shared
<
MeshToMeshBruteForceCD
>
(
fluidMesh
,
floorMeshColliding
,
nullptr
);
auto
CH
=
std
::
make_shared
<
PBDCollisionHandling
>
(
CollisionHandling
::
Side
::
A
,
CD
->
getCollisionData
(),
deformableObj
,
floor
,
pbdSolver
);
colGraph
->
addInteractionPair
(
deformableObj
,
floor
,
CD
,
CH
,
nullpt
r
);
// Light (white)
auto
whiteLight
=
std
::
make_shared
<
DirectionalLight
>
(
"whiteLight"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment