mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
vtkPVblockMeshConvert: Updated to use the new blockDescriptor::edgesPointsWeights
This commit is contained in:
@ -172,6 +172,11 @@ void Foam::vtkPVblockMesh::convertMeshEdges
|
|||||||
|
|
||||||
edgeList blkEdges = blockDef.blockShape().edges();
|
edgeList blkEdges = blockDef.blockShape().edges();
|
||||||
|
|
||||||
|
// List of edge point and weighting factors
|
||||||
|
List<point> edgesPoints[12];
|
||||||
|
scalarList edgesWeights[12];
|
||||||
|
blockDef.edgesPointsWeights(edgesPoints, edgesWeights);
|
||||||
|
|
||||||
// find the corresponding edge within the block
|
// find the corresponding edge within the block
|
||||||
label foundEdgeI = -1;
|
label foundEdgeI = -1;
|
||||||
forAll(blkEdges, blkEdgeI)
|
forAll(blkEdges, blkEdgeI)
|
||||||
@ -185,9 +190,7 @@ void Foam::vtkPVblockMesh::convertMeshEdges
|
|||||||
|
|
||||||
if (foundEdgeI != -1)
|
if (foundEdgeI != -1)
|
||||||
{
|
{
|
||||||
const List<point>& edgePoints =
|
const List<point>& edgePoints = edgesPoints[foundEdgeI];
|
||||||
blockDef.blockEdgePoints()[foundEdgeI];
|
|
||||||
|
|
||||||
|
|
||||||
vtkPolyData* vtkmesh = vtkPolyData::New();
|
vtkPolyData* vtkmesh = vtkPolyData::New();
|
||||||
vtkPoints* vtkpoints = vtkPoints::New();
|
vtkPoints* vtkpoints = vtkPoints::New();
|
||||||
|
|||||||
Reference in New Issue
Block a user