摘要: 根据点创建折线段 Handle(Geom_BSplineCurve) CreatePolylineFromPoints(const TColgp_Array1OfPnt& points) { Standard_Integer nbPoints = points.Length(); // 创建节点序列 阅读全文
posted @ 2025-03-27 17:20 unicornsir 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 问题描述: mfc编程时,重写ctabctrl类。在实现动态增加删除界面功能时,发现当tab控件内有加载入两个tab界面,当删除tab1时,留下的另一个tab2标签页会变空白。 现象如下: 同时添加“666”和“667”两个tab页,并显示“667”tab页。 然后删除“666”这个tab页,“66 阅读全文
posted @ 2025-03-07 13:21 unicornsir 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 示例: OdGeLineSeg3d ll(OdGePoint3d(0, 0, 0), OdGePoint3d(100, 0, 0)); OdGePoint3dArray pointArray; OdGeDoubleArray paramArray; ll.getSamplePoints(0, 1.0 阅读全文
posted @ 2025-02-05 16:02 unicornsir 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 捕捉靶框大小: Aperture 修改捕捉靶框大小 SetSysVar(_T("Aperture"), 20); 显示捕捉靶框: ApBox SetSysVar(_T("ApBox"), 1) 对象捕捉方式: OSMODE SetSysVar(_T("OSMODE"), 512); 阅读全文
posted @ 2024-09-29 10:16 unicornsir 阅读(30) 评论(0) 推荐(0) 编辑
摘要: If depends.exe (Dependency Walker) Hangs Dependency Walker is probably the best util that builds a hierarchical tree diagram of all dependent modules 阅读全文
posted @ 2024-09-13 09:01 unicornsir 阅读(196) 评论(0) 推荐(0) 编辑
摘要: // 选择立方体 ads_name ename = { 0 }; ads_point selPnt = { 0 }; acedEntSel(_T("请选择立方体"), ename, selPnt); AcDbObjectId oid = AcDbObjectId::kNull; acdbGetObj 阅读全文
posted @ 2024-08-14 14:27 unicornsir 阅读(48) 评论(0) 推荐(0) 编辑
摘要: osg的矩阵表达形式为osg::Matrix ObjectArx的矩阵表达式为AcGeMatrix3d occt的矩阵表达式分gp_Trsf及支持变形的gp_GTrsf osg矩阵转化为ObjectArx osg::Matrix mVPW; TcGeMatrix3d matrix; for (int 阅读全文
posted @ 2024-08-14 13:18 unicornsir 阅读(51) 评论(0) 推荐(0) 编辑
摘要: BRep_Tool::Surface()重载了两个函数,一个是带TopLoc_Location,这个函数返回的Geom_surface是不带位置信息的,而另一个函数则带位置信息 如: 拉伸体出来的上下两个面,如果是带TopLoc_Location参数返回可以两个面是相同的,而不带参数的则返回两个不同 阅读全文
posted @ 2024-07-23 18:02 unicornsir 阅读(53) 评论(0) 推荐(0) 编辑
摘要: TopoDS_Shape的拷贝有两种方式 1) TopoDS_Shape newShape = oldShape; 2) BRepBuilderAPI_Copy tool;tool.perform(oldShape,true,false); //! "false" since I'm not int 阅读全文
posted @ 2024-07-23 13:25 unicornsir 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 最新发布的Open Cascade 7.8.0没有附带完整版的exe安装包,因此如果想自己编译,需要借助CMake工具手动生成VS工程文件,本文详细记录了这一过程,部分参考了:【opencascade新手教程一】从windwos构建opencascade7.6 - 知乎 1. Open Cascad 阅读全文
posted @ 2024-07-19 13:56 unicornsir 阅读(535) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示