Example #1
0
    public static BilinearSurface CreateTriangleCoords()
    {
        GameObject      go     = new GameObject("TriangleCoords");
        BilinearSurface coords =
            go.AddComponent <BilinearSurface>();

        coords.CreateMesh();
        return(coords);
    }
Example #2
0
 private void Start()
 {
     C1 = new Curve(C1_scene);
     C2 = new Curve(C2_scene);
     d1 = new Curve(d1_scene);
     d2 = new Curve(d2_scene);
     bs = new BilinearSurface();
     chaikin_curve_C1 = new Curve(CreateChaikinCurve(C1, 0.33f, 0.25f, 2).points);
     chaikin_curve_C2 = new Curve(CreateChaikinCurve(C2, 0.33f, 0.25f, 2).points);
     chaikin_curve_d1 = new Curve(CreateChaikinCurve(d1, 0.25f, 0.33f, 2).points);
     chaikin_curve_d2 = new Curve(CreateChaikinCurve(d2, 0.25f, 0.33f, 2).points);
     s1 = new Surface(chaikin_curve_C1, chaikin_curve_C2);
     s1.GenerateLines();
     s2 = new Surface(chaikin_curve_d1, chaikin_curve_d2);
     s2.GenerateLines();
     bs.Create(s1, s2);
     Debug.Log(bs.points.Count);
 }
Example #3
0
 public void Awake()
 {
     bilinearSurface = target as BilinearSurface;
 }
Example #4
0
 // Use this for initialization
 void Awake()
 {
     // Wir holen uns die BilinearSufrace-Komponente
     triangleCoords = target as BilinearSurface;
 }