VTK
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

Classes

struct  ErrorQuadric
 

Public Types

typedef vtkPolyDataAlgorithm Superclass
 
- Public Types inherited from vtkPolyDataAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkQuadricDecimationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetTargetReduction (double)
 
virtual double GetTargetReduction ()
 
virtual void SetAttributeErrorMetric (int)
 
virtual int GetAttributeErrorMetric ()
 
virtual void AttributeErrorMetricOn ()
 
virtual void AttributeErrorMetricOff ()
 
virtual void SetScalarsAttribute (int)
 
virtual int GetScalarsAttribute ()
 
virtual void ScalarsAttributeOn ()
 
virtual void ScalarsAttributeOff ()
 
virtual void SetVectorsAttribute (int)
 
virtual int GetVectorsAttribute ()
 
virtual void VectorsAttributeOn ()
 
virtual void VectorsAttributeOff ()
 
virtual void SetNormalsAttribute (int)
 
virtual int GetNormalsAttribute ()
 
virtual void NormalsAttributeOn ()
 
virtual void NormalsAttributeOff ()
 
virtual void SetTCoordsAttribute (int)
 
virtual int GetTCoordsAttribute ()
 
virtual void TCoordsAttributeOn ()
 
virtual void TCoordsAttributeOff ()
 
virtual void SetTensorsAttribute (int)
 
virtual int GetTensorsAttribute ()
 
virtual void TensorsAttributeOn ()
 
virtual void TensorsAttributeOff ()
 
virtual void SetScalarsWeight (double)
 
virtual void SetVectorsWeight (double)
 
virtual void SetNormalsWeight (double)
 
virtual void SetTCoordsWeight (double)
 
virtual void SetTensorsWeight (double)
 
virtual double GetScalarsWeight ()
 
virtual double GetVectorsWeight ()
 
virtual double GetNormalsWeight ()
 
virtual double GetTCoordsWeight ()
 
virtual double GetTensorsWeight ()
 
virtual double GetActualReduction ()
 
- Public Member Functions inherited from vtkPolyDataAlgorithm
vtkPolyDataAlgorithmNewInstance () const
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
vtkPolyDataGetPolyDataInput (int port)
 
vtkPolyDataGetOutput ()
 
vtkPolyDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkQuadricDecimationSafeDownCast (vtkObjectBase *o)
 
static vtkQuadricDecimationNew ()
 
- Static Public Member Functions inherited from vtkPolyDataAlgorithm
static vtkPolyDataAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkQuadricDecimation ()
 
 ~vtkQuadricDecimation ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
int CollapseEdge (vtkIdType pt0Id, vtkIdType pt1Id)
 
void InitializeQuadrics (vtkIdType numPts)
 
void AddBoundaryConstraints (void)
 
void ComputeQuadric (vtkIdType pointId)
 
void AddQuadric (vtkIdType oldPtId, vtkIdType newPtId)
 
void FindAffectedEdges (vtkIdType p1Id, vtkIdType p2Id, vtkIdList *edges)
 
vtkIdType GetEdgeCellId (vtkIdType p1Id, vtkIdType p2Id)
 
int IsGoodPlacement (vtkIdType pt0Id, vtkIdType pt1Id, const double *x)
 
int TrianglePlaneCheck (const double t0[3], const double t1[3], const double t2[3], const double *x)
 
void ComputeNumberOfComponents (void)
 
void UpdateEdgeData (vtkIdType ptoId, vtkIdType pt1Id)
 
void GetAttributeComponents ()
 
double ComputeCost (vtkIdType edgeId, double *x)
 
double ComputeCost2 (vtkIdType edgeId, double *x)
 
void SetPointAttributeArray (vtkIdType ptId, const double *x)
 
void GetPointAttributeArray (vtkIdType ptId, double *x)
 
- Protected Member Functions inherited from vtkPolyDataAlgorithm
 vtkPolyDataAlgorithm ()
 
 ~vtkPolyDataAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

double TargetReduction
 
