ENH: refinementFeatures: make indexedOctree bounding box 3D

This commit is contained in:
mattijs
2011-04-11 13:37:41 +01:00
parent ce4302716d
commit 21ec7be069

View File

@ -86,7 +86,16 @@ Foam::refinementFeatures::refinementFeatures
const edgeList& edges = eMesh.edges();
// 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
(