Lines 763-772
Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
Link Here
|
763 |
const scalarField& maxDist |
763 |
const scalarField& maxDist |
764 |
) const |
764 |
) const |
765 |
{ |
765 |
{ |
|
|
766 |
treeBoundBox tbb(samples); |
766 |
// Build tree out of all samples. |
767 |
// Build tree out of all samples. |
767 |
octree<octreeDataPoint> ppTree |
768 |
octree<octreeDataPoint> ppTree |
768 |
( |
769 |
( |
769 |
treeBoundBox(samples), // overall search domain |
770 |
tbb, // overall search domain |
770 |
octreeDataPoint(samples), // all information needed to do checks |
771 |
octreeDataPoint(samples), // all information needed to do checks |
771 |
1, // min levels |
772 |
1, // min levels |
772 |
20.0, // maximum ratio of cubes v.s. cells |
773 |
20.0, // maximum ratio of cubes v.s. cells |
Lines 864-873
Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
Link Here
|
864 |
scalar maxSearch = max(maxDist); |
865 |
scalar maxSearch = max(maxDist); |
865 |
vector span(maxSearch, maxSearch, maxSearch); |
866 |
vector span(maxSearch, maxSearch, maxSearch); |
866 |
|
867 |
|
|
|
868 |
treeBoundBox tbb(samples); |
867 |
// octree.shapes holds reference! |
869 |
// octree.shapes holds reference! |
868 |
octree<octreeDataPoint> ppTree |
870 |
octree<octreeDataPoint> ppTree |
869 |
( |
871 |
( |
870 |
treeBoundBox(samples), // overall search domain |
872 |
tbb, // overall search domain |
871 |
octreeDataPoint(samples), // all information needed to do checks |
873 |
octreeDataPoint(samples), // all information needed to do checks |
872 |
1, // min levels |
874 |
1, // min levels |
873 |
20.0, // maximum ratio of cubes v.s. cells |
875 |
20.0, // maximum ratio of cubes v.s. cells |