org.jcae.mesh.amibe.algos3d
Class LengthDecimateHalfEdge

java.lang.Object
  extended by org.jcae.mesh.amibe.algos3d.AbstractAlgoHalfEdge
      extended by org.jcae.mesh.amibe.algos3d.LengthDecimateHalfEdge

public class LengthDecimateHalfEdge
extends AbstractAlgoHalfEdge


Field Summary
 
Fields inherited from class org.jcae.mesh.amibe.algos3d.AbstractAlgoHalfEdge
maxEdgeLength, mesh, noSwapAfterProcessing, notInTree, notProcessed, nrFinal, nrTriangles, processed, swapped, tolerance, tree
 
Constructor Summary
LengthDecimateHalfEdge(Mesh m, java.util.Map<java.lang.String,java.lang.String> options)
          Creates a LengthDecimateHalfEdge instance.
 
Method Summary
 boolean canProcessEdge(HalfEdge current)
           
 double cost(HalfEdge e)
           
static void main(java.lang.String[] args)
           
 void postProcessAllHalfEdges()
           
protected  void preProcessAllHalfEdges()
           
 HalfEdge processEdge(HalfEdge current, double costCurrent)
           
 java.util.logging.Logger thisLogger()
           
 
Methods inherited from class org.jcae.mesh.amibe.algos3d.AbstractAlgoHalfEdge
addToTree, appendDumpState, appendRestoreState, compute, countInnerTriangles, dumpState, postComputeTree, preProcessEdge, removeFromTree, restoreState, setProgressBarStatus, uniqueOrientation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthDecimateHalfEdge

public LengthDecimateHalfEdge(Mesh m,
                              java.util.Map<java.lang.String,java.lang.String> options)
Creates a LengthDecimateHalfEdge instance.

Parameters:
m - the Mesh instance to refine.
options - map containing key-value pairs to modify algorithm behaviour. Valid keys are size, placement and maxtriangles.
Method Detail

thisLogger

public java.util.logging.Logger thisLogger()
Specified by:
thisLogger in class AbstractAlgoHalfEdge

preProcessAllHalfEdges

protected void preProcessAllHalfEdges()
Specified by:
preProcessAllHalfEdges in class AbstractAlgoHalfEdge

cost

public double cost(HalfEdge e)
Specified by:
cost in class AbstractAlgoHalfEdge

canProcessEdge

public boolean canProcessEdge(HalfEdge current)
Specified by:
canProcessEdge in class AbstractAlgoHalfEdge

processEdge

public HalfEdge processEdge(HalfEdge current,
                            double costCurrent)
Specified by:
processEdge in class AbstractAlgoHalfEdge

postProcessAllHalfEdges

public void postProcessAllHalfEdges()
Specified by:
postProcessAllHalfEdges in class AbstractAlgoHalfEdge

main

public static void main(java.lang.String[] args)
Parameters:
args - xmlDir, -t tolerance | -n triangle, brepFile, output