 |
VTK
9.1.0
|
Go to the documentation of this file.
68 #ifndef vtkClipClosedSurface_h
69 #define vtkClipClosedSurface_h
71 #include "vtkFiltersGeneralModule.h"
83 class vtkCCSEdgeLocator;
113 vtkSetMacro(Tolerance,
double);
114 vtkGetMacro(Tolerance,
double);
161 vtkGetMacro(ScalarMode,
int);
172 vtkSetVector3Macro(BaseColor,
double);
173 vtkGetVector3Macro(BaseColor,
double);
182 vtkSetVector3Macro(ClipColor,
double);
183 vtkGetVector3Macro(ClipColor,
double);
192 vtkSetMacro(ActivePlaneId,
int);
193 vtkGetMacro(ActivePlaneId,
int);
202 vtkSetVector3Macro(ActivePlaneColor,
double);
203 vtkGetVector3Macro(ActivePlaneColor,
double);
233 double ActivePlaneColor[3];
259 vtkCCSEdgeLocator* edgeLocator,
int triangulate,
vtkCellArray* inputCells,
270 vtkCCSEdgeLocator* edgeLocator,
double tol,
vtkIdType i0,
vtkIdType i1,
double v0,
double v1,
331 const double color3[3],
unsigned char colors[3][3]);
represent and manipulate 3D points
static vtkClipClosedSurface * New()
virtual void SetClippingPlanes(vtkPlaneCollection *planes)
Set the vtkPlaneCollection that holds the clipping planes.
@ VTK_CCS_SCALAR_MODE_COLORS
represent and manipulate point attribute data
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
a cell that represents an n-sided polygon
~vtkClipClosedSurface() override
dynamic, self-adjusting array of unsigned char
void SetScalarModeToNone()
Set whether to add cell scalars, so that new faces and outlines can be distinguished from original fa...
vtkTypeBool GenerateFaces
void SetScalarModeToColors()
Set whether to add cell scalars, so that new faces and outlines can be distinguished from original fa...
void SetScalarModeToLabels()
Set whether to add cell scalars, so that new faces and outlines can be distinguished from original fa...
vtkTypeBool TriangulationErrorDisplay
static void BreakTriangleStrips(vtkCellArray *inputStrips, vtkCellArray *outputPolys, vtkUnsignedCharArray *inputScalars, vtkIdType firstStripScalar, vtkUnsignedCharArray *outputScalars, const unsigned char color[3])
Break triangle strips and add the triangles to the output.
@ VTK_CCS_SCALAR_MODE_LABELS
static void SqueezeOutputPoints(vtkPolyData *output, vtkPoints *points, vtkPointData *pointData, int outputPointDataType)
Squeeze the points and store them in the output.
Clip a closed surface with a plane collection.
static int InterpolateEdge(vtkPoints *points, vtkPointData *pointData, vtkCCSEdgeLocator *edgeLocator, double tol, vtkIdType i0, vtkIdType i1, double v0, double v1, vtkIdType &i)
A helper function for interpolating a new point along an edge.
void TriangulateContours(vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines, vtkCellArray *outputPolys, const double normal[3])
Given some closed contour lines, create a triangle mesh that fills those lines.
const char * GetScalarModeAsString()
Set whether to add cell scalars, so that new faces and outlines can be distinguished from original fa...
represent and manipulate cell attribute data
a simple class to control print indentation
object to represent cell connectivity
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ VTK_CCS_SCALAR_MODE_NONE
int TriangulatePolygon(vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles)
A robust method for triangulating a polygon.
list of point or cell ids
vtkPlaneCollection * ClippingPlanes
vtkTypeBool GenerateOutline
vtkTypeBool PassPointData
dynamic, self-adjusting array of vtkIdType
static void CreateColorValues(const double color1[3], const double color2[3], const double color3[3], unsigned char colors[3][3])
Take three colors as doubles, and convert to unsigned char.
static void CopyPolygons(vtkCellArray *inputPolys, vtkCellArray *outputPolys, vtkUnsignedCharArray *inputScalars, vtkIdType firstPolyScalar, vtkUnsignedCharArray *outputScalars, const unsigned char color[3])
Copy polygons and their associated scalars to a new array.
concrete dataset represents vertices, lines, polygons, and triangle strips
void ClipAndContourPolys(vtkPoints *points, vtkDoubleArray *pointScalars, vtkPointData *pointData, vtkCCSEdgeLocator *edgeLocator, int triangulate, vtkCellArray *inputCells, vtkCellArray *outputPolys, vtkCellArray *outputLines, vtkCellData *inCellData, vtkCellData *outPolyData, vtkCellData *outLineData)
Clip and contour polys in one step, in order to guarantee that the contour lines exactly match the ne...
dynamic, self-adjusting array of double
maintain a list of planes
int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, int requestFromOutputPort, vtkMTimeType *mtime) override
A special version of ProcessRequest meant specifically for the pipeline modified time request.
void ClipLines(vtkPoints *points, vtkDoubleArray *pointScalars, vtkPointData *pointData, vtkCCSEdgeLocator *edgeLocator, vtkCellArray *inputCells, vtkCellArray *outputLines, vtkCellData *inCellData, vtkCellData *outLineData)
Method for clipping lines and copying the scalar data.
static void BreakPolylines(vtkCellArray *inputLines, vtkCellArray *outputLines, vtkUnsignedCharArray *inputScalars, vtkIdType firstLineScalar, vtkUnsignedCharArray *outputScalars, const unsigned char color[3])
Break polylines into individual lines, copying scalar values from inputScalars starting at firstLineS...
vtkTypeUInt32 vtkMTimeType
Superclass for algorithms that produce only polydata as output.