234#ifndef vtkDelaunay2D_h
235#define vtkDelaunay2D_h
237#include "vtkFiltersCoreModule.h"
245#define VTK_DELAUNAY_XY_PLANE 0
246#define VTK_SET_TRANSFORM_PLANE 1
247#define VTK_BEST_FITTING_PLANE 2
295 vtkGetMacro(Alpha,
double);
304 vtkSetClampMacro(Tolerance,
double, 0.0, 1.0);
305 vtkGetMacro(Tolerance,
double);
314 vtkGetMacro(Offset,
double);
354 vtkGetMacro(ProjectionPlaneMode,
int);
387 this->Points[idx] = x[0];
388 this->Points[idx + 1] = x[1];
389 this->Points[idx + 2] = x[2];
394 double* ptr = this->Points + 3 * id;
400 int NumberOfDuplicatePoints;
401 int NumberOfDegeneracies;
407 int InCircle(
double x[3],
double x1[3],
double x2[3],
double x3[3]);
void GetPoint(const int i, const int j, const int k, double pnt[3])
Proxy object to connect input/output ports.
object to represent cell connectivity
create 2D Delaunay triangulation of input points
~vtkDelaunay2D() override
vtkPolyData * GetSource()
Get a pointer to the source object.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void SetTransform(vtkAbstractTransform *)
Set / get the transform which is applied to points to generate a 2D problem.
static vtkDelaunay2D * New()
Construct object with Alpha = 0.0; Tolerance = 0.001; Offset = 1.25; BoundingTriangulation turned off...
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the source object used to specify constrained edges and loops.
static vtkAbstractTransform * ComputeBestFittingPlane(vtkPointSet *input)
This method computes the best fit plane to a set of points represented by a vtkPointSet.
vtkTypeBool BoundingTriangulation
vtkAbstractTransform * Transform
void SetSourceData(vtkPolyData *)
Specify the source object used to specify constrained edges and loops.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
list of point or cell ids
a simple class to control print indentation
concrete class for storing a set of points
Superclass for algorithms that produce only polydata as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
concrete dataset represents vertices, lines, polygons, and triangle strips
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_BEST_FITTING_PLANE
#define VTK_DELAUNAY_XY_PLANE