Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
b4bf46dc
Commit
b4bf46dc
authored
11 years ago
by
Paul-Emile Bernard
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
aa71fc9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/BackgroundMesh.cpp
+64
-55
64 additions, 55 deletions
Mesh/BackgroundMesh.cpp
Mesh/BackgroundMesh.h
+10
-0
10 additions, 0 deletions
Mesh/BackgroundMesh.h
with
74 additions
and
55 deletions
Mesh/BackgroundMesh.cpp
+
64
−
55
View file @
b4bf46dc
...
@@ -1016,4 +1016,13 @@ MElementOctree* backgroundMesh::get_octree(){
...
@@ -1016,4 +1016,13 @@ MElementOctree* backgroundMesh::get_octree(){
return
_octree
;
return
_octree
;
}
}
MElement
*
backgroundMesh
::
getMeshElementByCoord
(
double
u
,
double
v
,
double
w
,
bool
strict
)
{
if
(
!
_octree
){
Msg
::
Debug
(
"Rebuilding BackgroundMesh element octree"
);
_octree
=
new
MElementOctree
(
_triangles
);
}
return
_octree
->
find
(
u
,
v
,
w
,
2
,
strict
);
}
backgroundMesh
*
backgroundMesh
::
_current
=
0
;
backgroundMesh
*
backgroundMesh
::
_current
=
0
;
This diff is collapsed.
Click to expand it.
Mesh/BackgroundMesh.h
+
10
−
0
View file @
b4bf46dc
...
@@ -85,6 +85,16 @@ class backgroundMesh : public simpleFunction<double>
...
@@ -85,6 +85,16 @@ class backgroundMesh : public simpleFunction<double>
}
}
}
}
MElementOctree
*
get_octree
();
MElementOctree
*
get_octree
();
MElement
*
getMeshElementByCoord
(
double
u
,
double
v
,
double
w
,
bool
strict
=
true
);
int
getNumMeshElements
()
const
{
return
_triangles
.
size
();}
std
::
vector
<
MVertex
*>::
iterator
begin_vertices
(){
return
_vertices
.
begin
();}
std
::
vector
<
MVertex
*>::
iterator
end_vertices
(){
return
_vertices
.
end
();}
std
::
vector
<
MVertex
*>::
const_iterator
begin_vertices
()
const
{
return
_vertices
.
begin
();}
std
::
vector
<
MVertex
*>::
const_iterator
end_vertices
()
const
{
return
_vertices
.
end
();}
std
::
vector
<
MElement
*>::
iterator
begin_triangles
(){
return
_triangles
.
begin
();}
std
::
vector
<
MElement
*>::
iterator
end_triangles
(){
return
_triangles
.
end
();}
std
::
vector
<
MElement
*>::
const_iterator
begin_triangles
()
const
{
return
_triangles
.
begin
();}
std
::
vector
<
MElement
*>::
const_iterator
end_triangles
()
const
{
return
_triangles
.
end
();}
};
};
SMetric3
buildMetricTangentToCurve
(
SVector3
&
t
,
double
l_t
,
double
l_n
);
SMetric3
buildMetricTangentToCurve
(
SVector3
&
t
,
double
l_t
,
double
l_n
);
...
...
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