HE_Mesh2014  2.0.11
Public Member Functions | Private Member Functions | Private Attributes | List of all members
wblut.hemesh.HEC_VoronoiSphere Class Reference
+ Inheritance diagram for wblut.hemesh.HEC_VoronoiSphere:

Public Member Functions

 HEC_VoronoiSphere ()
 
HEC_VoronoiSphere setPoints (final WB_Point[] points)
 
HEC_VoronoiSphere setPoints (final double[][] points)
 
HEC_VoronoiSphere setPoints (final float[][] points)
 
HEC_VoronoiSphere setN (final int N)
 
HEC_VoronoiSphere setCellIndex (final int i)
 
HEC_VoronoiSphere setLevel (final int l)
 
HEC_VoronoiSphere setNumTracers (final int n)
 
HEC_VoronoiSphere setTraceStep (final double d)
 
HEC_VoronoiSphere setCutoff (final double c)
 
HEC_VoronoiSphere setApprox (final boolean a)
 
HEC_VoronoiSphere setSeed (final long seed)
 
HE_Mesh createBase ()
 
- Public Member Functions inherited from wblut.hemesh.HEC_Creator
 HEC_Creator ()
 
HEC_Creator setCenter (final double x, final double y, final double z)
 
HEC_Creator setScale (final double s)
 
HEC_Creator setCenter (final WB_Coord c)
 
HEC_Creator setZAngle (final double a)
 
HEC_Creator setZAxis (final double x, final double y, final double z)
 
HEC_Creator setZAxis (final double p0x, final double p0y, final double p0z, final double p1x, final double p1y, final double p1z)
 
HEC_Creator setZAxis (final WB_Coord p)
 
HEC_Creator setZAxis (final WB_Coord p0, final WB_Coord p1)
 
HEC_Creator setToModelview (final PApplet home)
 
HEC_Creator setToWorldview ()
 
HEC_Creator setManifoldCheck (final boolean b)
 
HEC_Creator setOverride (final boolean b)
 
final HE_Mesh create ()
 
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)
 

Private Member Functions

void grow (final WB_Point[] tracers, final int index)
 

Private Attributes

WB_Point[] points
 
int numberOfPoints
 
int cellIndex
 
int level
 
double cutoff
 
WB_Vector[] dir
 
boolean approx
 
int numTracers
 
double traceStep
 
final WB_RandomOnSphere randomGen
 

Additional Inherited Members

- Public Attributes inherited from wblut.hemesh.HEC_Creator
PApplet home
 
- Static Public Attributes inherited from wblut.hemesh.HE_Machine
static final WB_ProgressTracker tracker = WB_ProgressTracker.instance()
 
- Protected Member Functions inherited from wblut.hemesh.HEC_Creator
abstract HE_Mesh createBase ()
 
- Protected Attributes inherited from wblut.hemesh.HEC_Creator
WB_Point center
 
double zangle
 
WB_Vector zaxis
 
boolean override
 
boolean toModelview
 
WB_Vector Z
 
boolean manifoldCheck
 
double scale
 

Detailed Description

Creates the Voronoi cell of one point in a collection of points, constrained by a maximum radius.

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HEC_VoronoiSphere.HEC_VoronoiSphere ( )

Instantiates a new HEC_VoronoiSphere.

Member Function Documentation

HE_Mesh wblut.hemesh.HEC_VoronoiSphere.createBase ( )
void wblut.hemesh.HEC_VoronoiSphere.grow ( final WB_Point[]  tracers,
final int  index 
)
private

Grow the tracers.

Parameters
tracersthe tracers
indexthe index
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setApprox ( final boolean  a)

Set approximate mode.

Parameters
atrue, false
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setCellIndex ( final int  i)

Set index of cell to create.

Parameters
iindex
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setCutoff ( final double  c)

Set maximum radius of cell.

Parameters
ccutoff radius
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setLevel ( final int  l)

Set level of geodesic sphere in each cell.

Parameters
lrecursive level
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setN ( final int  N)

Set number of points.

Parameters
Nnumber of points
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setNumTracers ( final int  n)

Set number of tracer points to use in approximate model.

Parameters
nnumber of tracer points
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setPoints ( final WB_Point[]  points)

Set points that define cell centers.

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

Set points that define cell centers.

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

Set points that define cell centers.

Parameters
points2D array of float of vertex positions
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setSeed ( final long  seed)

Set seed of random generator.

Parameters
seedseed
Returns
self
HEC_VoronoiSphere wblut.hemesh.HEC_VoronoiSphere.setTraceStep ( final double  d)

Set initial trace step size.

Parameters
dtrace step
Returns
self

Member Data Documentation

boolean wblut.hemesh.HEC_VoronoiSphere.approx
private

Approximate mode?.

int wblut.hemesh.HEC_VoronoiSphere.cellIndex
private

Cell index.

double wblut.hemesh.HEC_VoronoiSphere.cutoff
private

Maximum radius.

WB_Vector [] wblut.hemesh.HEC_VoronoiSphere.dir
private

Point directions.

int wblut.hemesh.HEC_VoronoiSphere.level
private

Level of geodesic sphere in exact mode.

int wblut.hemesh.HEC_VoronoiSphere.numberOfPoints
private

Number of points.

int wblut.hemesh.HEC_VoronoiSphere.numTracers
private

Number of tracer points to use in approximate mode?.

WB_Point [] wblut.hemesh.HEC_VoronoiSphere.points
private

points.

final WB_RandomOnSphere wblut.hemesh.HEC_VoronoiSphere.randomGen
private

The random gen.

double wblut.hemesh.HEC_VoronoiSphere.traceStep
private

Starting trace step in approximate mode?.


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