VTK
Protected Member Functions | List of all members
vtkLoopSubdivisionFilter Class Reference

generate a subdivision surface using the Loop Scheme More...

#include <vtkLoopSubdivisionFilter.h>

Inheritance diagram for vtkLoopSubdivisionFilter:
[legend]
Collaboration diagram for vtkLoopSubdivisionFilter:
[legend]

Protected Member Functions

 vtkLoopSubdivisionFilter ()
 ~vtkLoopSubdivisionFilter ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)
void GenerateEvenStencil (vtkIdType p1, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
void GenerateOddStencil (vtkIdType p1, vtkIdType p2, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
- Protected Member Functions inherited from vtkApproximatingSubdivisionFilter
 vtkApproximatingSubdivisionFilter ()
 ~vtkApproximatingSubdivisionFilter ()
void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD)
int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds)
vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts, vtkIdList *stencil, double *weights)
- 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 void ExecuteData (vtkDataObject *output)
virtual void Execute ()
- 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)
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 &os)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)
typedef
vtkApproximatingSubdivisionFilter 
Superclass
static vtkLoopSubdivisionFilterNew ()
static int IsTypeOf (const char *type)
static vtkLoopSubdivisionFilterSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)

Additional Inherited Members

- Public Types inherited from vtkApproximatingSubdivisionFilter
typedef vtkPolyDataAlgorithm Superclass
- Public Member Functions inherited from vtkApproximatingSubdivisionFilter
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetNumberOfSubdivisions (int)
virtual int GetNumberOfSubdivisions ()
- Static Public Member Functions inherited from vtkAlgorithm
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
static
vtkInformationInformationVectorKey
INPUT_REQUIRED_FIELDS ()
static
vtkInformationStringVectorKey
INPUT_REQUIRED_DATA_TYPE ()
static
vtkInformationInformationVectorKey
INPUT_ARRAYS_TO_PROCESS ()
static vtkInformationIntegerKeyINPUT_PORT ()
static vtkInformationIntegerKeyINPUT_CONNECTION ()
static vtkInformationIntegerKeyPRESERVES_DATASET ()
static vtkInformationIntegerKeyPRESERVES_GEOMETRY ()
static vtkInformationIntegerKeyPRESERVES_BOUNDS ()
static vtkInformationIntegerKeyPRESERVES_TOPOLOGY ()
static vtkInformationIntegerKeyPRESERVES_ATTRIBUTES ()
static vtkInformationIntegerKeyPRESERVES_RANGES ()
- Public Attributes inherited from vtkAlgorithm
int AbortExecute
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
- Protected Attributes inherited from vtkApproximatingSubdivisionFilter
int NumberOfSubdivisions
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
- Friends inherited from vtkObject

Detailed Description

generate a subdivision surface using the Loop Scheme

vtkLoopSubdivisionFilter is an approximating subdivision scheme that creates four new triangles for each triangle in the mesh. The user can specify the NumberOfSubdivisions. Loop's subdivision scheme is described in: Loop, C., "Smooth Subdivision surfaces based on triangles,", Masters Thesis, University of Utah, August 1987. For a nice summary of the technique see, Hoppe, H., et. al, "Piecewise Smooth Surface Reconstruction,:, Proceedings of Siggraph 94 (Orlando, Florida, July 24-29, 1994). In COmputer Graphics Proceedings, Annual COnference Series, 1994, ACM SIGGRAPH, pp. 295-302.

The filter only operates on triangles. Users should use the vtkTriangleFilter to triangulate meshes that contain polygons or triangle strips.

The filter approximates point data using the same scheme. New triangles create at a subdivision step will have the cell data of their parent cell.

Thanks:
This work was supported by PHS Research Grant No. 1 P41 RR13218-01 from the National Center for Research Resources.
See Also
vtkApproximatingSubdivisionFilter
Tests:
vtkLoopSubdivisionFilter (Tests)

Definition at line 58 of file vtkLoopSubdivisionFilter.h.

Member Typedef Documentation

Construct object with NumberOfSubdivisions set to 1.

Definition at line 64 of file vtkLoopSubdivisionFilter.h.

Constructor & Destructor Documentation

vtkLoopSubdivisionFilter::vtkLoopSubdivisionFilter ( )
inlineprotected

Definition at line 68 of file vtkLoopSubdivisionFilter.h.

vtkLoopSubdivisionFilter::~vtkLoopSubdivisionFilter ( )
inlineprotected

Definition at line 69 of file vtkLoopSubdivisionFilter.h.

Member Function Documentation

static vtkLoopSubdivisionFilter* vtkLoopSubdivisionFilter::New ( )
static

Construct object with NumberOfSubdivisions set to 1.

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkLoopSubdivisionFilter::GetClassName ( )
virtual

Construct object with NumberOfSubdivisions set to 1.

Reimplemented from vtkApproximatingSubdivisionFilter.

static int vtkLoopSubdivisionFilter::IsTypeOf ( const char *  type)
static

Construct object with NumberOfSubdivisions set to 1.

Reimplemented from vtkApproximatingSubdivisionFilter.

virtual int vtkLoopSubdivisionFilter::IsA ( const char *  type)
virtual

Construct object with NumberOfSubdivisions set to 1.

Reimplemented from vtkApproximatingSubdivisionFilter.

static vtkLoopSubdivisionFilter* vtkLoopSubdivisionFilter::SafeDownCast ( vtkObject o)
static

Construct object with NumberOfSubdivisions set to 1.

Reimplemented from vtkApproximatingSubdivisionFilter.

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

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

Reimplemented from vtkApproximatingSubdivisionFilter.

void vtkLoopSubdivisionFilter::GenerateSubdivisionPoints ( vtkPolyData inputDS,
vtkIntArray edgeData,
vtkPoints outputPts,
vtkPointData outputPD 
)
protectedvirtual
void vtkLoopSubdivisionFilter::GenerateEvenStencil ( vtkIdType  p1,
vtkPolyData polys,
vtkIdList stencilIds,
double *  weights 
)
protected
void vtkLoopSubdivisionFilter::GenerateOddStencil ( vtkIdType  p1,
vtkIdType  p2,
vtkPolyData polys,
vtkIdList stencilIds,
double *  weights 
)
protected
virtual int vtkLoopSubdivisionFilter::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

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

Reimplemented from vtkPolyDataAlgorithm.


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