ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
iges_import.h
浏览该文件的文档.
1 #pragma once
33 #include "vde/brep/brep.h"
34 #include <string>
35 #include <vector>
36 
37 namespace vde::brep {
38 
42 enum class IgesError {
43  Ok = 0,
44  FileNotFound,
45  ParseError,
50 };
51 
80 [[nodiscard]] std::vector<BrepModel> import_iges(const std::string& filepath);
81 
90 [[nodiscard]] std::vector<BrepModel> import_iges_from_string(const std::string& data);
91 
98 [[nodiscard]] IgesError iges_last_error();
99 
106 [[nodiscard]] const std::string& iges_last_error_message();
107 
108 } // namespace vde::brep
边界表示(B-Rep)核心数据结构
Definition: brep.h:54
IgesError iges_last_error()
获取最近一次 IGES 导入的错误码
const std::string & iges_last_error_message()
获取最近一次 IGES 导入的可读错误描述
std::vector< BrepModel > import_iges_from_string(const std::string &data)
从字符串导入 IGES(用于测试)
std::vector< BrepModel > import_iges(const std::string &filepath)
从文件导入 IGES
IgesError
IGES 导入错误码
Definition: iges_import.h:42
@ FileNotFound
文件不存在或无法读取
@ UnsupportedEntity
遇到了不支持但合法的实体类型
@ EntityTypeError
实体类型解析失败
@ Ok
导入成功
@ MissingEntity
引用了未定义的实体
@ ParseError
IGES 语法错误(固定宽度格式异常)
@ InvalidSection
段标记无效或缺失