#include "VTKViewer_ArcBuilder.h"#include <cmath>#include <float.h>#include <vtkMath.h>#include <vtkUnstructuredGrid.h>#include <vtkTransformFilter.h>#include <vtkTransform.h>#include <vtkPoints.h>#include <vtkVertex.h>#include <vtkCellArray.h>#include <vtkTriangle.h>#include <vtkPolyData.h>#include <vtkPointData.h>#include <limits>Macros | |
| #define | PRECISION 10e-4 | 
| #define | ANGLE_PRECISION 0.5 | 
Functions | |
| bool | CheckAngle (const double compare, const double angle) | 
| double | InterpolateScalarValue (int index, int count, double firstValue, double middleValue, double lastValue) | 
| Pnt | CreatePnt (vtkCell *cell, vtkDataArray *scalars, vtkIdType index) | 
| vtkIdType | Build1DArc (vtkIdType cellId, vtkUnstructuredGrid *input, vtkPolyData *output, vtkIdType *pts, double myMaxArcAngle) | 
| vtkIdType | MergevtkPoints (const std::vector< vtkSmartPointer< vtkPoints > > &theCollection, const std::vector< std::vector< double > > &theScalarCollection, vtkPoints *thePoints, std::map< int, double > &thePntId2ScalarValue, vtkIdType *&theIds) | 
| #define ANGLE_PRECISION 0.5 | 
| #define PRECISION 10e-4 | 
| vtkIdType Build1DArc | ( | vtkIdType | cellId, | 
| vtkUnstructuredGrid * | input, | ||
| vtkPolyData * | output, | ||
| vtkIdType * | pts, | ||
| double | myMaxArcAngle | ||
| ) | 
References ANGLE_PRECISION.
| Pnt CreatePnt | ( | vtkCell * | cell, | 
| vtkDataArray * | scalars, | ||
| vtkIdType | index | ||
| ) | 
| double InterpolateScalarValue | ( | int | index, | 
| int | count, | ||
| double | firstValue, | ||
| double | middleValue, | ||
| double | lastValue | ||
| ) | 
| vtkIdType MergevtkPoints | ( | const std::vector< vtkSmartPointer< vtkPoints > > & | theCollection, | 
| const std::vector< std::vector< double > > & | theScalarCollection, | ||
| vtkPoints * | thePoints, | ||
| std::map< int, double > & | thePntId2ScalarValue, | ||
| vtkIdType *& | theIds | ||
| ) | 
Add all points from the input vector theCollection into thePoints. Array theIds - it is array with ids of added points.