mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: surfaceCheck: new self-intersection test
This commit is contained in:
@ -653,6 +653,36 @@ int main(int argc, char *argv[])
|
|||||||
Info<< "Checking self-intersection." << endl;
|
Info<< "Checking self-intersection." << endl;
|
||||||
|
|
||||||
triSurfaceSearch querySurf(surf);
|
triSurfaceSearch querySurf(surf);
|
||||||
|
|
||||||
|
//{
|
||||||
|
// OBJstream intStream("selfInter2.obj");
|
||||||
|
// const indexedOctree<treeDataTriSurface>& tree = querySurf.tree();
|
||||||
|
// forAll(surf.edges(), edgeI)
|
||||||
|
// {
|
||||||
|
// const edge& e = surf.edges()[edgeI];
|
||||||
|
//
|
||||||
|
// pointIndexHit hitInfo
|
||||||
|
// (
|
||||||
|
// tree.findLine
|
||||||
|
// (
|
||||||
|
// surf.points()[surf.meshPoints()[e[0]]],
|
||||||
|
// surf.points()[surf.meshPoints()[e[1]]],
|
||||||
|
// treeDataTriSurface::findSelfIntersectOp
|
||||||
|
// (
|
||||||
|
// tree,
|
||||||
|
// edgeI
|
||||||
|
// )
|
||||||
|
// )
|
||||||
|
// );
|
||||||
|
//
|
||||||
|
// if (hitInfo.hit())
|
||||||
|
// {
|
||||||
|
// Pout<< "Found hit:" << hitInfo.hitPoint() << endl;
|
||||||
|
// intStream.write(hitInfo.hitPoint());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
surfaceIntersection inter(querySurf);
|
surfaceIntersection inter(querySurf);
|
||||||
|
|
||||||
if (inter.cutEdges().empty() && inter.cutPoints().empty())
|
if (inter.cutEdges().empty() && inter.cutPoints().empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user