vtk
Class vtkCurvatures

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkPolyDataToPolyDataFilter
                          extended byvtk.vtkCurvatures
All Implemented Interfaces:
java.io.Serializable

public class vtkCurvatures
extends vtkPolyDataToPolyDataFilter
implements java.io.Serializable

vtkCurvatures - compute curvatures (Gauss and mean) of a Polydata object. vtkCurvatures takes a polydata input and computes the curvature of the mesh at each point. Two possible methods of computation are available : Gauss Curvature discrete Gauss curvature (K) computation, K(vertex v) = 2*PI-\sum_{facet neighbs f of v} (angle_f at v) The contribution of every facet is for the moment weighted by Area(facet)/3 The units of Gaussian Curvature are [1/m^2] Mean Curvature H(vertex v) = average over edges neighbs e of H(e) H(edge e) = length(e)*dihedral_angle(e) NB: dihedral_angle is the ORIENTED angle between -PI and PI, this means that the surface is assumed to be orientable the computation creates the orientation The units of Mean Curvature are [1/m] NB. The sign of the Gauss curvature is a geometric ivariant, it should be +ve when the surface looks like a sphere, -ve when it looks like a saddle, however, the sign of the Mean curvature is not, it depends on the convention for normals - This code assumes that normals point outwards (ie from the surface of a sphere outwards). If a given mesh produces curvatures of opposite senses then the flag InvertMeanCurvature can be set and the Curvature reported by the Mean calculation will be inverted. .SECTION Thanks Philip Batchelor philipp.batchelor@kcl.ac.uk for creating and contributing the class and Andrew Maclean a.maclean@acfr.usyd.edu.au for cleanups and fixes JavaBean wrapper for vtkCurvatures object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkCurvatures()
           
protected vtkCurvatures(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getCurvatureType()
          Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"
 int getInvertMeanCurvature()
          Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)
 vtkCurvatures getThisCurvatures()
           
 void invertMeanCurvatureOff()
          Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)
 void invertMeanCurvatureOn()
          Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setCurvatureType(int id0)
          Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"
 void setCurvatureTypeToGaussian()
          Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"
 void setCurvatureTypeToMean()
          Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)
 void setInvertMeanCurvature(int id0)
          Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkPolyDataToPolyDataFilter
getInput, getThisPolyDataToPolyDataFilter, setInput
 
Methods inherited from class vtk.vtkPolyDataSource
getOutput, getOutput, getThisPolyDataSource, setOutput
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkCurvatures

public vtkCurvatures()

vtkCurvatures

protected vtkCurvatures(int dmy)
Method Detail

getThisCurvatures

public vtkCurvatures getThisCurvatures()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkPolyDataToPolyDataFilter

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
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 vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkPolyDataToPolyDataFilter

setCurvatureType

public void setCurvatureType(int id0)
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"


getCurvatureType

public int getCurvatureType()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"


setCurvatureTypeToGaussian

public void setCurvatureTypeToGaussian()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature" VTK_CURVATURE_MEAN : Mean curvature, stored as DataArray "Mean_Curvature"


setCurvatureTypeToMean

public void setCurvatureTypeToMean()
Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)


setInvertMeanCurvature

public void setInvertMeanCurvature(int id0)
Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)


getInvertMeanCurvature

public int getInvertMeanCurvature()
Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)


invertMeanCurvatureOn

public void invertMeanCurvatureOn()
Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)


invertMeanCurvatureOff

public void invertMeanCurvatureOff()
Set/Get the flag which inverts the mean curvature calculation for meshes with inward pointing normals (default false)


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataToPolyDataFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.