00001 package baseMeshGeneration.utilities; 00002 00003 import CodingUtils.MyRandom; 00004 import ImageStuff.Vertex; 00005 import delaunaypackage.RealPoint; 00006 00007 public class VertexToRealPoint { 00008 00009 private RealPoint[] realpoints; 00010 public VertexToRealPoint(Vertex[] vertices) { 00011 realpoints =new RealPoint[vertices.length]; 00012 for(int i =0;i!=vertices.length;i++){ 00013 float randx=(float)(MyRandom.random()*0.2f); 00014 float randy=(float)(MyRandom.random()*0.2f); 00015 realpoints[i]=new RealPoint(vertices[i].getX()+randx,vertices[i].getY()+randy); 00016 } 00017 00018 } 00019 00020 00021 00022 public RealPoint[] getRealpoints() { 00023 return realpoints; 00024 } 00025 00026 }
1.5.5