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

官方网站的作用wordpress模板仿新版虎嗅huxiu-new主题

官方网站的作用,wordpress模板仿新版虎嗅huxiu-new主题,网站开发工程师证书,国外域名怎么购买程序示例精选 VSQtopencascade三维绘图stp/step/igs/stl格式图形读取显示 如需安装运行环境或远程调试#xff0c;见文章底部个人QQ名片#xff0c;由专业技术人员远程协助#xff01; 前言 这篇博客针对《VSQtopencascade三维绘图stp/step/igs/stl格式图形读取显示》编写… 程序示例精选 VSQtopencascade三维绘图stp/step/igs/stl格式图形读取显示 如需安装运行环境或远程调试见文章底部个人QQ名片由专业技术人员远程协助 前言 这篇博客针对《VSQtopencascade三维绘图stp/step/igs/stl格式图形读取显示》编写代码代码整洁规则易读。 学习与应用推荐首选。 运行结果 文章目录 一、所需工具软件 二、使用步骤        1. 主要代码        2. 运行结果 三、在线协助 一、所需工具软件 1. VS2019, Qt        2. C 二、使用步骤 代码如下示例 //#define WNT #include gp_Circ.hxx #include gp_Elips.hxx #include gp_Sphere.hxx #include Poly_Polygon3D.hxx #include Poly_Triangulation.hxx #include TopTools_ListIteratorOfListOfShape.hxx #include TopTools_HSequenceOfShape.hxx #include BRepBuilderAPI_MakeVertex.hxx #include BRepBuilderAPI_MakeEdge.hxx #include IGESControl_Controller.hxx #include IGESControl_Writer.hxx #include IGESControl_Reader.hxx #include TopoDS_Edge.hxx #include TopoDS_Face.hxx #include TopoDS.hxx #include BRep_Tool.hxx #include XBRepMesh.hxx #include BRepMesh_IncrementalMesh.hxx #include BRepBuilderAPI_MakeEdge.hxx #include BRepBuilderAPI_MakeFace.hxx #include BRepAdaptor_Curve.hxx #include GCPnts_TangentialDeflection.hxx #include TopExp_Explorer.hxx #include Standard_TypeDef.hxx #include vtkRenderer.h #include vtkRenderer.h #include vtkRenderWindowInteractor.h #include vtkProperty.h #include vtkTriangle.h void BuildMesh(vtkRenderer* render, const TopoDS_Face face, double deflection 0.1) {TopLoc_Location location;//BRepMesh::Mesh(face, deflection);该函数已经弃用BRepMesh_IncrementalMesh(face, deflection);Handle_Poly_Triangulation triFace BRep_Tool::Triangulation(face, location);Standard_Integer nTriangles triFace-NbTriangles();gp_Pnt vertex1;gp_Pnt vertex2;gp_Pnt vertex3;Standard_Integer nVertexIndex1 0;Standard_Integer nVertexIndex2 0;Standard_Integer nVertexIndex3 0;TColgp_Array1OfPnt nodes(1, triFace-NbNodes());Poly_Array1OfTriangle triangles(1, triFace-NbTriangles());nodes triFace-Nodes();triangles triFace-Triangles();vtkSmartPointervtkPoints points vtkSmartPointervtkPoints::New();vtkSmartPointervtkCellArray cells vtkSmartPointervtkCellArray::New();vtkSmartPointervtkPolyData polyData vtkSmartPointervtkPolyData::New();points-Allocate(nTriangles * 3);cells-Allocate(nTriangles);int id 0;for (Standard_Integer i 1; i nTriangles; i){Poly_Triangle aTriangle triangles.Value(i);aTriangle.Get(nVertexIndex1, nVertexIndex2, nVertexIndex3);vertex1 nodes.Value(nVertexIndex1).Transformed(location.Transformation());vertex2 nodes.Value(nVertexIndex2).Transformed(location.Transformation());vertex3 nodes.Value(nVertexIndex3).Transformed(location.Transformation());points-InsertNextPoint(vertex1.X(), vertex1.Y(), vertex1.Z());points-InsertNextPoint(vertex2.X(), vertex2.Y(), vertex2.Z());points-InsertNextPoint(vertex3.X(), vertex3.Y(), vertex3.Z());vtkSmartPointervtkTriangle triangle vtkSmartPointervtkTriangle::New();triangle-GetPointIds()-SetId(0, id * 3);triangle-GetPointIds()-SetId(1, id * 3 1);triangle-GetPointIds()-SetId(2, id * 3 2);// Add the triangle to a cell arraycells-InsertNextCell(triangle);id;}polyData-SetPoints(points);polyData-SetPolys(cells);vtkSmartPointervtkPolyDataMapper sourceMapper vtkSmartPointervtkPolyDataMapper::New();//setInput函数已经弃用使用SetInputData()sourceMapper-SetInputData(polyData);vtkSmartPointervtkActor sourceActor vtkSmartPointervtkActor::New();sourceActor-SetMapper(sourceMapper);sourceActor-GetProperty()-SetColor(1, 0, 0);render-AddActor(sourceActor); } void BuildScene(vtkRenderer* renderer, Handle(TopTools_HSequenceOfShape) aHSequenceOfShape) {Standard_Integer index aHSequenceOfShape-Length();TopoDS_Shape theCompSolid aHSequenceOfShape-ChangeValue(index);} } //这里添加三行代码 VTK_MODULE_INIT(vtkRenderingOpenGL2); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkInteractionStyle);int main(void){vtkSmartPointervtkRenderer renderer vtkSmartPointervtkRenderer::New();vtkSmartPointervtkRenderWindow renderWindow vtkSmartPointervtkRenderWindow::New();renderWindow-AddRenderer(renderer);Standard_Integer status ReadIGES(cylinder.igs, aHSequenceOfShape);cout return status: status endl;BuildScene(renderer, aHSequenceOfShape);renderer-SetBackground(1, 1, 1);// Render and interactrenderWindow-Render();renderWindowInteractor-Start();return 0;} 运行结果 三、在线协助 如需安装运行环境或远程调试见文章底部个人 QQ 名片由专业技术人员远程协助 1远程安装运行环境代码调试 2Visual Studio, Qt, C, Python编程语言入门指导 3界面美化 4软件制作 当前文章连接https://blog.csdn.net/alicema1111/article/details/132666851 个人博客主页https://blog.csdn.net/alicema1111?typeblog 博主所有文章点这里https://blog.csdn.net/alicema1111?typeblog
http://www.dnsts.com.cn/news/5446.html

