@@ -14,42 +14,48 @@ namespace MR
1414namespace MeshLoad
1515{
1616
17- // loads from internal file format
17+ // / \defgroup MeshLoadGroup Mesh Load
18+ // / \ingroup IOGroup
19+ // / \{
20+
21+ // / loads from internal file format
1822MRMESH_API tl::expected<Mesh, std::string> fromMrmesh ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
1923MRMESH_API tl::expected<Mesh, std::string> fromMrmesh ( std::istream& in, std::vector<Color>* colors = nullptr );
2024
21- // loads from .off file
25+ // / loads from .off file
2226MRMESH_API tl::expected<Mesh, std::string> fromOff ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
2327MRMESH_API tl::expected<Mesh, std::string> fromOff ( std::istream& in, std::vector<Color>* colors = nullptr );
2428
25- // loads from .obj file
29+ // / loads from .obj file
2630MRMESH_API tl::expected<Mesh, std::string> fromObj ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
2731MRMESH_API tl::expected<Mesh, std::string> fromObj ( std::istream& in, std::vector<Color>* colors = nullptr );
28- // loads from any .stl
32+ // / loads from any .stl
2933MRMESH_API tl::expected<Mesh, std::string> fromAnyStl ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
3034MRMESH_API tl::expected<Mesh, std::string> fromAnyStl ( std::istream& in, std::vector<Color>* colors = nullptr );
3135
32- // loads from binary .stl
36+ // / loads from binary .stl
3337MRMESH_API tl::expected<Mesh, std::string> fromBinaryStl ( const std::filesystem::path & file, std::vector<Color>* colors = nullptr );
3438MRMESH_API tl::expected<Mesh, std::string> fromBinaryStl ( std::istream & in, std::vector<Color>* colors = nullptr );
3539
36- // loads from ASCII .stl
40+ // / loads from ASCII .stl
3741MRMESH_API tl::expected<Mesh, std::string> fromASCIIStl ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
3842MRMESH_API tl::expected<Mesh, std::string> fromASCIIStl ( std::istream& in, std::vector<Color>* colors = nullptr );
3943
40- // loads from .ply file
44+ // / loads from .ply file
4145MRMESH_API tl::expected<Mesh, std::string> fromPly ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
4246MRMESH_API tl::expected<Mesh, std::string> fromPly ( std::istream& in, std::vector<Color>* colors = nullptr );
4347
44- // loads from .ctm file
48+ // / loads from .ctm file
4549MRMESH_API tl::expected<Mesh, std::string> fromCtm ( const std::filesystem::path & file, std::vector<Color>* colors = nullptr );
4650MRMESH_API tl::expected<Mesh, std::string> fromCtm ( std::istream & in, std::vector<Color>* colors = nullptr );
4751
48- // detects the format from file extension and loads mesh from it
52+ // / detects the format from file extension and loads mesh from it
4953MRMESH_API tl::expected<Mesh, std::string> fromAnySupportedFormat ( const std::filesystem::path& file, std::vector<Color>* colors = nullptr );
50- // extension in `*.ext` format
54+ // / extension in `*.ext` format
5155MRMESH_API tl::expected<Mesh, std::string> fromAnySupportedFormat ( std::istream& in, const std::string& extension, std::vector<Color>* colors = nullptr );
5256
53- } // namespace MeshLoad
57+ // / \}
58+
59+ } // namespace MeshLoad
5460
55- } // namespace MR
61+ } // namespace MR
0 commit comments