mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
INT: Compatibility updates followinglatest integrations
This commit is contained in:
@ -1235,19 +1235,16 @@ void Foam::isoSurface::trimToBox
|
||||
{
|
||||
dynInterpolatedPoints.append(pointI);
|
||||
|
||||
FixedList<label, 3> oldPoints;
|
||||
oldPoints[0] = 3*oldTriI;
|
||||
oldPoints[1] = 3*oldTriI+1;
|
||||
oldPoints[2] = 3*oldTriI+2;
|
||||
FixedList<label, 3> oldPoints
|
||||
(
|
||||
{3*oldTriI, 3*oldTriI+1, 3*oldTriI+2}
|
||||
);
|
||||
dynInterpolatedOldPoints.append(oldPoints);
|
||||
|
||||
triPointRef tri(oldTriPoints, oldPoints);
|
||||
FixedList<scalar, 3> bary;
|
||||
tri.barycentric(pt, bary);
|
||||
FixedList<scalar, 3> weights;
|
||||
weights[0] = bary[0];
|
||||
weights[1] = bary[1];
|
||||
weights[2] = bary[2];
|
||||
barycentric2D bary = tri.pointToBarycentric(pt);
|
||||
FixedList<scalar, 3> weights({bary.a(), bary.b(), bary.c()});
|
||||
|
||||
dynInterpolationWeights.append(weights);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user