Commit 7d48a4c2 authored by Henry Weller's avatar Henry Weller
Browse files

vtkPVblockMeshConvert: Updated to use the new blockDescriptor::edgesPointsWeights

parent c18fe1b1
......@@ -172,6 +172,11 @@ void Foam::vtkPVblockMesh::convertMeshEdges
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
label foundEdgeI = -1;
forAll(blkEdges, blkEdgeI)
......@@ -185,9 +190,7 @@ void Foam::vtkPVblockMesh::convertMeshEdges
if (foundEdgeI != -1)
{
const List<point>& edgePoints =
blockDef.blockEdgePoints()[foundEdgeI];
const List<point>& edgePoints = edgesPoints[foundEdgeI];
vtkPolyData* vtkmesh = vtkPolyData::New();
vtkPoints* vtkpoints = vtkPoints::New();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment