 |
VTK
9.1.0
|
Go to the documentation of this file.
51 #ifndef vtkPointsProjectedHull_h
52 #define vtkPointsProjectedHull_h
54 #include "vtkCommonDataModelModule.h"
172 int RectangleIntersection(
double hmin,
double hmax,
double vmin,
double vmax,
int direction);
175 int RectangleBoundingBoxIntersection(
176 double hmin,
double hmax,
double vmin,
double vmax,
int direction);
177 int RectangleOutside(
double hmin,
double hmax,
double vmin,
double vmax,
int direction);
179 int RectangleOutside1DPolygon(
double hmin,
double hmax,
double vmin,
double vmax,
int dir);
182 void ClearAllocations();
184 static int RemoveExtras(
double* pts,
int n);
185 static double Distance(
double* p1,
double* p2);
186 static vtkIdType PositionInHull(
double* base,
double*
top,
double* pt);
187 static int OutsideLine(
188 double hmin,
double hmax,
double vmin,
double vmax,
double* p0,
double* p1,
double* insidePt);
189 static int OutsideHorizontalLine(
190 double vmin,
double vmax,
double* p0,
double* p1,
double* insidePt);
191 static int OutsideVerticalLine(
192 double hmin,
double hmax,
double* p0,
double* p1,
double* insidePt);
199 float HullBBox[3][4];
represent and manipulate 3D points
void Update()
Forces recalculation of convex hulls, use this if you delete/add points.
int RectangleIntersectionX(vtkPoints *R)
determine whether the resulting rectangle intersects the convex hull of the projection of the points ...
void Reset() override
Make object look empty but do not delete memory.
record modification and/or execution time
int GetCCWHullZ(double *pts, int len)
int GetCCWHullY(double *pts, int len)
int GetCCWHullX(float *pts, int len)
Returns the coordinates (y,z) of the points in the convex hull of the projection of the points down t...
int RectangleIntersectionZ(double xmin, double xmax, double ymin, double ymax)
the convex hull of the orthogonal projection of the vtkPoints in the 3 coordinate directions
int GetCCWHullY(float *pts, int len)
Returns the coordinates (z, x) of the points in the convex hull of the projection of the points down ...
int GetCCWHullZ(float *pts, int len)
Returns the coordinates (x, y) of the points in the convex hull of the projection of the points down ...
~vtkPointsProjectedHull() override
void Initialize() override
Return object to instantiated state.
int RectangleIntersectionX(float ymin, float ymax, float zmin, float zmax)
the convex hull of the projection of the points along the positive X-axis.
a simple class to control print indentation
int RectangleIntersectionX(double ymin, double ymax, double zmin, double zmax)
int RectangleIntersectionY(double zmin, double zmax, double xmin, double xmax)
void GetPoints(vtkIdList *ptId, vtkPoints *outPoints)
Given a list of pt ids, return an array of points.
int RectangleIntersectionZ(vtkPoints *R)
of the parallel projection along the Z axis of the points
int GetSizeCCWHullZ()
Returns the number of points in the convex hull of the projection of the points down the positive z-a...
int RectangleIntersectionY(float zmin, float zmax, float xmin, float xmax)
the convex hull of the projection of the points along the positive Y-axis.
int RectangleIntersectionZ(float xmin, float xmax, float ymin, float ymax)
the convex hull of the projection of the points along the positive Z-axis.
int GetSizeCCWHullX()
Returns the number of points in the convex hull of the projection of the points down the positive x-a...
virtual void Initialize()
Return object to instantiated state.
static vtkPointsProjectedHull * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RectangleIntersectionY(vtkPoints *R)
of the parallel projection along the Y axis of the points
int GetCCWHullX(double *pts, int len)
int GetSizeCCWHullY()
Returns the number of points in the convex hull of the projection of the points down the positive y-a...