es.unex.sextante.tin.smoothTinBezier
Class BezierSurface

java.lang.Object
  extended by es.unex.sextante.tin.smoothTinBezier.BezierSurface

public class BezierSurface
extends java.lang.Object


Constructor Summary
BezierSurface(com.vividsolutions.jts.geom.Coordinate[][] triangles, com.vividsolutions.jts.index.strtree.STRtree trianglesIndex, java.util.TreeMap breakLines, double scaleZ, int m_LoD)
          Constructor
 
Method Summary
protected  char compareReturnIndex(com.vividsolutions.jts.geom.Coordinate[] triangle, com.vividsolutions.jts.geom.Coordinate P)
          The method which compare points
 boolean hasNext()
          The method tests list of bezier triangle if has next
 com.vividsolutions.jts.geom.Coordinate[][] nextTrinagle()
          The method gets next group of small triangles of main Bezier triangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BezierSurface

public BezierSurface(com.vividsolutions.jts.geom.Coordinate[][] triangles,
                     com.vividsolutions.jts.index.strtree.STRtree trianglesIndex,
                     java.util.TreeMap breakLines,
                     double scaleZ,
                     int m_LoD)
Constructor

Parameters:
triangles - - array of triangle's vertexes
trainglesIndex - - RTree index of triangles
breakLine - - map of break lines
scaleZ - - scale of Z coordinate to optimize data
m_LoD - - Level of Detail
Method Detail

compareReturnIndex

protected char compareReturnIndex(com.vividsolutions.jts.geom.Coordinate[] triangle,
                                  com.vividsolutions.jts.geom.Coordinate P)
The method which compare points

Parameters:
P - - points for comparing
Returns:
index A,B,C which point is same or N if point P not exist in triangle

hasNext

public boolean hasNext()
The method tests list of bezier triangle if has next

Parameters:
true - - hasNext, false hasn't Next

nextTrinagle

public com.vividsolutions.jts.geom.Coordinate[][] nextTrinagle()
The method gets next group of small triangles of main Bezier triangle

Returns:
coordinates of vertexes of new small triangles


Copyright © 2014 gvSIG Association. All Rights Reserved.