예제 #1
0
        private static Visual3D AddFace(Viewport3D viewport, Face3D face, Color color, Color? reflectColor = null)
        {
            Tuple<int[], Point3D[]> poly = face.GetPolygon(500);

            TriangleIndexed[] triangles = Math2D.GetTrianglesFromConvexPoly(poly.Item1, poly.Item2);

            return AddTriangles(viewport, triangles, color, reflectColor);
        }