HE_Mesh  6.0.1
wblut.hemesh.HEMC_VoronoiCellsPre Class Reference
+ Inheritance diagram for wblut.hemesh.HEMC_VoronoiCellsPre:

Classes

class  CellRunner
 
class  VorResult
 

Public Member Functions

 HEMC_VoronoiCellsPre ()
 
HEMC_VoronoiCellsPre setMesh (final HE_Mesh mesh, final boolean addCenter)
 
HEMC_VoronoiCellsPre setPoints (final WB_Coord[] points)
 
HEMC_VoronoiCellsPre setPoints (final Collection<?extends WB_Coord > points)
 
HEMC_VoronoiCellsPre setPoints (final double[][] points)
 
HEMC_VoronoiCellsPre setPoints (final float[][] points)
 
HEMC_VoronoiCellsPre setOffset (final double o)
 
HEMC_VoronoiCellsPre setOffset (final WB_ScalarParameter o)
 
HEMC_VoronoiCellsPre setContainer (final HE_Mesh container)
 
HEMC_VoronoiCellsPre setBruteForce (final boolean b)
 
- Public Member Functions inherited from wblut.hemesh.HEMC_MultiCreator
 HEMC_MultiCreator ()
 
final HE_MeshCollection create ()
 
int numberOfMeshes ()
 
HE_Mesh apply (final HE_Mesh mesh)
 
HE_Mesh apply (final HE_Selection sel)
 
- Public Member Functions inherited from wblut.hemesh.HE_Machine
abstract HE_Mesh apply (HE_Mesh mesh)
 
abstract HE_Mesh apply (HE_Selection selection)
 
String getName ()
 
void setName (final String name)
 

Public Attributes

HE_Selection[] inner
 
HE_Selection[] outer
 

Private Attributes

List< WB_Coordpoints
 
HE_Mesh container
 
boolean bruteForce
 
WB_ScalarParameter offset
 

Additional Inherited Members

- Static Public Attributes inherited from wblut.hemesh.HE_Machine
static final WB_ProgressTracker tracker = WB_ProgressTracker.instance()
 
- Protected Attributes inherited from wblut.hemesh.HEMC_MultiCreator
int _numberOfMeshes
 

Detailed Description

Creates the Voronoi cells of a collection of points, constrained by a mesh. This creator tries to optimize by first creating the Voronoi cells of the enclosing box. If the cell crosses the container boundary, it is regenrated using the full container.

Limitations:

  • this creator does not generate the necessary information for HEMC_FromVoronoiCells. - intersection tests are only vertex based. Large cells, or thin container geometry can lead to wrongly classifying a cell as non-crossing. All vertices can be outside the mesh but still describe an intersecting volume.
Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HEMC_VoronoiCellsPre.HEMC_VoronoiCellsPre ( )

Member Function Documentation

HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setBruteForce ( final boolean  b)
Parameters
b
Returns
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setContainer ( final HE_Mesh  container)

Set enclosing mesh limiting cells.

Parameters
containerenclosing mesh
Returns
self

References wblut.hemesh.HEMC_VoronoiCellsPre.container.

HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setMesh ( final HE_Mesh  mesh,
final boolean  addCenter 
)

Set mesh, defines both points and container.

Parameters
meshHE_Mesh
addCenteradd mesh center as extra point?
Returns
self

References wblut.hemesh.HE_Mesh.getCenter(), and wblut.hemesh.HE_Mesh.getVertices().

HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setOffset ( final double  o)

Set voronoi cell offset.

Parameters
ooffset
Returns
self
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setOffset ( final WB_ScalarParameter  o)

Set voronoi cell offset.

Parameters
ooffset
Returns
self
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setPoints ( final WB_Coord[]  points)

Set points that define cell centers.

Parameters
pointsarray of vertex positions
Returns
self
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setPoints ( final Collection<?extends WB_Coord points)

Set points that define cell centers.

Parameters
pointscollection of vertex positions
Returns
self
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setPoints ( final double  points[][])

Set points that define cell centers.

Parameters
points2D array of double of vertex positions
Returns
self
HEMC_VoronoiCellsPre wblut.hemesh.HEMC_VoronoiCellsPre.setPoints ( final float  points[][])

Set points that define cell centers.

Parameters
points2D array of float of vertex positions
Returns
self

Member Data Documentation

boolean wblut.hemesh.HEMC_VoronoiCellsPre.bruteForce
private
HE_Mesh wblut.hemesh.HEMC_VoronoiCellsPre.container
private

Container.

HE_Selection [] wblut.hemesh.HEMC_VoronoiCellsPre.inner
WB_ScalarParameter wblut.hemesh.HEMC_VoronoiCellsPre.offset
private

Offset.

HE_Selection [] wblut.hemesh.HEMC_VoronoiCellsPre.outer
List<WB_Coord> wblut.hemesh.HEMC_VoronoiCellsPre.points
private

Points.


The documentation for this class was generated from the following file: