org.jcae.mesh.amibe.validation
Class DihedralAngle

java.lang.Object
  extended by org.jcae.mesh.amibe.validation.QualityProcedure
      extended by org.jcae.mesh.amibe.validation.DihedralAngle

public class DihedralAngle
extends QualityProcedure

Compute angles between adjacent triangles. This class implements the QualityProcedure.quality(Object) method to compute angles between adjacent triangles. The inner products between the normal to the triangle and the normal to adjacent triangles are computed, and the quality of the triangle is set to the minimal value. This is very useful to detect inverted triangles in 3D on smooth surfaces.


Field Summary
 
Fields inherited from class org.jcae.mesh.amibe.validation.QualityProcedure
data, EDGE, FACE, NODE, type, usageStr
 
Constructor Summary
DihedralAngle()
           
 
Method Summary
 float quality(java.lang.Object o)
          Return the quality factor for a given object.
protected  void setValidationFeatures()
           
 
Methods inherited from class org.jcae.mesh.amibe.validation.QualityProcedure
bindResult, finish, getListSubClasses, getMeshTraitsBuilder, getScaleFactor, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DihedralAngle

public DihedralAngle()
Method Detail

setValidationFeatures

protected void setValidationFeatures()
Specified by:
setValidationFeatures in class QualityProcedure

quality

public float quality(java.lang.Object o)
Description copied from class: QualityProcedure
Return the quality factor for a given object.

Specified by:
quality in class QualityProcedure
Parameters:
o - entity at which quality is computed Returns quality factor.