Main Page Class Hierarchy Alphabetical List Compound List Compound 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)
Member Function Documentation
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::ComputeQuadric |
( |
int |
pointId |
) |
[protected] |
|
|
Compute quadric for this vertex. |
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. |
void vtkQuadricDecimation::GetAttributeComponents |
( |
|
) |
[protected] |
|
|
Find out how many components there are for each attribute for this poly data. |
virtual const char* vtkQuadricDecimation::GetClassName |
( |
|
) |
[virtual] |
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
int vtkQuadricDecimation::GetEdgeCellId |
( |
int |
p1Id, |
|
|
int |
p2Id |
|
) |
[protected] |
|
|
Find a cell that uses this edge. |
vtkPolyData* vtkQuadricDecimation::GetTestOutput |
( |
|
) |
[inline] |
|
|
For debuggin: the last edge / triangles that were collapsed. |
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. |
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. |
vtkQuadricDecimation* vtkQuadricDecimation::New |
( |
|
) |
[static] |
|
|
Instantiate object with no start, end, or progress methods.
Reimplemented from vtkPolyDataSource. |
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::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
virtual void vtkQuadricDecimation::SetMaximumCollapsedEdges |
( |
int |
|
) |
[virtual] |
|
|
Set/Get the maximum number of edges to collapse. |
virtual void vtkQuadricDecimation::SetMaximumCost |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the maximum allowable cost of collapsing an edge. |
The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:31:50 2002 for VTK by
1.2.14 written by Dimitri van Heesch,
© 1997-2002