Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_ArcBuilder.cxx File Reference
#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)
 

Macro Definition Documentation

#define ANGLE_PRECISION   0.5
#define PRECISION   10e-4

Function Documentation

vtkIdType Build1DArc ( vtkIdType  cellId,
vtkUnstructuredGrid *  input,
vtkPolyData *  output,
vtkIdType *  pts,
double  myMaxArcAngle 
)
bool CheckAngle ( const double  compare,
const double  angle 
)

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.