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
a1e90a4d
Commit
a1e90a4d
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
extend search{Scalar,Vector,Tensor} API with element matching args
parent
c522b906
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Post/PViewData.cpp
+24
-12
24 additions, 12 deletions
Post/PViewData.cpp
Post/PViewData.h
+12
-6
12 additions, 6 deletions
Post/PViewData.h
with
36 additions
and
18 deletions
Post/PViewData.cpp
+
24
−
12
View file @
a1e90a4d
...
...
@@ -188,43 +188,55 @@ bool PViewData::combineSpace(nameData &nd)
}
bool
PViewData
::
searchScalar
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
)
int
step
,
double
*
size
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchScalar
(
x
,
y
,
z
,
values
,
step
,
size
);
return
_octree
->
searchScalar
(
x
,
y
,
z
,
values
,
step
,
size
,
qn
,
qx
,
qy
,
qz
);
}
bool
PViewData
::
searchScalarWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
,
double
tol
)
int
step
,
double
*
size
,
double
tol
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchScalarWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
);
return
_octree
->
searchScalarWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
,
qn
,
qx
,
qy
,
qz
);
}
bool
PViewData
::
searchVector
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
)
int
step
,
double
*
size
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchVector
(
x
,
y
,
z
,
values
,
step
,
size
);
return
_octree
->
searchVector
(
x
,
y
,
z
,
values
,
step
,
size
,
qn
,
qx
,
qy
,
qz
);
}
bool
PViewData
::
searchVectorWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
,
double
tol
)
int
step
,
double
*
size
,
double
tol
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchVectorWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
);
return
_octree
->
searchVectorWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
,
qn
,
qx
,
qy
,
qz
);
}
bool
PViewData
::
searchTensor
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
)
int
step
,
double
*
size
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchTensor
(
x
,
y
,
z
,
values
,
step
,
size
);
return
_octree
->
searchTensor
(
x
,
y
,
z
,
values
,
step
,
size
,
qn
,
qx
,
qy
,
qz
);
}
bool
PViewData
::
searchTensorWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
,
double
*
size
,
double
tol
)
int
step
,
double
*
size
,
double
tol
,
int
qn
,
double
*
qx
,
double
*
qy
,
double
*
qz
)
{
if
(
!
_octree
)
_octree
=
new
OctreePost
(
this
);
return
_octree
->
searchTensorWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
);
return
_octree
->
searchTensorWithTol
(
x
,
y
,
z
,
values
,
step
,
size
,
tol
,
qn
,
qx
,
qy
,
qz
);
}
This diff is collapsed.
Click to expand it.
Post/PViewData.h
+
12
−
6
View file @
a1e90a4d
...
...
@@ -252,17 +252,23 @@ class PViewData {
// time steps are present, they are all interpolated unless time step is set
// to a different value than -1.
bool
searchScalar
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
);
int
step
=-
1
,
double
*
size
=
0
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
bool
searchScalarWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
);
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
bool
searchVector
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
);
int
step
=-
1
,
double
*
size
=
0
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
bool
searchVectorWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
);
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
bool
searchTensor
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
);
int
step
=-
1
,
double
*
size
=
0
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
bool
searchTensorWithTol
(
double
x
,
double
y
,
double
z
,
double
*
values
,
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
);
int
step
=-
1
,
double
*
size
=
0
,
double
tol
=
1.e-2
,
int
qn
=
0
,
double
*
qx
=
0
,
double
*
qy
=
0
,
double
*
qz
=
0
);
// I/O routines
virtual
bool
writeSTL
(
const
std
::
string
&
fileName
);
...
...
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