ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkGreedyTerrainDecimation Class Reference

vtkGreedyTerrainDecimation - reduce height field (represented as image) to reduced TIN More...

Inheritance diagram for Kitware.VTK.vtkGreedyTerrainDecimation:
[legend]
Collaboration diagram for Kitware.VTK.vtkGreedyTerrainDecimation:
[legend]

List of all members.

Public Member Functions

 vtkGreedyTerrainDecimation (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkGreedyTerrainDecimation ()
 Instantiate the class.
virtual void BoundaryVertexDeletionOff ()
 Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.
virtual void BoundaryVertexDeletionOn ()
 Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.
virtual void ComputeNormalsOff ()
 Compute normals based on the input image. Off by default.
virtual void ComputeNormalsOn ()
 Compute normals based on the input image. Off by default.
virtual double GetAbsoluteError ()
 Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.
virtual double GetAbsoluteErrorMaxValue ()
 Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.
virtual double GetAbsoluteErrorMinValue ()
 Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.
virtual int GetBoundaryVertexDeletion ()
 Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.
virtual int GetComputeNormals ()
 Compute normals based on the input image. Off by default.
virtual int GetErrorMeasure ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
virtual int GetErrorMeasureMaxValue ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
virtual int GetErrorMeasureMinValue ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
virtual int GetNumberOfTriangles ()
 Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.
virtual int GetNumberOfTrianglesMaxValue ()
 Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.
virtual int GetNumberOfTrianglesMinValue ()
 Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.
virtual double GetReduction ()
 Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.
virtual double GetReductionMaxValue ()
 Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.
virtual double GetReductionMinValue ()
 Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.
virtual double GetRelativeError ()
 Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.
virtual double GetRelativeErrorMaxValue ()
 Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.
virtual double GetRelativeErrorMinValue ()
 Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.
override int IsA (string type)
 Undocumented Block.
new vtkGreedyTerrainDecimation NewInstance ()
 Undocumented Block.
virtual void SetAbsoluteError (double _arg)
 Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.
virtual void SetBoundaryVertexDeletion (int _arg)
 Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.
virtual void SetComputeNormals (int _arg)
 Compute normals based on the input image. Off by default.
virtual void SetErrorMeasure (int _arg)
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
void SetErrorMeasureToAbsoluteError ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
void SetErrorMeasureToNumberOfTriangles ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
void SetErrorMeasureToRelativeError ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
void SetErrorMeasureToSpecifiedReduction ()
 Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).
virtual void SetNumberOfTriangles (int _arg)
 Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.
virtual void SetReduction (double _arg)
 Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.
virtual void SetRelativeError (double _arg)
 Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.

Static Public Member Functions

static new
vtkGreedyTerrainDecimation 
New ()
 Instantiate the class.
static new int IsTypeOf (string type)
 Undocumented Block.
static new
vtkGreedyTerrainDecimation 
SafeDownCast (vtkObjectBase o)
 Undocumented Block.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkGreedyTerrainDecimation"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "26vtkGreedyTerrainDecimation"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Private Member Functions

static internal IntPtr vtkGreedyTerrainDecimation_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkGreedyTerrainDecimation_BoundaryVertexDeletionOff_01 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_BoundaryVertexDeletionOn_02 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_ComputeNormalsOff_03 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_ComputeNormalsOn_04 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetAbsoluteError_05 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetAbsoluteErrorMaxValue_06 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetAbsoluteErrorMinValue_07 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetBoundaryVertexDeletion_08 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetComputeNormals_09 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetErrorMeasure_10 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetErrorMeasureMaxValue_11 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetErrorMeasureMinValue_12 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetNumberOfTriangles_13 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetNumberOfTrianglesMaxValue_14 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_GetNumberOfTrianglesMinValue_15 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetReduction_16 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetReductionMaxValue_17 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetReductionMinValue_18 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetRelativeError_19 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetRelativeErrorMaxValue_20 (HandleRef pThis)
static internal double vtkGreedyTerrainDecimation_GetRelativeErrorMinValue_21 (HandleRef pThis)
static internal int vtkGreedyTerrainDecimation_IsA_22 (HandleRef pThis, string type)
static internal int vtkGreedyTerrainDecimation_IsTypeOf_23 (string type)
static internal IntPtr vtkGreedyTerrainDecimation_NewInstance_25 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkGreedyTerrainDecimation_SafeDownCast_26 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkGreedyTerrainDecimation_SetAbsoluteError_27 (HandleRef pThis, double _arg)
static internal void vtkGreedyTerrainDecimation_SetBoundaryVertexDeletion_28 (HandleRef pThis, int _arg)
static internal void vtkGreedyTerrainDecimation_SetComputeNormals_29 (HandleRef pThis, int _arg)
static internal void vtkGreedyTerrainDecimation_SetErrorMeasure_30 (HandleRef pThis, int _arg)
static internal void vtkGreedyTerrainDecimation_SetErrorMeasureToAbsoluteError_31 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_SetErrorMeasureToNumberOfTriangles_32 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_SetErrorMeasureToRelativeError_33 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_SetErrorMeasureToSpecifiedReduction_34 (HandleRef pThis)
static internal void vtkGreedyTerrainDecimation_SetNumberOfTriangles_35 (HandleRef pThis, int _arg)
static internal void vtkGreedyTerrainDecimation_SetReduction_36 (HandleRef pThis, double _arg)
static internal void vtkGreedyTerrainDecimation_SetRelativeError_37 (HandleRef pThis, double _arg)

