MeshLib C++ Docs
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
18{
20 double angularDeflection = 0.1;
22 double linearDeflection = 0.5;
24 bool relative = false;
25};
26
28MRIOEXTRAS_API Expected<Mesh> fromStep( const std::filesystem::path& path, const MeshLoadSettings& settings = {}, const StepLoadSettings& stepSettings = {} );
29MRIOEXTRAS_API Expected<Mesh> fromStep( std::istream& in, const MeshLoadSettings& settings = {}, const StepLoadSettings& stepSettings = {} );
30
32MRIOEXTRAS_API Expected<std::shared_ptr<Object>> fromSceneStepFile( const std::filesystem::path& path, const MeshLoadSettings& settings = {}, const StepLoadSettings& stepSettings = {} );
33MRIOEXTRAS_API Expected<std::shared_ptr<Object>> fromSceneStepFile( std::istream& in, const MeshLoadSettings& settings = {}, const StepLoadSettings& stepSettings = {} );
34
35}
36#endif
tl::expected< T, E > Expected
Definition MRExpected.h:31
compatibility names
Definition MRCtm.h:21
Expected< std::shared_ptr< Object > > fromSceneStepFile(const std::filesystem::path &path, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={})
load scene from STEP file using OpenCASCADE
Expected< Mesh > fromStep(const std::filesystem::path &path, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={})
load mesh data from STEP file using OpenCASCADE
setting for mesh loading from external format, and locations of optional output data
Definition MRMeshLoadSettings.h:14
STEP-specific mesh load parameters.
Definition MRStep.h:18
bool relative
whether the deflection values are related to the size of edges
Definition MRStep.h:24
double linearDeflection
linear deflection used to tessellate the boundary edges
Definition MRStep.h:22
double angularDeflection
angular deflection used to tessellate the boundary edges
Definition MRStep.h:20