Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6ae8581d
Commit
6ae8581d
authored
Nov 13, 2009
by
mattijs
Browse files
explicit constructor
parent
259a15d9
Changes
5
Hide whitespace changes
Inline
Side-by-side
applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C
View file @
6ae8581d
...
...
@@ -62,7 +62,7 @@ void writeProcStats
// Determine surface bounding boxes, faces, points
List
<
treeBoundBox
>
surfBb
(
Pstream
::
nProcs
());
{
surfBb
[
Pstream
::
myProcNo
()]
=
b
oundBox
(
s
.
points
()
,
false
);
surfBb
[
Pstream
::
myProcNo
()]
=
treeB
oundBox
(
s
.
points
());
Pstream
::
gatherList
(
surfBb
);
Pstream
::
scatterList
(
surfBb
);
}
...
...
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C
View file @
6ae8581d
...
...
@@ -1858,7 +1858,7 @@ void Foam::meshRefinement::distribute(const mapDistributePolyMesh& map)
// Get local mesh bounding box. Single box for now.
List
<
treeBoundBox
>
meshBb
(
1
);
treeBoundBox
&
bb
=
meshBb
[
0
];
bb
=
b
oundBox
(
mesh_
.
points
()
,
false
);
bb
=
treeB
oundBox
(
mesh_
.
points
());
bb
=
bb
.
extend
(
rndGen
,
1E-4
);
// Distribute all geometry (so refinementSurfaces and shellSurfaces)
...
...
src/meshTools/indexedOctree/treeDataTriSurface.C
View file @
6ae8581d
...
...
@@ -276,7 +276,7 @@ bool Foam::treeDataTriSurface::overlaps
const
point
&
p1
=
points
[
f
[
1
]];
const
point
&
p2
=
points
[
f
[
2
]];
b
oundBox
triBb
(
p0
,
p0
);
treeB
oundBox
triBb
(
p0
,
p0
);
triBb
.
min
()
=
min
(
triBb
.
min
(),
p1
);
triBb
.
min
()
=
min
(
triBb
.
min
(),
p2
);
...
...
src/meshTools/searchableSurface/distributedTriSurfaceMesh.C
View file @
6ae8581d
...
...
@@ -957,7 +957,7 @@ bool Foam::distributedTriSurfaceMesh::overlaps
{
const
treeBoundBox
&
bb
=
bbs
[
bbI
];
b
oundBox
triBb
(
p0
,
p0
);
treeB
oundBox
triBb
(
p0
,
p0
);
triBb
.
min
()
=
min
(
triBb
.
min
(),
p1
);
triBb
.
min
()
=
min
(
triBb
.
min
(),
p2
);
...
...
src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C
View file @
6ae8581d
...
...
@@ -757,9 +757,11 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
)
const
{
// Build tree out of all samples.
treeBoundBox
bb
(
samples
);
octree
<
octreeDataPoint
>
ppTree
(
treeBoundBox
(
samples
),
// overall search domain
bb
,
// overall search domain
octreeDataPoint
(
samples
),
// all information needed to do checks
1
,
// min levels
20
.
0
,
// maximum ratio of cubes v.s. cells
...
...
@@ -858,9 +860,11 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
vector
span
(
maxSearch
,
maxSearch
,
maxSearch
);
// octree.shapes holds reference!
treeBoundBox
bb
(
samples
);
octree
<
octreeDataPoint
>
ppTree
(
treeBoundBox
(
samples
),
// overall search domain
bb
,
// overall search domain
octreeDataPoint
(
samples
),
// all information needed to do checks
1
,
// min levels
20
.
0
,
// maximum ratio of cubes v.s. cells
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment