Skip to content
GitLab
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
350adc5f
Commit
350adc5f
authored
Sep 14, 2021
by
Andrew Wilson
🐘
Browse files
Merge branch 'BendConstraintStride' into 'master'
BUG: Fix vector size in tests See merge request
!679
parents
e318c359
c51f0ddd
Pipeline
#247048
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Source/DynamicalModels/Testing/imstkPbdConstraintFunctorTest.cpp
View file @
350adc5f
...
...
@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration)
TEST
(
imstkPbdConstraintFunctorTest
,
TestAreaConstraintGeneration
)
{
auto
surfMesh
=
std
::
make_shared
<
SurfaceMesh
>
();
auto
vertices
=
std
::
make_shared
<
VecDataArray
<
double
,
3
>>
(
3
);
auto
vertices
=
std
::
make_shared
<
VecDataArray
<
double
,
3
>>
(
4
);
(
*
vertices
)[
0
]
=
Vec3d
(
0.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
...
...
@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
TEST
(
imstkPbdConstraintFunctorTest
,
TestConstDensityConstraintGeneration
)
{
auto
points
=
std
::
make_shared
<
PointSet
>
();
auto
vertices
=
std
::
make_shared
<
VecDataArray
<
double
,
3
>>
(
3
);
auto
vertices
=
std
::
make_shared
<
VecDataArray
<
double
,
3
>>
(
4
);
(
*
vertices
)[
0
]
=
Vec3d
(
0.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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