예제 #1
0
        Mesh TestMesh()
        {
            Strip s = new Strip(
                -1, 0, -1,
                -1, 0, 1,
                1, 0, -1,
                1, 0, 1,
                2, 0, -1,
                -2, 0, 1);

            Fan f = new Fan(
                -1, 0, -1,
                -1, 0, 1,
                1, 0, -1,
                1, 0, 1,
                2, 0, -1,
                -2, 0, 1);

            Vector3 v1a = new Vector3(-1, 0, -1);
            Vector3 v1b = new Vector3(-1, 0, 1);
            Vector3 v2a = new Vector3(1, 0, -1);
            Vector3 v2b = new Vector3(1, 0, 1);
            Vector3 v3a = new Vector3(2, 0, -1);
            Vector3 v3b = new Vector3(2, 0, -1);

            Fan f2 = new Fan(v1a, v1b, v2a, v2b, v3a, v3b);

            return(MeshXN.Combine(s, f, f2));
        }
예제 #2
0
        void Test()
        {
            Strip s = new Strip(
                -1, 0, -1,
                -1, 0, 1,
                1, 0, -1,
                1, 0, 1,
                2, 0, -1,
                -2, 0, 1);

            Fan f = new Fan(
                -1, 0, -1,
                -1, 0, 1,
                1, 0, -1,
                1, 0, 1,
                2, 0, -1,
                -2, 0, 1);

            Vector3 v1a = new Vector3(-1, 0, -1);
            Vector3 v1b = new Vector3(-1, 0, 1);
            Vector3 v2a = new Vector3(1, 0, -1);
            Vector3 v2b = new Vector3(1, 0, 1);
            Vector3 v3a = new Vector3(2, 0, -1);
            Vector3 v3b = new Vector3(2, 0, -1);

            Fan f2 = new Fan(v1a, v1b, v2a, v2b, v3a, v3b);

            Mesh mesh = MeshXN.Combine(s, f, f2);
        }
예제 #3
0
 public Mesh ToMesh()
 {
     return(MeshXN.Combine(this));
 }