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
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
Yuhao Liu
ogs
Commits
75fd0a22
Commit
75fd0a22
authored
9 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[MeL/MS] Access to min and max pnt of ElementGrid.
parent
14699e97
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
MeshLib/MeshSearch/MeshElementGrid.cpp
+10
-0
10 additions, 0 deletions
MeshLib/MeshSearch/MeshElementGrid.cpp
MeshLib/MeshSearch/MeshElementGrid.h
+6
-0
6 additions, 0 deletions
MeshLib/MeshSearch/MeshElementGrid.h
with
16 additions
and
0 deletions
MeshLib/MeshSearch/MeshElementGrid.cpp
+
10
−
0
View file @
75fd0a22
...
...
@@ -100,6 +100,16 @@ MeshElementGrid::MeshElementGrid(MeshLib::Mesh const& sfc_mesh) :
sortElementsInGridCells
(
sfc_mesh
);
}
MathLib
::
Point3d
const
&
MeshElementGrid
::
getMinPoint
()
const
{
return
_aabb
.
getMinPoint
();
}
MathLib
::
Point3d
const
&
MeshElementGrid
::
getMaxPoint
()
const
{
return
_aabb
.
getMaxPoint
();
}
void
MeshElementGrid
::
sortElementsInGridCells
(
MeshLib
::
Mesh
const
&
sfc_mesh
)
{
for
(
auto
const
element
:
sfc_mesh
.
getElements
())
{
...
...
This diff is collapsed.
Click to expand it.
MeshLib/MeshSearch/MeshElementGrid.h
+
6
−
0
View file @
75fd0a22
...
...
@@ -72,6 +72,12 @@ public:
return
elements_vec
;
}
/// Returns the min point of the internal AABB. The method is a wrapper for
/// GeoLib::AABB::getMinPoint().
MathLib
::
Point3d
const
&
getMinPoint
()
const
;
/// Returns the max point of the internal AABB. The method is a wrapper for
/// AABB::getMaxPoint().
MathLib
::
Point3d
const
&
getMaxPoint
()
const
;
private
:
void
sortElementsInGridCells
(
MeshLib
::
Mesh
const
&
sfc_mesh
);
...
...
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