public class ScalarGridBase extends InterpolatingGridBase
Modifier and Type | Field and Description |
---|---|
static double |
OUTSIDE_GRID
Special value indicating that a query point is outside the grid.
|
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
ScalarGridBase() |
Modifier and Type | Method and Description |
---|---|
PolygonalMesh |
createDistanceSurface()
Creates a triangular mesh approximating the surface on which the linearly
interpolated distance function equals 0.
|
PolygonalMesh |
createDistanceSurface(double val)
Creates a triangular mesh approximating the surface on which the linearly
interpolated distance function equals
val . |
PolygonalMesh |
createDistanceSurface(double val,
int res)
Creates a triangular mesh approximating the surface on which the linearly
interpolated distance function equals
val . |
boolean |
epsilonEquals(ScalarGridBase grid,
double tol)
Returns
true if this grid equals another within a prescribed
tolerance. |
java.lang.Class<?> |
getParameterType()
For subclasses with parameterized typing, returns the type parameter.
|
void |
setVertexValue(int xi,
int yj,
int zk,
double value)
Sets the value for the vertex indexed by its x, y, z indices.
|
clearColors, createRenderProps, epsilonEquals, getCellVertex, getCellWidths, getCenter, getCenterAndOrientation, getClosestVertex, getDebug, getDefaultVertexColor, getGridToLocalTransformer, getLocalToWorld, getLocalToWorldTransformer, getLocalVertexCoords, getLocalVertexCoords, getOrientation, getRadius, getRenderHints, getRenderProps, getRenderRanges, getRenderVector, getRenderVectorScale, getResolution, getSelection, getVertexColor, getWidths, getWidths, getWorldCenter, getWorldOrientation, getWorldVertexCoords, getWorldVertexCoords, hasLocalToWorld, isSelectable, isVertexRenderingEnabled, isWritable, numSelectionQueriesNeeded, numVertices, parseRenderRanges, prerender, prerender, render, render, scaleDistance, scan, set, setCenter, setCenterAndOrientation, setDebug, setDefaultVertexColor, setLocalToWorld, setOrientation, setRenderProps, setRenderRanges, setResolution, setVertexColor, setVertexRenderingEnabled, updateBounds, vertexToXyzIndices, write, xyzIndicesToVertex
public static double OUTSIDE_GRID
public java.lang.Class<?> getParameterType()
null
.getParameterType
in class InterpolatingGridBase
null
public void setVertexValue(int xi, int yj, int zk, double value)
xi
- x vertex indexyj
- y vertex indexzk
- z vertex indexvalue
- new value for the vertexpublic PolygonalMesh createDistanceSurface()
public PolygonalMesh createDistanceSurface(double val)
val
.val
- iso surface valuepublic PolygonalMesh createDistanceSurface(double val, int res)
val
.val
- iso surface valuepublic boolean epsilonEquals(ScalarGridBase grid, double tol)
true
if this grid equals another within a prescribed
tolerance. The grids are equal if the resolution, widths, center,
orientation and values are equal. Specifying tol = 0
requires
exact equality.grid
- grid to compare againsttol
- floating point tolerance (absolute)