#include <vtkDistancePolyDataFilter.h>
Inherits vtkPolyDataAlgorithm.
Computes the signed distance from one vtkPolyData to another. The signed distance to the second input is computed at every point in the first input using vtkImplicitPolyDataDistance. Optionally, the signed distance to the first input at every point in the second input can be computed. This may be enabled by calling ComputeSecondDistanceOn().
If the signed distance is not desired, the unsigned distance can be computed by calling SignedDistanceOff(). The signed distance field may be negated by calling NegateDistanceOn();
This code was contributed in the VTK Journal paper: "Boolean Operations on Surfaces in VTK Without External Libraries" by Cory Quammen, Chris Weigle C., Russ Taylor http://hdl.handle.net/10380/3262 http://www.midasjournal.org/browse/publication/797
- Tests:
- vtkDistancePolyDataFilter (Tests)
Definition at line 45 of file vtkDistancePolyDataFilter.h.
vtkDistancePolyDataFilter::vtkDistancePolyDataFilter |
( |
| ) |
|
|
protected |
vtkDistancePolyDataFilter::~vtkDistancePolyDataFilter |
( |
| ) |
|
|
protected |
static int vtkDistancePolyDataFilter::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkDistancePolyDataFilter::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkDistancePolyDataFilter::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkDistancePolyDataFilter::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual void vtkDistancePolyDataFilter::SetSignedDistance |
( |
int |
| ) |
|
|
virtual |
Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.
virtual int vtkDistancePolyDataFilter::GetSignedDistance |
( |
| ) |
|
|
virtual |
Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.
virtual void vtkDistancePolyDataFilter::SignedDistanceOn |
( |
| ) |
|
|
virtual |
Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.
virtual void vtkDistancePolyDataFilter::SignedDistanceOff |
( |
| ) |
|
|
virtual |
Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.
virtual void vtkDistancePolyDataFilter::SetNegateDistance |
( |
int |
| ) |
|
|
virtual |
Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.
virtual int vtkDistancePolyDataFilter::GetNegateDistance |
( |
| ) |
|
|
virtual |
Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.
virtual void vtkDistancePolyDataFilter::NegateDistanceOn |
( |
| ) |
|
|
virtual |
Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.
virtual void vtkDistancePolyDataFilter::NegateDistanceOff |
( |
| ) |
|
|
virtual |
Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.
virtual void vtkDistancePolyDataFilter::SetComputeSecondDistance |
( |
int |
| ) |
|
|
virtual |
Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.
virtual int vtkDistancePolyDataFilter::GetComputeSecondDistance |
( |
| ) |
|
|
virtual |
Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.
virtual void vtkDistancePolyDataFilter::ComputeSecondDistanceOn |
( |
| ) |
|
|
virtual |
Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.
virtual void vtkDistancePolyDataFilter::ComputeSecondDistanceOff |
( |
| ) |
|
|
virtual |
Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.
vtkPolyData* vtkDistancePolyDataFilter::GetSecondDistanceOutput |
( |
| ) |
|
Get the second output, which is a copy of the second input with an additional distance scalar field.
int vtkDistancePolyDataFilter::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
int vtkDistancePolyDataFilter::FillInputPortInformation |
( |
int |
, |
|
|
vtkInformation * |
|
|
) |
| |
|
protected |
void vtkDistancePolyDataFilter::GetPolyDataDistance |
( |
vtkPolyData * |
, |
|
|
vtkPolyData * |
|
|
) |
| |
|
protected |
The documentation for this class was generated from the following file: