public class TriangleCell extends UnstructuredCell
coords, data, dimensionality, numVertices| Modifier | Constructor and Description | 
|---|---|
protected  | 
TriangleCell()  | 
  | 
TriangleCell(DataSource vIndicesDS,
            DataSource coordsDS,
            RecordSpec vIndicesRS,
            RecordSpec coordsRS,
            RecordSpec dataRS,
            int dimensionality,
            IndexSpaceID cellID)  | 
  | 
TriangleCell(float[] coordFloats,
            float[] dataFloats,
            int numDataAttributes,
            int dimensionality,
            int triangleIndex)  | 
  | 
TriangleCell(int[] vIndices,
            float[] coordFloats,
            float[] dataFloats,
            int numDataAttributes,
            int dimensionality,
            int triangleIndex)  | 
  | 
TriangleCell(int numAttributes,
            int dimensionality)  | 
  | 
TriangleCell(Point[] coords,
            Datum[] data)  | 
  | 
TriangleCell(Point p1,
            Point p2,
            Point p3)
For debugging. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
assign(int[] vIndices,
      float[] coordFloats,
      float[] dataFloats,
      int numDataAttributes,
      int dimensionality,
      int triangleIndex)  | 
GBounds | 
boundingBox()  | 
static GBounds | 
boundingBox(int[] vIndices,
           float[] coords,
           int dimensionality,
           int triangleIndex)  | 
boolean | 
containedBy(GBounds bounds)
Returns true if this TriangleCell is contained by the GBounds argument, false otherwise. 
 | 
boolean | 
inside(Point p)
Returns true if the Point p is inside the TriangleCell, false otherwise. 
 | 
static boolean | 
inside(Point p,
      float[] coords,
      int startIndex)
Returns true if the Point p is inside the TriangleCell, false otherwise. 
 | 
static boolean | 
inside(Point p,
      int[] vIndices,
      float[] coords,
      int triangleIndex)
Returns true if the Point p is inside the TriangleCell, false otherwise. 
 | 
boolean | 
intersects(Cell c)  | 
boolean | 
intersects(GBounds b)  | 
static boolean | 
intersects(GBounds b,
          int[] vIndices,
          float[] coords,
          int triangleIndex)  | 
static void | 
main(java.lang.String[] argv)  | 
java.lang.String | 
toString()
Return a String representing the object. 
 | 
java.lang.String | 
toString(java.lang.String indent)
Return a String representing the object indented by the argument string. 
 | 
assigndatum, dim, getData, getNumVertices, getVertexCoords, setData, setDimensionality, setVertexCoordsprotected TriangleCell()
public TriangleCell(int numAttributes,
            int dimensionality)
public TriangleCell(float[] coordFloats,
            float[] dataFloats,
            int numDataAttributes,
            int dimensionality,
            int triangleIndex)
public TriangleCell(int[] vIndices,
            float[] coordFloats,
            float[] dataFloats,
            int numDataAttributes,
            int dimensionality,
            int triangleIndex)
public TriangleCell(DataSource vIndicesDS, DataSource coordsDS, RecordSpec vIndicesRS, RecordSpec coordsRS, RecordSpec dataRS, int dimensionality, IndexSpaceID cellID)
public void assign(int[] vIndices,
          float[] coordFloats,
          float[] dataFloats,
          int numDataAttributes,
          int dimensionality,
          int triangleIndex)
public boolean intersects(Cell c)
intersects in class Cellpublic boolean inside(Point p)
public static boolean inside(Point p, float[] coords, int startIndex)
public static boolean inside(Point p, int[] vIndices, float[] coords, int triangleIndex)
public GBounds boundingBox()
public static GBounds boundingBox(int[] vIndices, float[] coords, int dimensionality, int triangleIndex)
public boolean containedBy(GBounds bounds)
public boolean intersects(GBounds b)
public static boolean intersects(GBounds b, int[] vIndices, float[] coords, int triangleIndex)
public java.lang.String toString()
public java.lang.String toString(java.lang.String indent)
public static void main(java.lang.String[] argv)