GIT: relocate treeDataEdge, treeDataPoint into OpenFOAM

- similar to treeDataCell, doesn't need any meshTools components
- AABBTree under algorithms (like indexedOctree)
This commit is contained in:
Mark Olesen
2022-10-07 15:12:50 +02:00
parent 0c89f38312
commit 98a510c317
8 changed files with 5 additions and 8 deletions

View File

@ -824,6 +824,8 @@ $(interpolationWeights)/splineInterpolationWeights/splineInterpolationWeights.C
algorithms/indexedOctree/indexedOctreeName.C algorithms/indexedOctree/indexedOctreeName.C
algorithms/indexedOctree/treeDataCell.C algorithms/indexedOctree/treeDataCell.C
algorithms/indexedOctree/treeDataEdge.C
algorithms/indexedOctree/treeDataPoint.C
algorithms/indexedOctree/volumeType.C algorithms/indexedOctree/volumeType.C
algorithms/dynamicIndexedOctree/dynamicIndexedOctreeName.C algorithms/dynamicIndexedOctree/dynamicIndexedOctreeName.C

View File

@ -27,9 +27,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "AABBTree.H" #include "AABBTree.H"
#include "meshTools.H"
#include "bitSet.H" #include "bitSet.H"
//#include "OFstream.H"
template<class Type> template<class Type>
Foam::scalar Foam::AABBTree<Type>::tolerance_ = 1e-4; Foam::scalar Foam::AABBTree<Type>::tolerance_ = 1e-4;
@ -46,9 +44,10 @@ void Foam::AABBTree<Type>::writeOBJ
) const ) const
{ {
const pointField pts(bb.points()); const pointField pts(bb.points());
for (const point& pt : pts)
for (const point& p : pts)
{ {
meshTools::writeOBJ(os, pt); os << "v " << p.x() << ' ' << p.y() << ' ' << p.z() << nl;
} }
if (writeLinesOnly) if (writeLinesOnly)

View File

@ -27,9 +27,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "treeDataPoint.H" #include "treeDataPoint.H"
#include "treeBoundBox.H"
#include "indexedOctree.H" #include "indexedOctree.H"
#include "triangleFuncs.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //

View File

@ -89,9 +89,7 @@ regionSplit/localPointRegion.C
regionSplit2D/regionSplit2D.C regionSplit2D/regionSplit2D.C
indexedOctree/treeDataEdge.C
indexedOctree/treeDataFace.C indexedOctree/treeDataFace.C
indexedOctree/treeDataPoint.C
indexedOctree/treeDataPrimitivePatchName.C indexedOctree/treeDataPrimitivePatchName.C
indexedOctree/treeDataTriSurface.C indexedOctree/treeDataTriSurface.C