NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
selectEnclosedPoints Class Reference

Detailed Description

Definition at line 95 of file selectEnclosedPoints.H.

Public Member Functions

 selectEnclosedPoints (const meshBase *meshBase_)
 

Static Public Member Functions

static vtkDataArray * fromDataSet (vtkDataSet *mesh, vtkDataSet *points)
 Select enclosed points. More...
 

Private Attributes

const meshBase_meshBase
 

Constructor & Destructor Documentation

◆ selectEnclosedPoints()

selectEnclosedPoints::selectEnclosedPoints ( const meshBase meshBase_)
inlineexplicit

Definition at line 97 of file selectEnclosedPoints.H.

References mesh, and points.

98  : _meshBase(meshBase_) {}
const meshBase * _meshBase

Member Function Documentation

◆ fromDataSet()

vtkDataArray * selectEnclosedPoints::fromDataSet ( vtkDataSet *  mesh,
vtkDataSet *  points 
)
static
Parameters
meshInput mesh. Geometry is extracted from here.
pointsSet of points to check for enclosure.
Returns
Mask of (0,1). Point is outside (0) or inside (1).

Definition at line 52 of file selectEnclosedPoints.C.

References NEM::MSH::New().

53  {
54  vtkSmartPointer<vtkGeometryFilter> gf =
56  vtkSmartPointer<vtkSelectEnclosedPoints> sep =
58 
59  // Send the input mesh to the Geometry Filter to convert to surface
60  gf->SetInputData(mesh);
61 
62  // Send input points and surface from Geometry Filter to Select Enclosed
63  // Points algorithm
64  sep->SetInputData(points);
65  sep->SetSurfaceConnection(gf->GetOutputPort());
66 
67  // Get the resulting mask.
68  return sep->GetOutput()->GetPointData()->GetScalars("SelectedPoints");
69 }
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
Definition: inpGeoMesh.C:133

Member Data Documentation

◆ _meshBase

const meshBase* selectEnclosedPoints::_meshBase
private

Definition at line 110 of file selectEnclosedPoints.H.


The documentation for this class was generated from the following files: