HE_Mesh  5.0.0
wblut.geom.WB_IsoSurfaceVOL2D Class Reference

Public Member Functions

 WB_IsoSurfaceVOL2D ()
 
WB_IsoSurfaceVOL2D setResolution (final int resx, final int resy)
 
WB_IsoSurfaceVOL2D setSize (final double dx, final double dy)
 
WB_IsoSurfaceVOL2D setZFactor (final double zf)
 
WB_IsoSurfaceVOL2D setValues (final double[][] values)
 
WB_IsoSurfaceVOL2D setValues (final float[][] values)
 
WB_IsoSurfaceVOL2D setIsolevel (final double isolevelmin, final double isolevelmax)
 
WB_IsoSurfaceVOL2D setCenter (final WB_Coord c)
 
List< WB_Pointcreate ()
 

Private Member Functions

int index (final int i, final int j)
 
double value (final int i, final int j)
 
WB_Point vertex (final int i, final int j, final WB_Point offset)
 
WB_Point xedge (final int i, final int j, final WB_Point offset, final double isolevel)
 
WB_Point yedge (final int i, final int j, final WB_Point offset, final double isolevel)
 
WB_Point interp (final double isolevel, final WB_Point p1, final WB_Point p2, final double valp1, final double valp2)
 
int classifyCell (final int i, final int j)
 
void polygonise ()
 
void getPolygons (final int i, final int j, final int cubeindex, final WB_Point offset)
 

Private Attributes

double[][] values
 
int resx
 
double cx
 
double dx
 
double isolevelmin
 
TIntObjectMap< WB_Pointxedges
 
TIntObjectMap< WB_Pointyedges
 
TIntObjectMap< WB_Pointvertices
 

Constructor & Destructor Documentation

wblut.geom.WB_IsoSurfaceVOL2D.WB_IsoSurfaceVOL2D ( )

Member Function Documentation

int wblut.geom.WB_IsoSurfaceVOL2D.classifyCell ( final int  i,
final int  j 
)
private

Classify cell.

Parameters
ithe i
jthe j
Returns
the int
List<WB_Point> wblut.geom.WB_IsoSurfaceVOL2D.create ( )
void wblut.geom.WB_IsoSurfaceVOL2D.getPolygons ( final int  i,
final int  j,
final int  cubeindex,
final WB_Point  offset 
)
private

Gets the polygons.

Parameters
ithe i
jthe j
cubeindexthe cubeindex
offset
Returns
the polygons
int wblut.geom.WB_IsoSurfaceVOL2D.index ( final int  i,
final int  j 
)
private
Parameters
i
j
Returns
WB_Point wblut.geom.WB_IsoSurfaceVOL2D.interp ( final double  isolevel,
final WB_Point  p1,
final WB_Point  p2,
final double  valp1,
final double  valp2 
)
private

Interp.

Parameters
isolevelthe isolevel
p1the p1
p2the p2
valp1the valp1
valp2the valp2
Returns
the h e_ vertex
void wblut.geom.WB_IsoSurfaceVOL2D.polygonise ( )
private

Polygonise.

WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setCenter ( final WB_Coord  c)
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setIsolevel ( final double  isolevelmin,
final double  isolevelmax 
)
Parameters
isolevelmin
isolevelmax
Returns
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setResolution ( final int  resx,
final int  resy 
)

Number of cells.

Parameters
resxthe resx
resythe resy
Returns
self
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setSize ( final double  dx,
final double  dy 
)

Size of cell.

Parameters
dx
dy
Returns
self
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setValues ( final double  values[][])

Values at grid points.

Parameters
valuesdouble[resx+1][resy+1]
Returns
self
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setValues ( final float  values[][])

Sets the values.

Parameters
valuesfloat[resx+1][resy+1][resz+1]
Returns
self
WB_IsoSurfaceVOL2D wblut.geom.WB_IsoSurfaceVOL2D.setZFactor ( final double  zf)
double wblut.geom.WB_IsoSurfaceVOL2D.value ( final int  i,
final int  j 
)
private

Value.

Parameters
ithe i
jthe j
Returns
the double
WB_Point wblut.geom.WB_IsoSurfaceVOL2D.vertex ( final int  i,
final int  j,
final WB_Point  offset 
)
private
Parameters
i
j
offset
Returns
WB_Point wblut.geom.WB_IsoSurfaceVOL2D.xedge ( final int  i,
final int  j,
final WB_Point  offset,
final double  isolevel 
)
private

Xedge.

Parameters
ii: -1 .. resx+1
jj: -1 .. resy+1
offset
isolevel
Returns
edge vertex
WB_Point wblut.geom.WB_IsoSurfaceVOL2D.yedge ( final int  i,
final int  j,
final WB_Point  offset,
final double  isolevel 
)
private

Yedge.

Parameters
ii: -1 .. resx+1
jj: -1 .. resy+1
offset
isolevel
Returns
edge vertex

Member Data Documentation

double wblut.geom.WB_IsoSurfaceVOL2D.cx
private
double wblut.geom.WB_IsoSurfaceVOL2D.dx
private
double wblut.geom.WB_IsoSurfaceVOL2D.isolevelmin
private
int wblut.geom.WB_IsoSurfaceVOL2D.resx
private
double [][] wblut.geom.WB_IsoSurfaceVOL2D.values
private
TIntObjectMap<WB_Point> wblut.geom.WB_IsoSurfaceVOL2D.vertices
private
TIntObjectMap<WB_Point> wblut.geom.WB_IsoSurfaceVOL2D.xedges
private
TIntObjectMap<WB_Point> wblut.geom.WB_IsoSurfaceVOL2D.yedges
private

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