|
VTK
9.6.20260202
|
A utility class used by various contour filters. More...
#include <vtkContourHelper.h>
Public Member Functions | |
| vtkContourHelper (vtkIncrementalPointLocator *locator, vtkCellArray *outVerts, vtkCellArray *outLines, vtkCellArray *outPolys, vtkPointData *inPd, vtkCellData *inCd, vtkPointData *outPd, vtkCellData *outCd, int trisEstimatedSize, bool outputTriangles) | |
| Contour helper constructor. | |
| vtkContourHelper (vtkIncrementalPointLocator *locator, vtkCellArray *outVerts, vtkCellArray *outLines, vtkCellArray *outPolys, vtkPointData *inPd, vtkCellData *inCd, vtkPointData *outPd, vtkCellData *outCd, bool outputTriangles) | |
| Contour helper constructor. | |
| ~vtkContourHelper ()=default | |
| void | Contour (vtkCell *cell, double value, vtkDataArray *cellScalars, vtkIdType cellId) |
| Generate contour for the given cell (and add it to the final result). | |
A utility class used by various contour filters.
This is a simple utility class that can be used by various contour filters to produce either triangles and/or polygons based on the outputTriangles parameter.
When working with multidimensional dataset, it is needed to process cells from low to high dimensions.
Definition at line 35 of file vtkContourHelper.h.
| vtkContourHelper::vtkContourHelper | ( | vtkIncrementalPointLocator * | locator, |
| vtkCellArray * | outVerts, | ||
| vtkCellArray * | outLines, | ||
| vtkCellArray * | outPolys, | ||
| vtkPointData * | inPd, | ||
| vtkCellData * | inCd, | ||
| vtkPointData * | outPd, | ||
| vtkCellData * | outCd, | ||
| int | trisEstimatedSize, | ||
| bool | outputTriangles ) |
Contour helper constructor.
| locator | Locator used to "carry" and merge contour points (avoid duplicates) |
| outVerts | Contour vertices, incremented at each Contour call |
| outLines | Contour lines, incremented at each Contour call |
| outPolys | Contour polys, incremented at each Contour call |
| inPd | Input point data, that will be interpolated on output contour point data |
| inCd | Input cell data, that will be copied on output contour cell data |
| outPd | If not nullptr, will contains contour point data, interpolated from inPd |
| outCd | If not nullptr, will contains contour cell data, copied from inCd |
| trisEstimatedSize | used to allocate memory for temporary triangles created by contouring before merging them. Only used if outputTriangles is true. |
| outputTriangles | if true, the contour helper will output triangles directly and will not merge them. |
| vtkContourHelper::vtkContourHelper | ( | vtkIncrementalPointLocator * | locator, |
| vtkCellArray * | outVerts, | ||
| vtkCellArray * | outLines, | ||
| vtkCellArray * | outPolys, | ||
| vtkPointData * | inPd, | ||
| vtkCellData * | inCd, | ||
| vtkPointData * | outPd, | ||
| vtkCellData * | outCd, | ||
| bool | outputTriangles ) |
Contour helper constructor.
| locator | Locator used to "carry" and merge contour points (avoid duplicates) |
| outVerts | Contour vertices, incremented at each Contour call |
| outLines | Contour lines, incremented at each Contour call |
| outPolys | Contour polys, incremented at each Contour call |
| inPd | Input point data, that will be interpolated on output contour point data |
| inCd | Input cell data, that will be copied on output contour cell data |
| outPd | If not nullptr, will contains contour point data, interpolated from inPd |
| outCd | If not nullptr, will contains contour cell data, copied from inCd |
| outputTriangles | if true, the contour helper will output triangles directly and will not merge them. |
|
default |
| void vtkContourHelper::Contour | ( | vtkCell * | cell, |
| double | value, | ||
| vtkDataArray * | cellScalars, | ||
| vtkIdType | cellId ) |
Generate contour for the given cell (and add it to the final result).
| cell | Cell to contour |
| value | Contour value |
| cellScalars | Scalar values at each point to contour with. Should be indexed with local cell points ids. |
| cellId | Contoured cell id, used to copy cell data to the contour (see inCd and outCd parameters in the constructor) |