当前位置: 首页 > news >正文

开发系统网站建设如何利用wordpress编辑网站

开发系统网站建设,如何利用wordpress编辑网站,深圳网站关键词优化推广,网页设计代码中相对定位1. 效果#xff1a; 2.简介#xff1a; 可以实现在多边形上进行交互#xff0c;选择#xff1b;在多边形曲面上实现轮廓点的交互绘制。 该类的使用需要结合 vtkPolygonalSurfacePointPlacer 类#xff0c;定位点的功能也就是拾取器。 前提#xff1a;输入的多边形曲面… 1. 效果 2.简介 可以实现在多边形上进行交互选择在多边形曲面上实现轮廓点的交互绘制。 该类的使用需要结合 vtkPolygonalSurfacePointPlacer 类定位点的功能也就是拾取器。 前提输入的多边形曲面需要计算法向量。 3.源码 #include vtkActor.h #include vtkCamera.h #include vtkContourWidget.h #include vtkNamedColors.h #include vtkNew.h #include vtkOrientedGlyphContourRepresentation.h #include vtkPolyData.h #include vtkPolyDataCollection.h #include vtkPolyDataMapper.h #include vtkPolygonalSurfaceContourLineInterpolator.h #include vtkPolygonalSurfacePointPlacer.h #include vtkProperty.h #include vtkRenderWindow.h #include vtkRenderWindowInteractor.h #include vtkRenderer.h #include vtkSmartPointer.h #include vtkSphereSource.h #include vtkTriangleFilter.h #include vtkXMLPolyDataReader.hint main(int argc, char* argv[]) {vtkNewvtkNamedColors colors;vtkSmartPointervtkPolyData polyData;if (argc 2){vtkNewvtkSphereSource sphereSource;sphereSource-SetThetaResolution(40);sphereSource-SetPhiResolution(20);sphereSource-Update();polyData sphereSource-GetOutput();}else{vtkNewvtkXMLPolyDataReader reader;reader-SetFileName(argv[1]);reader-Update();polyData reader-GetOutput();}// The Dijkistra interpolator will not accept cells that arent triangles.vtkNewvtkTriangleFilter triangleFilter;triangleFilter-SetInputData(polyData);triangleFilter-Update();auto pd triangleFilter-GetOutput();// Create a mapper and actor.vtkNewvtkPolyDataMapper mapper;mapper-SetInputConnection(triangleFilter-GetOutputPort());vtkNewvtkActor actor;actor-SetMapper(mapper);actor-GetProperty()-SetInterpolationToFlat();actor-GetProperty()-SetColor(colors-GetColor3d(MistyRose).GetData());// Create the render window, renderer and interactor.vtkNewvtkRenderer renderer;vtkNewvtkRenderWindow renderWindow;renderWindow-AddRenderer(renderer);renderWindow-SetWindowName(PolygonalSurfaceContourLineInterpolator);vtkNewvtkRenderWindowInteractor interactor;interactor-SetRenderWindow(renderWindow);// Add the actors to the renderer, set the background and size.renderer-AddActor(actor);renderer-SetBackground(colors-GetColor3d(CadetBlue).GetData());// Here comes the contour widget stuff...vtkNewvtkContourWidget contourWidget;contourWidget-SetInteractor(interactor);vtkSmartPointervtkOrientedGlyphContourRepresentation rep dynamic_castvtkOrientedGlyphContourRepresentation*(contourWidget-GetRepresentation());rep-GetLinesProperty()-SetColor(colors-GetColor3d(Crimson).GetData());rep-GetLinesProperty()-SetLineWidth(3.0);vtkNewvtkPolygonalSurfacePointPlacer pointPlacer;pointPlacer-AddProp(actor);pointPlacer-GetPolys()-AddItem(pd);rep-SetPointPlacer(pointPlacer);vtkNewvtkPolygonalSurfaceContourLineInterpolator interpolator;interpolator-GetPolys()-AddItem(pd);rep-SetLineInterpolator(interpolator);renderWindow-Render();interactor-Initialize();contourWidget-EnabledOn();interactor-Start();return EXIT_SUCCESS; } 4.使用场景 可以用来做任意曲面切割 曲面拟合主要用的贝塞尔曲面交互部分用 vtkPolygonalSurfacePointPlacer vtkPolygonalSurfaceContourLineInterpolator 也可使用 vtkOrientedGlyphContourRepresentation 以及自定义的vtk3DWidget子类
http://www.zqtcl.cn/news/988160/

相关文章:

  • 企业网站模板下载软件商务网站规划与建设心得
  • 做网站的像素是多少钱郑州公司网页
  • 北京游戏网站建设特殊符号网站
  • c 网站开发技术代注册公司要多少钱
  • 设计师参考效果图网站如何写网站建设实验结果分析
  • 网站备案 营业执照做企业网站注意些啥
  • 网站建设公司济南网络教学平台昆明理工大学
  • 原网站开发新功能世赛网站开发
  • 做一款小程序需要多少钱凡科的网站做seo比较难
  • 北京网页设计与网站建设最专业的手机网站建设
  • 做一个网站广州网站备案拍照
  • 做平面图片的网站wordpress批量添加连接
  • 做ppt哪些网站的图片质量高做电商网站需要多少时间
  • 个人网站模板源码wordpress流动公告
  • html5 手机 网站盘锦建设工程信息网站
  • 高端企业网站定制公司wordpress喜欢_赏_分享
  • 网站开发推广方案策划书开发公司移交给物业资料说明
  • 做响应式网站的菜单中国造价网官网
  • 爱心捐赠网站怎么做中国机械网官网
  • 好的ftp网站微信小程序开发基础
  • 西安 网站 公司wordpress+帖子置顶
  • 广州开发网站服务上海千途网站建设
  • 网站建设功能分为几种百度搜索数据
  • 电影网站模板html微信开发者代码管理
  • 小程序ui界面设计手机优化大师官网
  • 佳木斯市建设局网站网络游戏名
  • 建筑钢结构网站汉阳网站建设哪家便宜
  • 营销型网站建设评价临湘网站建设
  • 做网站的价格参考巴中建网站的公司
  • 张家口建设网站网络技术工程师