Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkQuadricDecimation Class Reference
reduce the number of triangles in a mesh.
More...
#include <vtkQuadricDecimation.h>
Inheritance diagram for vtkQuadricDecimation:
[legend]Collaboration diagram for vtkQuadricDecimation:
[legend]List of all members.
Detailed Description
reduce the number of triangles in a mesh.
-
Date:
-
2000/12/10 20:08:49
-
Revision:
-
1.4
vtkQuadricDecimation is a filter to reduce the number of triangles in a triangle mesh, forming a good approximation to the original geometry. The input to vtkQuadricDecimation is a vtkPolyData object, and only triangles are treated. If you desire to decimate polygonal meshes, first triangulate the polygons with vtkTriangleFilter object.
The quadric error metric used is the one outlined in Hughues Hoppe's Vis '99 paper, "New Quadric Metric for Simplifying Meshes with Appearance Attributes."
-
Examples:
-
vtkQuadricDecimation (examples)
Definition at line 72 of file vtkQuadricDecimation.h.
Constructor & Destructor Documentation
vtkQuadricDecimation::vtkQuadricDecimation |
( |
|
) |
[protected] |
|
vtkQuadricDecimation::~vtkQuadricDecimation |
( |
|
) |
[protected] |
|
vtkQuadricDecimation::vtkQuadricDecimation |
( |
const vtkQuadricDecimation & |
|
) |
[inline, protected] |
|
Member Function Documentation
virtual const char* vtkQuadricDecimation::GetClassName |
( |
|
) |
[virtual] |
|
int vtkQuadricDecimation::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
virtual int vtkQuadricDecimation::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
vtkQuadricDecimation* vtkQuadricDecimation::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
void vtkQuadricDecimation::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkSource. |
vtkQuadricDecimation* vtkQuadricDecimation::New |
( |
|
) |
[static] |
|
|
Instantiate object with no start, end, or progress methods.
Reimplemented from vtkPolyDataSource. |
virtual void vtkQuadricDecimation::SetMaximumCost |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the maximum allowable cost of collapsing an edge. |
virtual float vtkQuadricDecimation::GetMaximumCost |
( |
|
) |
[virtual] |
|
virtual void vtkQuadricDecimation::SetMaximumCollapsedEdges |
( |
int |
|
) |
[virtual] |
|
|
Set/Get the maximum number of edges to collapse. |
virtual int vtkQuadricDecimation::GetMaximumCollapsedEdges |
( |
|
) |
[virtual] |
|
vtkPolyData* vtkQuadricDecimation::GetTestOutput |
( |
|
) |
[inline] |
|
void vtkQuadricDecimation::operator= |
( |
const vtkQuadricDecimation & |
|
) |
[inline, protected] |
|
void vtkQuadricDecimation::Execute |
( |
|
) |
[protected, virtual] |
|
void vtkQuadricDecimation::ComputeQuadric |
( |
int |
pointId |
) |
[protected] |
|
|
Compute quadric for this vertex. |
void vtkQuadricDecimation::AddQuadric |
( |
int |
oldPtId, |
|
|
int |
newPtId |
|
) |
[protected] |
|
|
Add the quadrics for these 2 points since the edge between them has been collapsed. |
float vtkQuadricDecimation::ComputeCost |
( |
int |
edgeId, |
|
|
float |
x[3], |
|
|
vtkPointData * |
pd |
|
) |
[protected] |
|
|
Compute cost for contracting this edge and the point that gives us this cost. |
void vtkQuadricDecimation::FindAffectedEdges |
( |
int |
p1Id, |
|
|
int |
p2Id, |
|
|
vtkIdList * |
edges |
|
) |
[protected] |
|
|
Find all edges that will have an endpoint change ids because of an edge collapse. p1Id and p2Id are the endpoints of the edge. p2Id is the pointId being removed. |
int vtkQuadricDecimation::GetEdgeCellId |
( |
int |
p1Id, |
|
|
int |
p2Id |
|
) |
[protected] |
|
|
Find a cell that uses this edge. |
void vtkQuadricDecimation::GetAttributeComponents |
( |
|
) |
[protected] |
|
|
Find out how many components there are for each attribute for this poly data. |
Member Data Documentation
float vtkQuadricDecimation::MaximumCost [protected]
|
|
int vtkQuadricDecimation::MaximumCollapsedEdges [protected]
|
|
int vtkQuadricDecimation::NumberOfCollapsedEdges [protected]
|
|
vtkIdList* vtkQuadricDecimation::EndPoint1List [protected]
|
|
vtkIdList* vtkQuadricDecimation::EndPoint2List [protected]
|
|
int vtkQuadricDecimation::AttributeComponents[6] [protected]
|
|
int vtkQuadricDecimation::NumberOfComponents [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:58:18 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001