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