Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Type-OpenVolumeMesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
OpenFlipper-Free
Type-OpenVolumeMesh
Commits
e8fd8bce
Commit
e8fd8bce
authored
2 years ago
by
Martin Heistermann
Browse files
Options
Downloads
Patches
Plain Diff
VMO: offer recreateProperties for use with mesh assignment
parent
9e4cb616
Branches
ovm-v3-test
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ObjectTypes/VolumeMeshObject/VolumeMeshObject.hh
+5
-0
5 additions, 0 deletions
ObjectTypes/VolumeMeshObject/VolumeMeshObject.hh
ObjectTypes/VolumeMeshObject/VolumeMeshObjectT_impl.hh
+10
-0
10 additions, 0 deletions
ObjectTypes/VolumeMeshObject/VolumeMeshObjectT_impl.hh
with
15 additions
and
0 deletions
ObjectTypes/VolumeMeshObject/VolumeMeshObject.hh
+
5
−
0
View file @
e8fd8bce
...
...
@@ -115,6 +115,11 @@ public:
MeshT
*
mesh
();
const
MeshT
*
mesh
()
const
;
/// re-create mesh attribute objects. This us useful after
/// using mesh assignment to use the newly assigned properties instead
/// of the old stale ones.
void
recreateAttributes
();
/** return a full copy of this object ( All scenegraph nodes will be created )
* but the object will not be a part of the object tree.
*/
...
...
This diff is collapsed.
Click to expand it.
ObjectTypes/VolumeMeshObject/VolumeMeshObjectT_impl.hh
+
10
−
0
View file @
e8fd8bce
...
...
@@ -98,6 +98,16 @@ VolumeMeshObject<MeshT>::VolumeMeshObject(DataType _typeId) :
init
();
}
template
<
class
MeshT
>
void
VolumeMeshObject
<
MeshT
>::
recreateAttributes
()
{
statusAttrib_
=
StatusAttrib
(
*
mesh_
);
colorAttrib_
=
ColorAttrib
(
*
mesh_
);
normalAttrib_
=
NormalAttrib
(
*
mesh_
);
texcoordAttrib_
=
TexCoordAttrib
(
*
mesh_
);
}
template
<
class
MeshT
>
VolumeMeshObject
<
MeshT
>::~
VolumeMeshObject
()
{
...
...
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