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)); }
public static IEnumerable <int> GetCoplanerFaces(this Mesh mesh, int faceIndex) { var plane = mesh.GetPlane(faceIndex); return(mesh.GetCoplanerFaces(plane)); }