org.jcae.mesh.oemm
Class Aggregate

java.lang.Object
  extended by org.jcae.mesh.oemm.Aggregate

public class Aggregate
extends java.lang.Object

Merge adjacent octree nodes. Children are merged if these two conditions are met: the total number of triangles in merged nodes does not exceed a given threshold, and levels of adjacent nodes do not differ more than MAX_DELTA_LEVEL. This process is an optimization to have fewer octree nodes.


Constructor Summary
Aggregate()
           
 
Method Summary
static int compute(OEMM oemm, int max)
          Merge nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Aggregate

public Aggregate()
Method Detail

compute

public static final int compute(OEMM oemm,
                                int max)
Merge nodes.

Parameters:
oemm - OEMM instance
max - maximal number of triangles in merged cells
Returns:
total number of merged nodes