mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: refinementFeatures: make indexedOctree bounding box 3D
This commit is contained in:
@ -86,7 +86,16 @@ Foam::refinementFeatures::refinementFeatures
|
|||||||
const edgeList& edges = eMesh.edges();
|
const edgeList& edges = eMesh.edges();
|
||||||
|
|
||||||
// Calculate bb of all points
|
// Calculate bb of all points
|
||||||
const treeBoundBox bb(points);
|
treeBoundBox bb(points);
|
||||||
|
|
||||||
|
// Random number generator. Bit dodgy since not exactly random ;-)
|
||||||
|
Random rndGen(65431);
|
||||||
|
|
||||||
|
// Slightly extended bb. Slightly off-centred just so on symmetric
|
||||||
|
// geometry there are less face/edge aligned items.
|
||||||
|
bb = bb.extend(rndGen, 1E-4);
|
||||||
|
bb.min() -= point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL);
|
||||||
|
bb.max() += point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL);
|
||||||
|
|
||||||
edgeTrees_.set
|
edgeTrees_.set
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user