double ActualReduction
 
int AttributeErrorMetric
 
int ScalarsAttribute
 
int VectorsAttribute
 
int NormalsAttribute
 
int TCoordsAttribute
 
int TensorsAttribute
 
double ScalarsWeight
 
double VectorsWeight
 
double NormalsWeight
 
double TCoordsWeight
 
double TensorsWeight
 
int NumberOfEdgeCollapses
 
vtkEdgeTableEdges
 
vtkIdListEndPoint1List
 
vtkIdListEndPoint2List
 
vtkPriorityQueueEdgeCosts
 
vtkDoubleArrayTargetPoints
 
int NumberOfComponents
 
vtkPolyDataMesh
 
ErrorQuadricErrorQuadrics
 
int AttributeComponents [6]
 
double AttributeScale [6]
 
vtkIdListCollapseCellIds
 
doubleTempX
 
doubleTempQuad
 
doubleTempB
 
double ** TempA
 
doubleTempData
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

reduce the number of triangles in a mesh

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.

The algorithm is based on repeated edge collapses until the requested mesh reduction is achieved. Edges are placed in a priority queue based on the "cost" to delete the edge. The cost is an approximate measure of error (distance to the original surface)–described by the so-called quadric error measure. The quadric error measure is associated with each vertex of the mesh and represents a matrix of planes incident on that vertex. The distance of the planes to the vertex is the error in the position of the vertex (originally the vertex error iz zero). As edges are deleted, the quadric error measure associated with the two end points of the edge are summed (this combines the plane equations) and an optimal collapse point can be computed. Edges connected to the collapse point are then reinserted into the queue after computing the new cost to delete them. The process continues until the desired reduction level is reached or topological constraints prevent further reduction. Note that this basic algorithm can be extended to higher dimensions by taking into account variation in attributes (i.e., scalars, vectors, and so on).

This paper is based on the work of Garland and Heckbert who first presented the quadric error measure at Siggraph '97 "Surface Simplification Using Quadric Error Metrics". For details of the algorithm Michael Garland's Ph.D. thesis is also recommended. Hughues Hoppe's Vis '99 paper, "New Quadric Metric for Simplifying Meshes with Appearance Attributes" is also a good take on the subject especially as it pertains to the error metric applied to attributes.

Thanks:
Thanks to Bradley Lowekamp of the National Library of Medicine/NIH for contributing this class.
Tests:
vtkQuadricDecimation (Tests)

Definition at line 70 of file vtkQuadricDecimation.h.

Member Typedef Documentation

Definition at line 73 of file vtkQuadricDecimation.h.

Constructor & Destructor Documentation

vtkQuadricDecimation::vtkQuadricDecimation ( )
protected
vtkQuadricDecimation::~vtkQuadricDecimation ( )
protected

Member Function Documentation

static int vtkQuadricDecimation::IsTypeOf ( const char *  type)
static
virtual int vtkQuadricDecimation::IsA ( const char *  name)
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 vtkPolyDataAlgorithm.

static vtkQuadricDecimation* vtkQuadricDecimation::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkQuadricDecimation::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPolyDataAlgorithm.

vtkQuadricDecimation* vtkQuadricDecimation::NewInstance ( ) const
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 vtkPolyDataAlgorithm.

static vtkQuadricDecimation* vtkQuadricDecimation::New ( )
static
virtual void vtkQuadricDecimation::SetTargetReduction ( double  )
virtual

Set/Get the desired reduction (expressed as a fraction of the original number of triangles). The actual reduction may be less depending on triangulation and topological constraints.

virtual double vtkQuadricDecimation::GetTargetReduction ( )
virtual

Set/Get the desired reduction (expressed as a fraction of the original number of triangles). The actual reduction may be less depending on triangulation and topological constraints.

virtual void vtkQuadricDecimation::SetAttributeErrorMetric ( int  )
virtual

Decide whether to include data attributes in the error metric. If off, then only geometric error is used to control the decimation. By default the attribute errors are off.

