00001 package ImageStuff.Topology;
00002
00003 import java.util.ArrayList;
00004
00005
00006 import ImageStuff.GenericEdge;
00007 import ImageStuff.Triangle;
00008 import NormalMeshAlgorithm.ChildMaker;
00009 import NormalMeshAlgorithm.Configuration;
00010
00011 public abstract class Tesselation_00 extends GenericTriangleTesselation {
00012 protected GenericEdge e_d,d_f,f_e;
00013 public Tesselation_00(Triangle t, ChildMaker childMaker,Configuration configuration) {
00014 super(t, childMaker,configuration);
00015
00016 }
00017
00018 protected void link(){
00019
00020 e_d.setTriangle(B);
00021 e_d.setTriangle(D);
00022 d_f.setTriangle(A);
00023 d_f.setTriangle(D);
00024 f_e.setTriangle(D);
00025 f_e.setTriangle(C);
00026
00027 k.setTriangle(A);
00028 l.setTriangle(B);
00029 m.setTriangle(B);
00030 n.setTriangle(C);
00031 o.setTriangle(C);
00032 p.setTriangle(A);
00033 }
00034
00035 public String getTesselationCode(){
00036 return "00";
00037 }
00038
00039 protected void makeInnerEdgesAndTriangles(){
00040 makeInnerEdges();
00041 innerEdges=new ArrayList<GenericEdge>();
00042 innerEdges.add(e_d);innerEdges.add(d_f); innerEdges.add(f_e);
00043 A=new Triangle(k,p,d_f,configuration);
00044 B=new Triangle(l,e_d,m,configuration);
00045 C=new Triangle(n,f_e,o,configuration);
00046 D=new Triangle(e_d,d_f,f_e,configuration);
00047 }
00048
00049
00050
00051 }