com.jzy3d.surfedit.surface.model
Class CellIndex

java.lang.Object
  extended by com.jzy3d.surfedit.surface.model.CellIndex

public class CellIndex
extends Object


Field Summary
protected  org.jzy3d.maths.PolygonArray[][] cells
           
protected  org.jzy3d.maths.Grid grid
           
protected  org.jzy3d.maths.Coord3d[][] nodes
           
protected  Map<org.jzy3d.maths.Pair<Integer,Integer>,List<org.jzy3d.maths.PolygonArray>> quads
           
 
Constructor Summary
CellIndex(org.jzy3d.maths.Grid grid)
           
 
Method Summary
protected  org.jzy3d.maths.PolygonArray buildBottomBorderCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildBottomLeft(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildBottomLeftCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildBottomRight(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildBottomRightCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  void buildCells(float[] xx, float[] yy, float[][] zz)
          BUILD CELLS FOR EACH INPUT (i,j)
protected  org.jzy3d.maths.PolygonArray buildLeftBorderCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildMiddleCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  void buildNodes(float[] xx, float[] yy, float[][] zz)
          BUILD LIST OF NODES
protected  void buildQuads(float[] xx, float[] yy, float[][] zz)
          Build up to 4 neighbour quads around each point, made of interpolated points
protected  org.jzy3d.maths.PolygonArray buildRightBorderCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildTopBorderCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildTopLeft(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildTopLeftCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildTopRight(float[] xx, float[] yy, float[][] zz, int i, int j)
           
protected  org.jzy3d.maths.PolygonArray buildTopRightCell(float[] xx, float[] yy, float[][] zz, int i, int j)
           
 org.jzy3d.maths.PolygonArray getCell(int i, int j)
           
 org.jzy3d.maths.PolygonArray[][] getCells()
           
 List<org.jzy3d.maths.PolygonArray> getNeighbours(int i, int j)
           
 org.jzy3d.maths.Coord3d[][] getNodes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grid

protected org.jzy3d.maths.Grid grid

quads

protected Map<org.jzy3d.maths.Pair<Integer,Integer>,List<org.jzy3d.maths.PolygonArray>> quads

cells

protected org.jzy3d.maths.PolygonArray[][] cells

nodes

protected org.jzy3d.maths.Coord3d[][] nodes
Constructor Detail

CellIndex

public CellIndex(org.jzy3d.maths.Grid grid)
Method Detail

getNeighbours

public List<org.jzy3d.maths.PolygonArray> getNeighbours(int i,
                                                        int j)

getCell

public org.jzy3d.maths.PolygonArray getCell(int i,
                                            int j)

getCells

public org.jzy3d.maths.PolygonArray[][] getCells()

getNodes

public org.jzy3d.maths.Coord3d[][] getNodes()

buildNodes

protected void buildNodes(float[] xx,
                          float[] yy,
                          float[][] zz)
BUILD LIST OF NODES


buildCells

protected void buildCells(float[] xx,
                          float[] yy,
                          float[][] zz)
BUILD CELLS FOR EACH INPUT (i,j)


buildMiddleCell

protected org.jzy3d.maths.PolygonArray buildMiddleCell(float[] xx,
                                                       float[] yy,
                                                       float[][] zz,
                                                       int i,
                                                       int j)

buildBottomLeftCell

protected org.jzy3d.maths.PolygonArray buildBottomLeftCell(float[] xx,
                                                           float[] yy,
                                                           float[][] zz,
                                                           int i,
                                                           int j)

buildBottomRightCell

protected org.jzy3d.maths.PolygonArray buildBottomRightCell(float[] xx,
                                                            float[] yy,
                                                            float[][] zz,
                                                            int i,
                                                            int j)

buildTopRightCell

protected org.jzy3d.maths.PolygonArray buildTopRightCell(float[] xx,
                                                         float[] yy,
                                                         float[][] zz,
                                                         int i,
                                                         int j)

buildTopLeftCell

protected org.jzy3d.maths.PolygonArray buildTopLeftCell(float[] xx,
                                                        float[] yy,
                                                        float[][] zz,
                                                        int i,
                                                        int j)

buildBottomBorderCell

protected org.jzy3d.maths.PolygonArray buildBottomBorderCell(float[] xx,
                                                             float[] yy,
                                                             float[][] zz,
                                                             int i,
                                                             int j)

buildRightBorderCell

protected org.jzy3d.maths.PolygonArray buildRightBorderCell(float[] xx,
                                                            float[] yy,
                                                            float[][] zz,
                                                            int i,
                                                            int j)

buildTopBorderCell

protected org.jzy3d.maths.PolygonArray buildTopBorderCell(float[] xx,
                                                          float[] yy,
                                                          float[][] zz,
                                                          int i,
                                                          int j)

buildLeftBorderCell

protected org.jzy3d.maths.PolygonArray buildLeftBorderCell(float[] xx,
                                                           float[] yy,
                                                           float[][] zz,
                                                           int i,
                                                           int j)

buildQuads

protected void buildQuads(float[] xx,
                          float[] yy,
                          float[][] zz)
Build up to 4 neighbour quads around each point, made of interpolated points


buildTopRight

protected org.jzy3d.maths.PolygonArray buildTopRight(float[] xx,
                                                     float[] yy,
                                                     float[][] zz,
                                                     int i,
                                                     int j)

buildTopLeft

protected org.jzy3d.maths.PolygonArray buildTopLeft(float[] xx,
                                                    float[] yy,
                                                    float[][] zz,
                                                    int i,
                                                    int j)

buildBottomLeft

protected org.jzy3d.maths.PolygonArray buildBottomLeft(float[] xx,
                                                       float[] yy,
                                                       float[][] zz,
                                                       int i,
                                                       int j)

buildBottomRight

protected org.jzy3d.maths.PolygonArray buildBottomRight(float[] xx,
                                                        float[] yy,
                                                        float[][] zz,
                                                        int i,
                                                        int j)


Copyright © 2014. All rights reserved.