MeshLib
 
Loading...
Searching...
No Matches
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;
25 std::shared_ptr<const Mesh> mesh;
26};
27MRMESH_API VoidOrErrStr sceneToObj( const std::vector<NamedXfMesh> & objects, const std::filesystem::path & file,
28 VertColors* colors = nullptr );
29MRMESH_API VoidOrErrStr 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 VoidOrErrStr sceneToObj(const std::vector< NamedXfMesh > &objects, const std::filesystem::path &file, VertColors *colors=nullptr)
Definition MRCameraOrientationPlugin.h:7
Expected< void > VoidOrErrStr
return type for a void function that can produce an error string
Definition MRExpected.h:60
saves a number of named meshes in .obj file
Definition MRMeshSaveObj.h:22
std::shared_ptr< const Mesh > mesh
Definition MRMeshSaveObj.h:25
std::string name
Definition MRMeshSaveObj.h:23
AffineXf3f toWorld
Definition MRMeshSaveObj.h:24