摘要: gp_Ax2代表一个三维右手坐标系。 坐标系包括以下内容: - 原点(Location point) - 3个正交的单位向量,在OCC中分别称为"X Direction"(后文统称 X), "Y Direction" (后文统称 Y) 以及"Direction"。 "Direction"表示"mai 阅读全文
posted @ 2022-12-01 11:56 xl-better 阅读(666) 评论(0) 推荐(0)
摘要: gp_Ax1描述了一个三维轴。 轴包含以下内容: - 原点(Location point) - 单位向量(称作 "Direction" 或 "main Direction") 轴通常有以下用途: - 描述三维几何体(例如:旋转体的轴) - 定义几何体的转换(对称轴、旋转轴等等) class gp_A 阅读全文
posted @ 2022-12-01 10:19 xl-better 阅读(216) 评论(0) 推荐(0)
摘要: // NCollection_Array1是一个模板类,容器类是模板类我们对这应该很熟悉了,毕竟为所有类型单独写一个容器类是不现实也没必要的。 // 元素内存是顺序存储的,类似vector // 此类中有一个颠覆我思想的操作,特此记录。在上学、培训时老师都教我们程序中不能有野指针,但此类正是通过“野 阅读全文
posted @ 2022-11-29 13:31 xl-better 阅读(726) 评论(0) 推荐(0)
摘要: OCC构建Box实现过程解析: TopoDS_Shape = BRepPrimAPI_MakeBox(5, 5, 5); // BRepPrimAPI_MakeBox简单介绍 BRepPrimAPI_MakeBox : public BRepBuilderAPI_MakeShape { protec 阅读全文
posted @ 2022-11-29 09:49 xl-better 阅读(904) 评论(2) 推荐(0)
摘要: // 任意Edge TopoDS_Edge edge; BRepAdaptor_Curve curveAdaptor(edge); // 方法1 double start = curveAdaptor.FirstParameter(); double end = curveAdaptor.LastP 阅读全文
posted @ 2022-11-25 17:17 xl-better 阅读(349) 评论(0) 推荐(0)
摘要: Geom_Geometry Geom_Geometry是三维参数化对象的抽象基类。它提供、定义了三维对象基本的镜像、旋转、缩放、平移、拷贝等操作。 virtual void Geom_Curve::Reverse() = 0 // 函数功能:曲线逆序。"FirstParameter"以及"LastP 阅读全文
posted @ 2022-11-25 10:54 xl-better 阅读(271) 评论(0) 推荐(0)