public void updateLine(HiddenLine line){
  int pointCount=getNumberOfChildren();
  if (pointCount < 2) {
    return;
  }
  FloatBuffer vertexBuffer=line.getVertexBuffer();
  if ((pointCount * 3) > vertexBuffer.capacity()) {
    vertexBuffer=BufferUtils.createFloatBuffer(pointCount * 3);
  }
  vertexBuffer.clear();
  ReadOnlyVector3 trans=null;
  getPointList();
  for (int i=0; i < pointCount; ++i) {
    int j=i * 3;
    trans=pointList.get(i);
    vertexBuffer.put(j,trans.getXf());
    vertexBuffer.put(j + 1,trans.getYf());
    vertexBuffer.put(j + 2,trans.getZf());
  }
  vertexBuffer.limit(pointCount * 3);
  vertexBuffer.rewind();
  line.setVertexBuffer(vertexBuffer);
  line.updateModelBound();
}

public void updateLine ( HiddenLine line ) { int pointCount = getNumberOfChildren ( ) ; if ( pointCount < 2 ) { return ; } FloatBuffer vertexBuffer = line . getVertexBuffer ( ) ; if ( ( pointCount * 3 ) > vertexBuffer . capacity ( ) ) { vertexBuffer = BufferUtils . createFloatBuffer ( pointCount * 3 ) ; } vertexBuffer . clear ( ) ; ReadOnlyVector3 trans = null ; getPointList ( ) ; for ( int i = 0 ; i < pointCount ; ++ i ) { int j = i * 3 ; trans = pointList . get ( i ) ; vertexBuffer . put ( j , trans . getXf ( ) ) ; vertexBuffer . put ( j + 1 , trans . getYf ( ) ) ; vertexBuffer . put ( j + 2 , trans . getZf ( ) ) ; } vertexBuffer . limit ( pointCount * 3 ) ; vertexBuffer . rewind ( ) ; line . setVertexBuffer ( vertexBuffer ) ; line . updateModelBound ( ) ; }
update the line from the points
