摘要: 来源: https://www.ilikebigbits.com/2015_02_05_remap.html inline float remap(float x, float in_min, float in_max, float out_min, float out_max) { float t 阅读全文
posted @ 2024-08-19 09:59 lma_o 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //注意:这里的中心是0,0,0 要在ACTOR 中设置位置。 vtkNew<vtkPlaneSource> plane1; plane1->SetCenter(0,0,0); plane1->SetNormal(normal); plane1->SetResolution(1, 1); plane 阅读全文
posted @ 2024-08-16 15:09 lma_o 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 使用 vs +Qt 项目时,数组超界不会崩溃 和报错的问题。 开启以下2个即可。 注意: 1.启用了地址擦除系统会造成QT 的异常崩溃,原因未知。 2.有时会报 cookie 的错误,数组超界了, 在退出函数时才会报错。 阅读全文
posted @ 2024-06-19 16:16 lma_o 阅读(20) 评论(0) 推荐(0) 编辑
摘要: typedef CGAL::Simple_cartesian<double> Kernel; typedef Kernel::Point_3 Point_3; typedef CGAL::Surface_mesh<Point_3> SurfaceMesh; void main() { Surface 阅读全文
posted @ 2024-03-28 11:00 lma_o 阅读(29) 评论(0) 推荐(0) 编辑
摘要: vtk保存与读取  ply 颜色 1 // 创建一个vtkPolyData对象 2 vtkSmartPointer<vtkPolyData> polyData = vtkSmartPointer<vtkPolyData>::New(); 3 4 // 创建点坐标 5 vtkSmartPointer<vtkPoints> points 阅读全文
posted @ 2024-03-20 17:20 lma_o 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 头文件 #include <numeric> 重载函数 accumulate (迭代器开始,迭代器结束,初始值); _Ty accumulate(_InIt _First, _InIt _Last, _Ty _Val) accumulate (迭代器开始,迭代器结束,初始值,累加函数); _Ty a 阅读全文
posted @ 2022-08-10 22:58 lma_o 阅读(213) 评论(0) 推荐(0) 编辑
摘要: QT QString 转 QByteArray 16进制 阅读全文
posted @ 2022-07-31 23:18 lma_o 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: 使用Pywin32库 安装命令 :pip install pywin32 import win32ui dlg = win32ui.CreateFileDialog(1) # 1表示打开文件对话框 dlg.SetOFNInitialDir('C:/Users/poi/Desktop') # 设置打开 阅读全文
posted @ 2020-05-28 17:31 lma_o 阅读(393) 评论(0) 推荐(0) 编辑