ENH: conformalVoronoiMesh.C: negative mixed coeff to switch off mixed fp's

This commit is contained in:
mattijs
2011-06-29 11:21:49 +01:00
parent ac65f2c5f3
commit bcad439478

View File

@ -1060,14 +1060,31 @@ void Foam::conformalVoronoiMesh::constructFeaturePointLocations()
{
const extendedFeatureEdgeMesh& feMesh(feMeshes[i]);
for
(
label ptI = feMesh.convexStart();
ptI < feMesh.nonFeatureStart();
ptI++
)
if (cvMeshControls().mixedFeaturePointPPDistanceCoeff() < 0)
{
ftPtLocs.append(feMesh.points()[ptI]);
// Ignoring mixed feature points
for
(
label ptI = feMesh.convexStart();
ptI < feMesh.mixedStart();
ptI++
)
{
ftPtLocs.append(feMesh.points()[ptI]);
}
}
else
{
for
(
label ptI = feMesh.convexStart();
ptI < feMesh.nonFeatureStart();
ptI++
)
{
ftPtLocs.append(feMesh.points()[ptI]);
}
}
}