03 2022 档案
摘要:string Trim(string& str) { //str.find_first_not_of(" \t\r\n"),在字符串str中从索引0开始,返回首次不匹配"\t\r\n"的位置 str.erase(0, str.find_first_not_of(" \t\r\n")); str.er
阅读全文
摘要:主要流程:1. 获取三角网格数据 2. 三角网剖分 string Trim(string& str) { //str.find_first_not_of(" \t\r\n"),在字符串str中从索引0开始,返回首次不匹配"\t\r\n"的位置 str.erase(0, str.find_first_
阅读全文
摘要:图片是从网上下载,先将其处理为灰度图像,之后进行边缘检测。 #ifndef INITIAL_OPENGL #define INITIAL_OPENGL #include"vtkAutoInit.h" VTK_MODULE_INIT(vtkRenderingOpenGL2) VTK_MODULE_IN
阅读全文
摘要:#include <vtkSmartPointer.h> #include <vtkSimplePointsReader.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkProperty.h> #include
阅读全文
摘要:读取到VTK数据后,将数据组织起来并添加属性值。 示例: #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolygon.h> #include <vtkTriangle.h> #include <vtkCellArr
阅读全文
摘要:#include <vtkSmartPointer.h> #include <vtkSimplePointsReader.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkProperty.h> #include
阅读全文