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