31 #include <vtkGeometryFilter.h> 32 #include <vtkPointData.h> 33 #include <vtkSelectEnclosedPoints.h> 54 vtkSmartPointer<vtkGeometryFilter> gf =
56 vtkSmartPointer<vtkSelectEnclosedPoints> sep =
60 gf->SetInputData(mesh);
64 sep->SetInputData(points);
65 sep->SetSurfaceConnection(gf->GetOutputPort());
68 return sep->GetOutput()->GetPointData()->GetScalars(
"SelectedPoints");
geoMeshBase * New(MeshType meshType)
Create a new mesh object.
std::shared_ptr< meshBase > mesh
std::vector< vtkIdType > points
points given by id in .inp file
static vtkDataArray * fromDataSet(vtkDataSet *mesh, vtkDataSet *points)
Select enclosed points.