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_01 extends GenericTriangleTesselation {
00012 protected GenericEdge e_d,d_f,c_d;
00013 public Tesselation_01(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(C);
00022 d_f.setTriangle(A);
00023 d_f.setTriangle(D);
00024 c_d.setTriangle(D);
00025 c_d.setTriangle(C);
00026
00027 k.setTriangle(A);
00028 l.setTriangle(B);
00029 m.setTriangle(B);
00030 n.setTriangle(C);
00031 o.setTriangle(D);
00032 p.setTriangle(A);
00033 }
00034
00035 protected void makeInnerEdgesAndTriangles(){
00036 this.makeInnerEdges();
00037 innerEdges=new ArrayList<GenericEdge>();
00038 innerEdges.add(e_d);innerEdges.add(d_f); innerEdges.add(c_d);
00039 A=new Triangle(k,p,d_f,configuration);
00040 B=new Triangle(l,e_d,m,configuration);
00041 C=new Triangle(n,e_d,c_d,configuration);
00042 D=new Triangle(o,c_d,d_f,configuration);
00043 }
00044
00045 public String getTesselationCode(){
00046 return "01";
00047 }
00048
00049 }