Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
wenqing
ogs
Commits
dd49b64a
Commit
dd49b64a
authored
7 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MGTL] Fix comment and variable name.
parent
0dbd1c2a
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
MeshGeoToolsLib/MeshNodeSearcher.cpp
+2
-2
2 additions, 2 deletions
MeshGeoToolsLib/MeshNodeSearcher.cpp
MeshGeoToolsLib/MeshNodesAlongSurface.h
+3
-2
3 additions, 2 deletions
MeshGeoToolsLib/MeshNodesAlongSurface.h
with
5 additions
and
4 deletions
MeshGeoToolsLib/MeshNodeSearcher.cpp
+
2
−
2
View file @
dd49b64a
...
@@ -137,12 +137,12 @@ MeshNodesAlongSurface& MeshNodeSearcher::getMeshNodesAlongSurface(
...
@@ -137,12 +137,12 @@ MeshNodesAlongSurface& MeshNodeSearcher::getMeshNodesAlongSurface(
std
::
vector
<
MeshNodesAlongSurface
*>::
const_iterator
it
(
_mesh_nodes_along_surfaces
.
begin
());
std
::
vector
<
MeshNodesAlongSurface
*>::
const_iterator
it
(
_mesh_nodes_along_surfaces
.
begin
());
for
(;
it
!=
_mesh_nodes_along_surfaces
.
end
();
++
it
)
{
for
(;
it
!=
_mesh_nodes_along_surfaces
.
end
();
++
it
)
{
if
(
&
(
*
it
)
->
getSurface
()
==
&
sfc
)
{
if
(
&
(
*
it
)
->
getSurface
()
==
&
sfc
)
{
// we calculated mesh nodes
for
this
polylin
e already
// we calculated mesh nodes
on
this
surfac
e already
return
*
(
*
it
);
return
*
(
*
it
);
}
}
}
}
// compute nodes (and supporting points)
along polylin
e
// compute nodes (and supporting points)
on surfac
e
_mesh_nodes_along_surfaces
.
push_back
(
_mesh_nodes_along_surfaces
.
push_back
(
new
MeshNodesAlongSurface
(
_mesh
,
new
MeshNodesAlongSurface
(
_mesh
,
sfc
,
sfc
,
...
...
This diff is collapsed.
Click to expand it.
MeshGeoToolsLib/MeshNodesAlongSurface.h
+
3
−
2
View file @
dd49b64a
...
@@ -39,14 +39,15 @@ public:
...
@@ -39,14 +39,15 @@ public:
* GeoLib::Surface object within a given search radius.
* GeoLib::Surface object within a given search radius.
* @param mesh Mesh the search will be performed on.
* @param mesh Mesh the search will be performed on.
* @param sfc Along the GeoLib::Surface sfc the mesh nodes are searched.
* @param sfc Along the GeoLib::Surface sfc the mesh nodes are searched.
* @param epsilon Euclidean distance tolerance value. Is the distance
* @param epsilon
_radius
Euclidean distance tolerance value. Is the distance
* between a mesh node and the surface smaller than that value it is a mesh
* between a mesh node and the surface smaller than that value it is a mesh
* node near the surface.
* node near the surface.
* @param search_all_nodes switch between searching all mesh nodes and
* @param search_all_nodes switch between searching all mesh nodes and
* searching the base nodes.
* searching the base nodes.
*/
*/
MeshNodesAlongSurface
(
MeshLib
::
Mesh
const
&
mesh
,
GeoLib
::
Surface
const
&
sfc
,
MeshNodesAlongSurface
(
MeshLib
::
Mesh
const
&
mesh
,
GeoLib
::
Surface
const
&
sfc
,
double
epsilon
,
SearchAllNodes
search_all_nodes
);
double
epsilon_radius
,
SearchAllNodes
search_all_nodes
);
/// return the mesh object
/// return the mesh object
MeshLib
::
Mesh
const
&
getMesh
()
const
;
MeshLib
::
Mesh
const
&
getMesh
()
const
;
...
...
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