virtual int vtkQuadricDecimation::GetAttributeErrorMetric ( )
virtual

Decide whether to include data attributes in the error metric. If off, then only geometric error is used to control the decimation. By default the attribute errors are off.

virtual void vtkQuadricDecimation::AttributeErrorMetricOn ( )
virtual

Decide whether to include data attributes in the error metric. If off, then only geometric error is used to control the decimation. By default the attribute errors are off.

virtual void vtkQuadricDecimation::AttributeErrorMetricOff ( )
virtual

Decide whether to include data attributes in the error metric. If off, then only geometric error is used to control the decimation. By default the attribute errors are off.

virtual void vtkQuadricDecimation::SetScalarsAttribute ( int  )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual int vtkQuadricDecimation::GetScalarsAttribute ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::ScalarsAttributeOn ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::ScalarsAttributeOff ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::SetVectorsAttribute ( int  )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual int vtkQuadricDecimation::GetVectorsAttribute ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::VectorsAttributeOn ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::VectorsAttributeOff ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::SetNormalsAttribute ( int  )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual int vtkQuadricDecimation::GetNormalsAttribute ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::NormalsAttributeOn ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::NormalsAttributeOff ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::SetTCoordsAttribute ( int  )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual int vtkQuadricDecimation::GetTCoordsAttribute ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::TCoordsAttributeOn ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::TCoordsAttributeOff ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::SetTensorsAttribute ( int  )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual int vtkQuadricDecimation::GetTensorsAttribute ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::TensorsAttributeOn ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::TensorsAttributeOff ( )
virtual

If attribute errors are to be included in the metric (i.e., AttributeErrorMetric is on), then the following flags control which attributes are to be included in the error calculation. By default all of these are on.

virtual void vtkQuadricDecimation::SetScalarsWeight ( double  )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual void vtkQuadricDecimation::SetVectorsWeight ( double  )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual void vtkQuadricDecimation::SetNormalsWeight ( double  )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual void vtkQuadricDecimation::SetTCoordsWeight ( double  )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual void vtkQuadricDecimation::SetTensorsWeight ( double  )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetScalarsWeight ( )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetVectorsWeight ( )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetNormalsWeight ( )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetTCoordsWeight ( )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetTensorsWeight ( )
virtual

Set/Get the scaling weight contribution of the attribute. These values are used to weight the contribution of the attributes towards the error metric.

virtual double vtkQuadricDecimation::GetActualReduction ( )
virtual

Get the actual reduction. This value is only valid after the filter has executed.

int vtkQuadricDecimation::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

int vtkQuadricDecimation::CollapseEdge ( vtkIdType  pt0Id,
vtkIdType  pt1Id 
)
protected

Do the dirty work of eliminating the edge; return the number of triangles deleted.

void vtkQuadricDecimation::InitializeQuadrics ( vtkIdType  numPts)
protected

Compute quadric for all vertices

void vtkQuadricDecimation::AddBoundaryConstraints ( void  )
protected

Free boundary edges are weighted

void vtkQuadricDecimation::ComputeQuadric ( vtkIdType  pointId)
protected

Compute quadric for this vertex.

void vtkQuadricDecimation::AddQuadric ( vtkIdType  oldPtId,
vtkIdType  newPtId 
)
protected

Add the quadrics for these 2 points since the edge between them has been collapsed.

double vtkQuadricDecimation::ComputeCost ( vtkIdType  edgeId,
double x 
)
protected

Compute cost for contracting this edge and the point that gives us this cost.

double vtkQuadricDecimation::ComputeCost2 ( vtkIdType  edgeId,
double x 
)
protected

Compute cost for contracting this edge and the point that gives us this cost.

