MeshLib Documentation
Loading...
Searching...
No Matches
MRMesh/MRMeshSaveObj.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMesh.h"
4#include "MRAffineXf3.h"
5#include "MRExpected.h"
6#include <filesystem>
7#include <ostream>
8#include <string>
9
10namespace MR
11{
12
13namespace MeshSave
14{
15
19
22{
23 std::string name;
24 AffineXf3f toWorld;
25 std::shared_ptr<const Mesh> mesh;
26};
27MRMESH_API Expected<void> sceneToObj( const std::vector<NamedXfMesh> & objects, const std::filesystem::path & file,
28 VertColors* colors = nullptr );
29MRMESH_API Expected<void> sceneToObj( const std::vector<NamedXfMesh> & objects, std::ostream & out,
30 VertColors* colors = nullptr );
31
33
34} // namespace MeshSave
35
36} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API Expected< void > sceneToObj(const std::vector< NamedXfMesh > &objects, const std::filesystem::path &file, VertColors *colors=nullptr)
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
saves a number of named meshes in .obj file
Definition MRMesh/MRMeshSaveObj.h:22
std::shared_ptr< const Mesh > mesh
Definition MRMesh/MRMeshSaveObj.h:25
std::string name
Definition MRMesh/MRMeshSaveObj.h:23
AffineXf3f toWorld
Definition MRMesh/MRMeshSaveObj.h:24