Exemplo n.º 1
0
 private static void AddTwo(Vertex v1, Vertex v2, ICollection<Box3Fill> InnerBoxes, Vector3 padXYZ)
 {
     Vertex v4 = new Vertex((v1.X + v2.X) / 2, (v1.Y + v2.Y ) / 2, (v1.Z + v2.Z ) / 2);
     Box3Fill B = new Box3Fill(true);
     B.AddVertex(v1, padXYZ);
     B.AddVertex(v4, padXYZ);
     InnerBoxes.Add(B);
     B = new Box3Fill(true);
     B.AddVertex(v2, padXYZ);
     B.AddVertex(v4, padXYZ);
     InnerBoxes.Add(B);
 }
Exemplo n.º 2
0
 private static void AddThree(Vertex v1, Vertex v2, Vertex v3, ICollection<Box3Fill> InnerBoxes, Vector3 padXYZ)
 {
     Box3Fill B = new Box3Fill(true);
     B.AddVertex(v1, padXYZ);
     B.AddVertex(v2, padXYZ);
     B.AddVertex(v3, padXYZ);
     InnerBoxes.Add(B);
 }