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
c51f0ddd
Commit
c51f0ddd
authored
Sep 14, 2021
by
Andrew Wilson
🐘
Browse files
BUG: Fix vector size in tests
parent
a55301f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/DynamicalModels/Testing/imstkPbdConstraintFunctorTest.cpp
View file @
c51f0ddd
...
@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration)
...
@@ -247,7 +247,7 @@ TEST(imstkPbdConstraintFunctorTest, TestVolumeConstraintGeneration)
TEST
(
imstkPbdConstraintFunctorTest
,
TestAreaConstraintGeneration
)
TEST
(
imstkPbdConstraintFunctorTest
,
TestAreaConstraintGeneration
)
{
{
auto
surfMesh
=
std
::
make_shared
<
SurfaceMesh
>
();
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
)[
0
]
=
Vec3d
(
0.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
...
@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
...
@@ -287,7 +287,7 @@ TEST(imstkPbdConstraintFunctorTest, TestAreaConstraintGeneration)
TEST
(
imstkPbdConstraintFunctorTest
,
TestConstDensityConstraintGeneration
)
TEST
(
imstkPbdConstraintFunctorTest
,
TestConstDensityConstraintGeneration
)
{
{
auto
points
=
std
::
make_shared
<
PointSet
>
();
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
)[
0
]
=
Vec3d
(
0.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
1
]
=
Vec3d
(
1.0
,
0.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
(
*
vertices
)[
2
]
=
Vec3d
(
0.0
,
1.0
,
0.0
);
...
...
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