Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
e0aa5c3f
Commit
e0aa5c3f
authored
8 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
doc
parent
a216c497
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
VirtualRobot/Visualization/TriMeshModel.h
+13
-0
13 additions, 0 deletions
VirtualRobot/Visualization/TriMeshModel.h
with
13 additions
and
0 deletions
VirtualRobot/Visualization/TriMeshModel.h
+
13
−
0
View file @
e0aa5c3f
...
...
@@ -64,7 +64,20 @@ namespace VirtualRobot
int
addMaterial
(
const
VisualizationFactory
::
PhongMaterial
&
material
);
void
clear
();
void
flipVertexOrientations
();
/**
* @brief Merges vertices that are close together (mergeThreshold).
* Usually, vertices that are close together should be one vertex. Otherwise the mesh
* could consist of many individual triangles.
* All vertex ids stored in faces are updated. This function is quite efficient due to a kd-tree and an inverted face-vertex mapping.
* @param mergeThreshold If squared Euclidan distance of two points is belong this threshold, two vertices are merged.
*/
void
mergeVertices
(
float
mergeThreshold
=
0.0001
);
/**
* @brief fatten or shrink this trimesh. Done by moving a vertex along a normal calculated from the normals
* of all the faces the vertex is used in.
* @param offset All vertexes are moved about this offset in mm.
*/
void
fattenShrink
(
float
offset
);
// Overwrite all colors
void
setColor
(
VisualizationFactory
::
Color
color
);
...
...
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