ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
iges_import.h 文件参考

IGES 文件导入(ANSI Y14.26M) 更多...

#include "vde/brep/brep.h"
#include <string>
#include <vector>
iges_import.h 的引用(Include)关系图:

浏览源代码.

命名空间

 vde
 
 vde::brep
 

枚举

enum class  vde::brep::IgesError {
  vde::brep::Ok = 0 , vde::brep::FileNotFound , vde::brep::ParseError , vde::brep::InvalidSection ,
  vde::brep::UnsupportedEntity , vde::brep::MissingEntity , vde::brep::EntityTypeError
}
 IGES 导入错误码 更多...
 

函数

std::vector< BrepModel > vde::brep::import_iges (const std::string &filepath)
 从文件导入 IGES 更多...
 
std::vector< BrepModel > vde::brep::import_iges_from_string (const std::string &data)
 从字符串导入 IGES(用于测试) 更多...
 
IgesError vde::brep::iges_last_error ()
 获取最近一次 IGES 导入的错误码 更多...
 
const std::string & vde::brep::iges_last_error_message ()
 获取最近一次 IGES 导入的可读错误描述 更多...
 

详细描述

IGES 文件导入(ANSI Y14.26M)

解析 IGES 格式文件(.igs / .iges)并转换为 B-Rep 模型。

IGES 格式概述

IGES (Initial Graphics Exchange Specification) 是一种旧式但广泛使用的 CAD 数据交换格式。 采用 80 字符固定宽度记录格式,分为 5 个区域:

  • S (Start): 自由格式注释
  • G (Global): 参数分隔符、单位、精度等全局设置
  • D (Directory): 实体目录(类型、线型、颜色等属性)
  • P (Parameter): 实体参数数据
  • T (Terminate): 文件结束标记

支持的实体类型

主要支持几何和拓扑实体:

  • Type 100: Circular Arc
  • Type 110: Line
  • Type 116: Point
  • Type 126: Rational B-Spline Curve
  • Type 128: Rational B-Spline Surface
  • Type 108: Plane
  • Type 186: Manifold Solid B-Rep Object
  • Type 502/504/508/510/514: B-Rep 拓扑(顶点/边/环/面/壳)

在文件 iges_import.h 中定义.