mark points as to whether they are inside a closed surface
More...
#include <vtkSelectEnclosedPoints.h>
Inherits vtkDataSetAlgorithm.
mark points as to whether they are inside a closed surface
vtkSelectEnclosedPoints is a filter that evaluates all the input points to determine whether they are in an enclosed surface. The filter produces a (0,1) mask (in the form of a vtkDataArray) that indicates whether points are outside (mask value=0) or inside (mask value=1) a provided surface. (The name of the output vtkDataArray is "SelectedPointsArray".)
After running the filter, it is possible to query it as to whether a point is inside/outside by invoking the IsInside(ptId) method.
- Warning
- The filter assumes that the surface is closed and manifold. A boolean flag can be set to force the filter to first check whether this is true. If false, all points will be marked outside. Note that if this check is not performed and the surface is not closed, the results are undefined.
-
This filter produces and output data array, but does not modify the input dataset. If you wish to extract cells or poinrs, various threshold filters are available (i.e., threshold the output array).
- See Also
- vtkMaskPoints
- Tests:
- vtkSelectEnclosedPoints (Tests)
Definition at line 57 of file vtkSelectEnclosedPoints.h.
vtkSelectEnclosedPoints::vtkSelectEnclosedPoints |
( |
| ) |
|
|
protected |
vtkSelectEnclosedPoints::~vtkSelectEnclosedPoints |
( |
| ) |
|
|
protected |
static int vtkSelectEnclosedPoints::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
Standard methods for type information and printing.
virtual int vtkSelectEnclosedPoints::IsA |
( |
const char * |
type | ) |
|
|
virtual |
Standard methods for type information and printing.
Standard methods for type information and printing.
virtual vtkObjectBase* vtkSelectEnclosedPoints::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
Standard methods for type information and printing.
Standard methods for type information and printing.
void vtkSelectEnclosedPoints::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Standard methods for type information and printing.
void vtkSelectEnclosedPoints::SetSurfaceData |
( |
vtkPolyData * |
pd | ) |
|
Set the surface to be used to test for containment. Two methods are provided: one directly for vtkPolyData, and one for the output of a filter.
void vtkSelectEnclosedPoints::SetSurfaceConnection |
( |
vtkAlgorithmOutput * |
algOutput | ) |
|
Set the surface to be used to test for containment. Two methods are provided: one directly for vtkPolyData, and one for the output of a filter.
vtkPolyData* vtkSelectEnclosedPoints::GetSurface |
( |
| ) |
|
Return a pointer to the enclosing surface.
vtkPolyData* vtkSelectEnclosedPoints::GetSurface |
( |
vtkInformationVector * |
sourceInfo | ) |
|
Return a pointer to the enclosing surface.
virtual void vtkSelectEnclosedPoints::SetInsideOut |
( |
int |
| ) |
|
|
virtual |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::InsideOutOn |
( |
| ) |
|
|
virtual |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::InsideOutOff |
( |
| ) |
|
|
virtual |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual int vtkSelectEnclosedPoints::GetInsideOut |
( |
| ) |
|
|
virtual |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::SetCheckSurface |
( |
int |
| ) |
|
|
virtual |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual void vtkSelectEnclosedPoints::CheckSurfaceOn |
( |
| ) |
|
|
virtual |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual void vtkSelectEnclosedPoints::CheckSurfaceOff |
( |
| ) |
|
|
virtual |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual int vtkSelectEnclosedPoints::GetCheckSurface |
( |
| ) |
|
|
virtual |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
int vtkSelectEnclosedPoints::IsInside |
( |
vtkIdType |
inputPtId | ) |
|
Query an input point id as to whether it is inside or outside. Note that the result requires that the filter execute first.
virtual void vtkSelectEnclosedPoints::SetTolerance |
( |
double |
| ) |
|
|
virtual |
Specify the tolerance on the intersection. The tolerance is expressed as a fraction of the bounding box of the enclosing surface.
virtual double vtkSelectEnclosedPoints::GetTolerance |
( |
| ) |
|
|
virtual |
Specify the tolerance on the intersection. The tolerance is expressed as a fraction of the bounding box of the enclosing surface.
void vtkSelectEnclosedPoints::Initialize |
( |
vtkPolyData * |
surface | ) |
|
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsInsideSurface |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsInsideSurface |
( |
double |
x[3] | ) |
|
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
void vtkSelectEnclosedPoints::Complete |
( |
| ) |
|
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsSurfaceClosed |
( |
vtkPolyData * |
surface | ) |
|
|
protected |
virtual int vtkSelectEnclosedPoints::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
virtual int vtkSelectEnclosedPoints::FillInputPortInformation |
( |
int |
, |
|
|
vtkInformation * |
|
|
) |
| |
|
protectedvirtual |
virtual void vtkSelectEnclosedPoints::ReportReferences |
( |
vtkGarbageCollector * |
| ) |
|
|
protectedvirtual |
int vtkSelectEnclosedPoints::CheckSurface |
|
protected |
int vtkSelectEnclosedPoints::InsideOut |
|
protected |
double vtkSelectEnclosedPoints::Tolerance |
|
protected |
vtkUnsignedCharArray* vtkSelectEnclosedPoints::InsideOutsideArray |
|
protected |
vtkCellLocator* vtkSelectEnclosedPoints::CellLocator |
|
protected |
vtkIdList* vtkSelectEnclosedPoints::CellIds |
|
protected |
vtkGenericCell* vtkSelectEnclosedPoints::Cell |
|
protected |
vtkPolyData* vtkSelectEnclosedPoints::Surface |
|
protected |
double vtkSelectEnclosedPoints::Bounds[6] |
|
protected |
double vtkSelectEnclosedPoints::Length |
|
protected |
The documentation for this class was generated from the following file: