Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Schmitt
waLBerla
Commits
7c3a61a8
Commit
7c3a61a8
authored
May 09, 2017
by
Sebastian Eibl
Browse files
fixed warning to please msvc
parent
1656f508
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/pe/PeDocumentationSnippets.cpp
View file @
7c3a61a8
...
...
@@ -98,14 +98,14 @@ int main( int argc, char ** argv )
// be used to for instance rotate the box around the global y-axis.
BoxID
box
=
createBox
(
*
globalBodyStorage
,
forest
->
getBlockStorage
(),
storageID
,
1
,
Vec3
(
2
,
3
,
4
),
Vec3
(
2.5
,
2.5
,
2.5
)
);
if
(
box
!=
NULL
)
box
->
rotate
(
0.0
,
math
::
PI
/
3.0
,
0.0
);
box
->
rotate
(
0.0
,
real_c
(
math
::
PI
/
3.0
)
,
0.0
);
//! [Create a Box]
//! [Create a Capsule]
// Create a capsule and rotate it after successfull creation.
CapsuleID
capsule
=
createCapsule
(
*
globalBodyStorage
,
forest
->
getBlockStorage
(),
storageID
,
1
,
Vec3
(
2
,
3
,
4
),
real_t
(
1
),
real_t
(
1
)
);
if
(
capsule
!=
NULL
)
capsule
->
rotate
(
0.0
,
math
::
PI
/
3.0
,
0.0
);
capsule
->
rotate
(
0.0
,
real_c
(
math
::
PI
/
3.0
)
,
0.0
);
//! [Create a Capsule]
//! [Create a Plane]
...
...
@@ -118,7 +118,7 @@ int main( int argc, char ** argv )
// Create a sphere and rotate it after successfull creation.
SphereID
sphere
=
createSphere
(
*
globalBodyStorage
,
forest
->
getBlockStorage
(),
storageID
,
1
,
Vec3
(
2
,
3
,
4
),
real_t
(
1
)
);
if
(
sphere
!=
NULL
)
sphere
->
rotate
(
0.0
,
math
::
PI
/
3.0
,
0.0
);
sphere
->
rotate
(
0.0
,
real_c
(
math
::
PI
/
3.0
)
,
0.0
);
//! [Create a Sphere]
//! [Create a Union]
...
...
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