mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Add enhanced edge conformation method
This commit is contained in:
@ -2183,54 +2183,59 @@ void Foam::conformalVoronoiMesh::addSurfaceAndEdgeHits
|
|||||||
pointIndexHitAndFeature(edHit, featureHit)
|
pointIndexHitAndFeature(edHit, featureHit)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// else if (firstPass)
|
else if (firstPass)
|
||||||
// {
|
{
|
||||||
// label hitIndex = nearestEdgeHit.index();
|
label hitIndex = nearestEdgeHit.index();
|
||||||
//
|
|
||||||
// // Calc new edge location
|
// Calc new edge location
|
||||||
//// Foam::point newPt =
|
Foam::point newPt =
|
||||||
//// 0.5
|
0.5
|
||||||
//// *(
|
*(
|
||||||
//// nearestEdgeHit.hitPoint()
|
nearestEdgeHit.hitPoint()
|
||||||
//// + edHit.hitPoint()
|
+ edHit.hitPoint()
|
||||||
//// );
|
);
|
||||||
//
|
|
||||||
// pointIndexHit pHitOld =
|
pointIndexHit pHitOld =
|
||||||
// edgeLocationTreePtr_().findNearest
|
edgeLocationTreePtr_().findNearest
|
||||||
// (
|
(
|
||||||
// nearestEdgeHit.hitPoint(), GREAT
|
nearestEdgeHit.hitPoint(), GREAT
|
||||||
// );
|
);
|
||||||
//
|
|
||||||
// pointIndexHit pHitNew =
|
pointIndexHit pHitNew =
|
||||||
// edgeLocationTreePtr_().findNearest
|
edgeLocationTreePtr_().findNearest
|
||||||
// (
|
(
|
||||||
// edHit.hitPoint(), GREAT
|
edHit.hitPoint(), GREAT
|
||||||
// );
|
);
|
||||||
//
|
|
||||||
// if
|
if
|
||||||
// (
|
(
|
||||||
// pHitNew.hitPoint() - pHitOld.hitPoint()
|
magSqr(pHitNew.hitPoint() - edHit.hitPoint())
|
||||||
// )
|
< magSqr
|
||||||
// {
|
(
|
||||||
// edHit.setPoint(pHit.hitPoint());
|
pHitOld.hitPoint()
|
||||||
//
|
- nearestEdgeHit.hitPoint()
|
||||||
// featureEdgeHits[hitIndex] =
|
)
|
||||||
// pointIndexHitAndFeature(edHit, featureHit);
|
)
|
||||||
//
|
{
|
||||||
// existingEdgeLocations_[hitIndex] =
|
edHit.setPoint(edHit.hitPoint());
|
||||||
// edHit.hitPoint();
|
|
||||||
//
|
featureEdgeHits[hitIndex] =
|
||||||
// // Change edge location in featureEdgeHits
|
pointIndexHitAndFeature(edHit, featureHit);
|
||||||
// // remove index from edge tree
|
|
||||||
// // reinsert new point into tree
|
existingEdgeLocations_[hitIndex] =
|
||||||
// edgeLocationTreePtr_().remove(hitIndex);
|
edHit.hitPoint();
|
||||||
// edgeLocationTreePtr_().insert
|
|
||||||
// (
|
// Change edge location in featureEdgeHits
|
||||||
// hitIndex,
|
// remove index from edge tree
|
||||||
// hitIndex + 1
|
// reinsert new point into tree
|
||||||
// );
|
edgeLocationTreePtr_().remove(hitIndex);
|
||||||
// }
|
edgeLocationTreePtr_().insert
|
||||||
// }
|
(
|
||||||
|
hitIndex,
|
||||||
|
hitIndex + 1
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user