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_10 extends GenericTriangleTesselation {
00012 protected GenericEdge e_d,f_e,e_a;
00013 public Tesselation_10(Triangle t, ChildMaker childMaker,Configuration configuration) {
00014 super(t, childMaker,configuration);
00015
00016 }
00017 protected void link(){
00018
00019 e_d.setTriangle(B);
00020 e_d.setTriangle(A);
00021 f_e.setTriangle(C);
00022 f_e.setTriangle(D);
00023 e_a.setTriangle(A);
00024 e_a.setTriangle(D);
00025
00026 k.setTriangle(A);
00027 l.setTriangle(B);
00028 m.setTriangle(B);
00029 n.setTriangle(C);
00030 o.setTriangle(C);
00031 p.setTriangle(D);
00032
00033 }
00034
00035 public String getTesselationCode(){
00036 return "10";
00037 }
00038
00039 public void makeInnerEdgesAndTriangles(){
00040 this.makeInnerEdges();
00041 innerEdges=new ArrayList<GenericEdge>();
00042 innerEdges.add(e_d);innerEdges.add(f_e); innerEdges.add(e_a);
00043 A=new Triangle(k,e_a,e_d,configuration);
00044 B=new Triangle(l,e_d,m,configuration);
00045 C=new Triangle(n,f_e,o,configuration);
00046 D=new Triangle(p,f_e,e_a,configuration);
00047
00048 }
00049
00050
00051 }