ENH: Making nearestPointClassify query for triangle.

This is to access the face/edge/point status of the nearest at the
same time to ensure a consistent result.

Using getVolumeType query in distanceSurface, not simple normal
dot-product comparison, fails on edges.
This commit is contained in:
graham
2010-10-06 10:25:26 +01:00
parent 0cb7be9afe
commit 665cb1ca63
12 changed files with 410 additions and 584 deletions

View File

@ -177,7 +177,7 @@ void Foam::CV2D::insertSurfaceNearestPointPairs()
localPoints[f[0]],
localPoints[f[1]],
localPoints[f[2]]
).classify(pHit.hitPoint(), 1e-6, nearType, nearLabel);
).classify(pHit.hitPoint(), nearType, nearLabel);
// If point is on a edge check if it is an internal feature