相关文章:

  • 苏州正规做网站公司济南响应式网站开发
  • 0基础学网站开发网站备案 法人
  • 网站子站怎么建设企业网站排行榜
  • wordpress 仿煎蛋网站关键词搜索排名优化
  • 做网站去什么公司咸鱼app引导页面设计模板
  • 湖北省建设交易协会网站硬件工程师需要学哪些
  • 网站关键词seo费用wordpress 表格处理
  • 2W网站建设的作用wordpress post link
  • 制作网站主题360建筑网一级消防工程师招聘
  • 网站dns服务360建筑网上怎么删除投递信息
  • 重庆专业网站建设首页排名微信管理平台
  • 网站建设分金手指排名十二肥城网站建设广州外地车牌
  • 网站建设远程培训淘宝流量网站
  • 莒南做网站网站海外推广平台
  • 哪个公司网站建设好韩国怎么出线
  • 一个网站如何做盈利贡井移动网站建设
  • 网站建设潮州wordpress 负载
  • php网站开发工程师任职要求新开网站
  • 网站建设之网页制作语言基础网站调用flash
  • 网站建设公司简介模板下载做关键词优化的公司
  • wordpress企业建站流程嘉兴seo网站优化
  • 外贸建站网站公司做网站软文怎么弄
  • 上市公司做家具网站盘锦网站建设优化
  • 学网站建设有用吗网站好友邀请链接生成 php
  • 哪里有工程做的网站wordpress是是什么技术
  • 室内设计公司职位整站seo外包
  • 哪个网站做简历移动网站 做优化
  • 怎么创建网站校园表白墙浙江商城网站建设
  • 天津网站建设是什么做网站公司促销海报
  • 免费推广网站58佛山网站开发哪家好