Static Private Member Functions

static vtkGreedyTerrainDecimation ()
 Automatically generated type registration mechanics.

Detailed Description

vtkGreedyTerrainDecimation - reduce height field (represented as image) to reduced TIN

Description vtkGreedyTerrainDecimation approximates a height field with a triangle mesh (triangulated irregular network - TIN) using a greedy insertion algorithm similar to that described by Garland and Heckbert in their paper "Fast Polygonal Approximations of Terrain and Height Fields" (Technical Report CMU-CS-95-181). The input to the filter is a height field (represented by a image whose scalar values are height) and the output of the filter is polygonal data consisting of triangles. The number of triangles in the output is reduced in number as compared to a naive tessellation of the input height field. This filter copies point data from the input to the output for those points present in the output.

An brief description of the algorithm is as follows. The algorithm uses a top-down decimation approach that initially represents the height field with two triangles (whose vertices are at the four corners of the image). These two triangles form a Delaunay triangulation. In an iterative fashion, the point in the image with the greatest error (as compared to the original height field) is injected into the triangulation. (Note that the single point with the greatest error per triangle is identified and placed into a priority queue. As the triangulation is modified, the errors from the deleted triangles are removed from the queue, error values from the new triangles are added.) The point whose error is at the top of the queue is added to the triangulaion modifying it using the standard incremental Delaunay point insertion (see vtkDelaunay2D) algorithm. Points are repeatedly inserted until the appropriate (user-specified) error criterion is met.

To use this filter, set the input and specify the error measure to be used. The error measure options are 1) the absolute number of triangles to be produced; 2) a fractional reduction of the mesh (numTris/maxTris) where maxTris is the largest possible number of triangles 2*(dims[0]-1)*(dims[1]-1); 3) an absolute measure on error (maximum difference in height field to reduced TIN); and 4) relative error (the absolute error is normalized by the diagonal of the bounding box of the height field).

Caveats This algorithm requires the entire input dataset to be in memory, hence it may not work for extremely large images. Invoking BoundaryVertexDeletionOff will allow you to stitch together images with matching boundaries.

The input height image is assumed to be positioned in the x-y plane so the scalar value is the z-coordinate, height value.

vtkDecimatePro vtkQuadricDecimation vtkQuadricClustering


Constructor & Destructor Documentation

Automatically generated type registration mechanics.

Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Instantiate the class.


Member Function Documentation

Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.

Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.

Compute normals based on the input image. Off by default.

Compute normals based on the input image. Off by default.

override void Kitware.VTK.vtkGreedyTerrainDecimation.Dispose ( bool  disposing) [protected]

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.

Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.

Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.

Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.

Compute normals based on the input image. Off by default.

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.

Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.

Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.

Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.

Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.

Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.

Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.

Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.

Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.

override int Kitware.VTK.vtkGreedyTerrainDecimation.IsA ( string  type) [virtual]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

static new int Kitware.VTK.vtkGreedyTerrainDecimation.IsTypeOf ( string  type) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Instantiate the class.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Here is the call graph for this function:

virtual void Kitware.VTK.vtkGreedyTerrainDecimation.SetAbsoluteError ( double  _arg) [virtual]

Specify the absolute error of the mesh; that is, the error in height between the decimated mesh and the original height field. You need to set this value only when the error measure is set to AbsoluteError.

Turn on/off the deletion of vertices on the boundary of a mesh. This may limit the maximum reduction that may be achieved.

virtual void Kitware.VTK.vtkGreedyTerrainDecimation.SetComputeNormals ( int  _arg) [virtual]

Compute normals based on the input image. Off by default.

virtual void Kitware.VTK.vtkGreedyTerrainDecimation.SetErrorMeasure ( int  _arg) [virtual]

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify how to terminate the algorithm: either as an absolute number of triangles, a relative number of triangles (normalized by the full resolution mesh), an absolute error (in the height field), or relative error (normalized by the length of the diagonal of the image).

Specify the number of triangles to produce on output. (It is a good idea to make sure this is less than a tessellated mesh at full resolution.) You need to set this value only when the error measure is set to NumberOfTriangles.

virtual void Kitware.VTK.vtkGreedyTerrainDecimation.SetReduction ( double  _arg) [virtual]

Specify the reduction of the mesh (represented as a fraction). Note that a value of 0.10 means a 10% reduction. You need to set this value only when the error measure is set to SpecifiedReduction.

virtual void Kitware.VTK.vtkGreedyTerrainDecimation.SetRelativeError ( double  _arg) [virtual]

Specify the relative error of the mesh; that is, the error in height between the decimated mesh and the original height field normalized by the diagonal of the image. You need to set this value only when the error measure is set to RelativeError.

static internal double Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_GetReduction_16 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_IsA_22 ( HandleRef  pThis,
string  type 
) [private]
static internal IntPtr Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_NewInstance_25 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SafeDownCast_26 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetAbsoluteError_27 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetBoundaryVertexDeletion_28 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetComputeNormals_29 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetErrorMeasure_30 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetNumberOfTriangles_35 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetReduction_36 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkGreedyTerrainDecimation.vtkGreedyTerrainDecimation_SetRelativeError_37 ( HandleRef  pThis,
double  _arg 
) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkGreedyTerrainDecimation.MRClassNameKey = "26vtkGreedyTerrainDecimation" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

new const string Kitware.VTK.vtkGreedyTerrainDecimation.MRFullTypeName = "Kitware.VTK.vtkGreedyTerrainDecimation"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.


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