Version: 9.12.0
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< vtkIdType, double > &thePntId2ScalarValue, vtkIdType *&theIds)
 

Macro Definition Documentation

◆ ANGLE_PRECISION

#define ANGLE_PRECISION   0.5

◆ PRECISION

#define PRECISION   10e-4

Function Documentation

◆ Build1DArc()

vtkIdType Build1DArc ( vtkIdType  cellId,
vtkUnstructuredGrid *  input,
vtkPolyData *  output,
vtkIdType *  pts,
double  myMaxArcAngle 
)

◆ CheckAngle()

bool CheckAngle ( const double  compare,
const double  angle 
)

References ANGLE_PRECISION.

◆ CreatePnt()

Pnt CreatePnt ( vtkCell *  cell,
vtkDataArray *  scalars,
vtkIdType  index 
)

◆ InterpolateScalarValue()

double InterpolateScalarValue ( int  index,
int  count,
double  firstValue,
double  middleValue,
double  lastValue 
)

◆ MergevtkPoints()

vtkIdType MergevtkPoints ( const std::vector< vtkSmartPointer< vtkPoints > > &  theCollection,
const std::vector< std::vector< double > > &  theScalarCollection,
vtkPoints *  thePoints,
std::map< vtkIdType, double > &  thePntId2ScalarValue,
vtkIdType *&  theIds 
)

Add all points from the input vector theCollection into thePoints. Array theIds - it is array with ids of added points.