MeshLib
 
Loading...
Searching...
No Matches
MRStep.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_STEP
5#include "exports.h"
6
7#include <MRMesh/MRExpected.h>
9
10#include <filesystem>
11#include <iostream>
12
13namespace MR::MeshLoad
14{
15
17MRIOEXTRAS_API Expected<Mesh> fromStep( const std::filesystem::path& path, const MeshLoadSettings& settings = {} );
18MRIOEXTRAS_API Expected<Mesh> fromStep( std::istream& in, const MeshLoadSettings& settings = {} );
19
21MRIOEXTRAS_API Expected<std::shared_ptr<Object>> fromSceneStepFile( const std::filesystem::path& path, const MeshLoadSettings& settings = {} );
22MRIOEXTRAS_API Expected<std::shared_ptr<Object>> fromSceneStepFile( std::istream& in, const MeshLoadSettings& settings = {} );
23
24} // namespace MR::MeshLoad
25#endif
Definition MRCtm.h:18
MRIOEXTRAS_API Expected< Mesh > fromStep(const std::filesystem::path &path, const MeshLoadSettings &settings={})
load mesh data from STEP file using OpenCASCADE
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > fromSceneStepFile(const std::filesystem::path &path, const MeshLoadSettings &settings={})
load scene from STEP file using OpenCASCADE
tl::expected< T, E > Expected
Definition MRExpected.h:58
setting for mesh loading from external format, and locations of optional output data
Definition MRMeshLoadSettings.h:10