Class UniformLengthDeflection1d

  extended by org.jcae.mesh.bora.algo.UniformLengthDeflection1d
All Implemented Interfaces:

public class UniformLengthDeflection1d
extends java.lang.Object
implements AlgoInterface

Computes a new discretization so that all edges have a uniform length. On each edge, compute the number of subdivisions so that all segments have the same length, which must be less than the given criterion. The previous discretization nodes and edges are deleted, and replaced by newer ones.

Constructor Summary
UniformLengthDeflection1d(double len, double defl, boolean rel)
          Discretizes a topological edge so that all edges have a uniform length.
Method Summary
 boolean compute(BDiscretization d)
 int getOrientation(int o)
 boolean isAvailable()
 java.lang.String toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public UniformLengthDeflection1d(double len,
                                 double defl,
                                 boolean rel)
Discretizes a topological edge so that all edges have a uniform length. For a given topological edge, its previous discretization is first removed. Then the number of segments is computed such that segment length is inferior to the desired length. The geometrical edge is then divided into segments of uniform lengths.

len - target length
defl - target deflection
rel - true if deflection is relative, false otherwise.
Method Detail


public boolean isAvailable()
Specified by:
isAvailable in interface AlgoInterface


public int getOrientation(int o)
Specified by:
getOrientation in interface AlgoInterface


public boolean compute(BDiscretization d)
Specified by:
compute in interface AlgoInterface
true if this edge was successfully discretized, false otherwise.


public java.lang.String toString()
toString in class java.lang.Object