Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
iMSTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruiliang Gao
iMSTK
Commits
a3160895
Commit
a3160895
authored
8 years ago
by
Alexis Girault
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add structure for DeformableObject class
parent
7e46707a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Scene/Object/imstkDeformableObject.cpp
+36
-0
36 additions, 0 deletions
Base/Scene/Object/imstkDeformableObject.cpp
Base/Scene/Object/imstkDeformableObject.h
+57
-0
57 additions, 0 deletions
Base/Scene/Object/imstkDeformableObject.h
with
93 additions
and
0 deletions
Base/Scene/Object/imstkDeformableObject.cpp
0 → 100644
+
36
−
0
View file @
a3160895
/*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#include
"imstkDeformableObject.h"
namespace
imstk
{
std
::
shared_ptr
<
Geometry
>
DeformableObject
::
getPhysicsGeometry
()
const
{
return
m_physicsGeometry
;
}
void
DeformableObject
::
setPhysicsGeometry
(
std
::
shared_ptr
<
Geometry
>
geometry
)
{
m_physicsGeometry
=
geometry
;
}
}
This diff is collapsed.
Click to expand it.
Base/Scene/Object/imstkDeformableObject.h
0 → 100644
+
57
−
0
View file @
a3160895
/*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/
#ifndef imstkDeformableObject_h
#define imstkDeformableObject_h
#include
<memory>
#include
"imstkCollidingObject.h"
namespace
imstk
{
class
Geometry
;
class
GeometryMap
;
class
DeformableObject
:
public
CollidingObject
{
public:
DeformableObject
(
std
::
string
name
)
:
CollidingObject
(
name
)
{
m_type
=
Type
::
Deformable
;
}
~
DeformableObject
()
=
default
;
std
::
shared_ptr
<
Geometry
>
getPhysicsGeometry
()
const
;
void
setPhysicsGeometry
(
std
::
shared_ptr
<
Geometry
>
geometry
);
protected
:
std
::
shared_ptr
<
Geometry
>
m_physicsGeometry
;
///> Geometry for collisions
std
::
shared_ptr
<
GeometryMap
>
m_physicsToCollidingMap
;
///> Maps transformations to colliding geometry
};
}
#endif // ifndef imstkDeformableObject_h
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment