1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkGLUTesselatorTriangleFilter.h,v $
6 Date: $Date: 2002/02/01 06:39:46 $
7 Version: $Revision: 1.1.1.1 $
8 Thanks: Tom Citriniti who implemented this class
11 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
14 Redistribution and use in source and binary forms, with or without
15 modification, are permitted provided that the following conditions are met:
17 * Redistributions of source code must retain the above copyright notice,
18 this list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation
22 and/or other materials provided with the distribution.
24 * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
25 of any contributors may be used to endorse or promote products derived
26 from this software without specific prior written permission.
28 * Modified source versions must be plainly marked as such, and must not be
29 misrepresented as being the original software.
31 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
32 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
35 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
39 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 =========================================================================*/
43 // .NAME vtkGLUTesselatorTriangleFilter - create triangle polygons from input polygons and triangle strips
44 // .SECTION Description
45 // vtkGLUTesselatorTriangleFilter generates triangles from input polygons and
46 // triangle strips. The filter also will pass through vertices and lines, if
49 // This filter is a specialized version of vtkTriangleFilter. It uses
50 // glu code to perform the tessellation. To use this filter, you will
51 // have to link against a GLU library.
56 #ifndef __vtkGLUTesselatorTriangleFilter_h
57 #define __vtkGLUTesselatorTriangleFilter_h
59 #include "vtkPolyDataToPolyDataFilter.h"
62 class VTK_EXPORT vtkGLUTesselatorTriangleFilter : public vtkPolyDataToPolyDataFilter
65 static vtkGLUTesselatorTriangleFilter *New();
66 vtkTypeMacro(vtkGLUTesselatorTriangleFilter,vtkPolyDataToPolyDataFilter);
67 void PrintSelf(ostream& os, vtkIndent indent);
70 // Turn on/off passing vertices through filter.
71 vtkBooleanMacro(PassVerts,int);
72 vtkSetMacro(PassVerts,int);
73 vtkGetMacro(PassVerts,int);
76 // Turn on/off passing lines through filter.
77 vtkBooleanMacro(PassLines,int);
78 vtkSetMacro(PassLines,int);
79 vtkGetMacro(PassLines,int);
82 vtkGLUTesselatorTriangleFilter();
83 ~vtkGLUTesselatorTriangleFilter();
84 vtkGLUTesselatorTriangleFilter(const vtkGLUTesselatorTriangleFilter&) {};
85 void operator=(const vtkGLUTesselatorTriangleFilter&) {};
87 // Usual data generation method
93 GLUtesselator *GLUTesselator;