示例#1
0
        public static void PlaceTextureOnFaces(this Mesh mesh, int face, ImageBuffer textureToUse)
        {
            //// planer project along the normal of this face
            var faces = mesh.GetCoplanerFaces(face);

            mesh.PlaceTextureOnFaces(faces, textureToUse, mesh.GetMaxPlaneProjection(faces, textureToUse));
        }
示例#2
0
        public static IEnumerable <int> GetCoplanerFaces(this Mesh mesh, int faceIndex)
        {
            var plane = mesh.GetPlane(faceIndex);

            return(mesh.GetCoplanerFaces(plane));
        }