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)); }
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); }
public Mesh ToMesh() { return(MeshXN.Combine(this)); }