org.jcae.mesh.bora.algo
Class UniformLengthDeflection1d

java.lang.Object
  extended by org.jcae.mesh.bora.algo.UniformLengthDeflection1d
All Implemented Interfaces:
AlgoInterface

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

UniformLengthDeflection1d

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.

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

isAvailable

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

getOrientation

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

compute

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

toString

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