void vtkQuadricDecimation::FindAffectedEdges ( vtkIdType  p1Id,
vtkIdType  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.

vtkIdType vtkQuadricDecimation::GetEdgeCellId ( vtkIdType  p1Id,
vtkIdType  p2Id 
)
protected

Find a cell that uses this edge.

int vtkQuadricDecimation::IsGoodPlacement ( vtkIdType  pt0Id,
vtkIdType  pt1Id,
const double x 
)
protected
int vtkQuadricDecimation::TrianglePlaneCheck ( const double  t0[3],
const double  t1[3],
const double  t2[3],
const double x 
)
protected
void vtkQuadricDecimation::ComputeNumberOfComponents ( void  )
protected
void vtkQuadricDecimation::UpdateEdgeData ( vtkIdType  ptoId,
vtkIdType  pt1Id 
)
protected
void vtkQuadricDecimation::SetPointAttributeArray ( vtkIdType  ptId,
const double x 
)
protected

Helper function to set and get the point and it's attributes as an array

void vtkQuadricDecimation::GetPointAttributeArray ( vtkIdType  ptId,
double x 
)
protected

Helper function to set and get the point and it's attributes as an array

void vtkQuadricDecimation::GetAttributeComponents ( )
protected

Find out how many components there are for each attribute for this poly data.

Member Data Documentation

double vtkQuadricDecimation::TargetReduction
protected

Definition at line 193 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::ActualReduction
protected

Definition at line 194 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::AttributeErrorMetric
protected

Definition at line 195 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::ScalarsAttribute
protected

Definition at line 197 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::VectorsAttribute
protected

Definition at line 198 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::NormalsAttribute
protected

Definition at line 199 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::TCoordsAttribute
protected

Definition at line 200 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::TensorsAttribute
protected

Definition at line 201 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::ScalarsWeight
protected

Definition at line 203 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::VectorsWeight
protected

Definition at line 204 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::NormalsWeight
protected

Definition at line 205 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::TCoordsWeight
protected

Definition at line 206 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::TensorsWeight
protected

Definition at line 207 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::NumberOfEdgeCollapses
protected

Definition at line 209 of file vtkQuadricDecimation.h.

vtkEdgeTable* vtkQuadricDecimation::Edges
protected

Definition at line 210 of file vtkQuadricDecimation.h.

vtkIdList* vtkQuadricDecimation::EndPoint1List
protected

Definition at line 211 of file vtkQuadricDecimation.h.

vtkIdList* vtkQuadricDecimation::EndPoint2List
protected

Definition at line 212 of file vtkQuadricDecimation.h.

vtkPriorityQueue* vtkQuadricDecimation::EdgeCosts
protected

Definition at line 213 of file vtkQuadricDecimation.h.

vtkDoubleArray* vtkQuadricDecimation::TargetPoints
protected

Definition at line 214 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::NumberOfComponents
protected

Definition at line 215 of file vtkQuadricDecimation.h.

vtkPolyData* vtkQuadricDecimation::Mesh
protected

Definition at line 216 of file vtkQuadricDecimation.h.

ErrorQuadric* vtkQuadricDecimation::ErrorQuadrics
protected

Definition at line 225 of file vtkQuadricDecimation.h.

int vtkQuadricDecimation::AttributeComponents[6]
protected

Definition at line 226 of file vtkQuadricDecimation.h.

double vtkQuadricDecimation::AttributeScale[6]
protected

Definition at line 227 of file vtkQuadricDecimation.h.

vtkIdList* vtkQuadricDecimation::CollapseCellIds
protected

Definition at line 230 of file vtkQuadricDecimation.h.

double* vtkQuadricDecimation::TempX
protected

Definition at line 231 of file vtkQuadricDecimation.h.

double* vtkQuadricDecimation::TempQuad
protected

Definition at line 232 of file vtkQuadricDecimation.h.

double* vtkQuadricDecimation::TempB
protected

Definition at line 233 of file vtkQuadricDecimation.h.

double** vtkQuadricDecimation::TempA
protected

Definition at line 234 of file vtkQuadricDecimation.h.

double* vtkQuadricDecimation::TempData
protected

Definition at line 235 of file vtkQuadricDecimation.h.


The documentation for this class was generated from the following file: