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

网上书城网站开发方案老黄代码

网上书城网站开发方案,老黄代码,新建的网站怎么上首页,网站接任务来做​这是用Open CASCADE Technology (OCCT)库来创建一个管道模型的示例。OCCT是一个开源的几何建模库#xff0c;广泛应用于CAD/CAM/CAE和其他几何建模应用中。 在下面的代码中#xff0c;首先创建了一些点#xff0c;并用这些点来构建B样条曲线#xff0c;进而创建边(Edges…​这是用Open CASCADE Technology (OCCT)库来创建一个管道模型的示例。OCCT是一个开源的几何建模库广泛应用于CAD/CAM/CAE和其他几何建模应用中。 在下面的代码中首先创建了一些点并用这些点来构建B样条曲线进而创建边(Edges)。然后你将这些边缘添加到线(Wire)中。接着创建了一个圆形作为管道的剖面并将这个剖面用于生成管道。最后使用Viewer类来显示生成的管道模型。 #include TColgp_Array1OfPnt.hxx #include BRepBuilderAPI_MakeWire.hxx #include gp_Pnt.hxx #includeViewer.h #include GeomAPI_PointsToBSpline.hxx #include Geom_BsplineCurve.hxx #include BRepBuilderAPI_MakeEdge.hxx #include TopoDS_Wire.hxx #include gp_Ax2.hxx #include gp_Circ.hxx #include BRepBuilderAPI_MakeFace.hxx #include TopoDS_Face.hxx #include BRepOffsetAPI_MakePipe.hxx ​ int main(int argc, char* argv[]) {TColgp_Array1OfPnt array TColgp_Array1OfPnt(1, 2);BRepBuilderAPI_MakeWire makeWire BRepBuilderAPI_MakeWire(); ​gp_Pnt point1 gp_Pnt(0, 0, 0);gp_Pnt point2 gp_Pnt(0, 0, 1);array.SetValue(1, point1);array.SetValue(2, point2);GeomAPI_PointsToBSpline spline GeomAPI_PointsToBSpline(array);TopoDS_Edge edge BRepBuilderAPI_MakeEdge(spline.Curve()).Edge(); ​makeWire.Add(edge); ​point1 gp_Pnt(0, 0, 1);point2 gp_Pnt(0, 1, 2);array.SetValue(1, point1);array.SetValue(2, point2);spline GeomAPI_PointsToBSpline(array);edge BRepBuilderAPI_MakeEdge(spline.Curve()).Edge(); ​makeWire.Add(edge); ​point1 gp_Pnt(0, 1, 2);point2 gp_Pnt(0, 2, 2);array.SetValue(1, point1);array.SetValue(2, point2);spline GeomAPI_PointsToBSpline(array);edge BRepBuilderAPI_MakeEdge(spline.Curve()).Edge(); ​makeWire.Add(edge); ​makeWire.Build();TopoDS_Wire wire makeWire.Wire(); ​//the bspline profile.Profile mist be a wire / facegp_Pnt point gp_Pnt(0, 0, 0);gp_Dir dir gp_Dir(0, 0, 1);gp_Circ circle gp_Circ(gp_Ax2(point, dir), 0.2);TopoDS_Edge profile_edge BRepBuilderAPI_MakeEdge(circle).Edge();TopoDS_Wire profile_wire BRepBuilderAPI_MakeWire(profile_edge).Wire();TopoDS_Face profile_face BRepBuilderAPI_MakeFace(profile_wire).Face(); ​//pipeTopoDS_Shape pipe BRepOffsetAPI_MakePipe(wire, profile_face).Shape();Viewer vout(50, 50, 500, 500);vout pipe;vout.StartMessageLoop();return 0; }
http://www.pierceye.com/news/391237/

相关文章:

  • 做黑帽需不需要搭建网站没有做等保的网站不能上线对吗
  • 怎么在微信建立公众号郑州专业seo首选
  • 万网网站后台国家域名
  • 怎么做 niche网站临港注册公司优惠政策
  • 做网站开发怎么做网站推广的步骤
  • 网站空间文件删不掉软文免费发布平台
  • 电子商务网站开发教程论文推广app平台有哪些
  • 郑州专业的网站建设优化自己的网站
  • 申请渠道门户网站是什么意思微信公众平台推广网站
  • 公司网站未备案公众号如何推广产品
  • 网站建设服务器环境配置郑州网站建设企业名录
  • e福州官方网站wordpress注册目录
  • 国际外贸网络交易平台网页seo搜索引擎优化
  • 做网做网站建设网站建设图片怎么切
  • 国外数码印花图案设计网站36kr wordpress
  • 上海网站建设设计公司zencart 网站入侵
  • 阜蒙县自治区建设学校网站汉中市住建局建设厅网站官网
  • windows 2008 iis怎么搭建网站手机网站模板建站
  • 优设网官网首页seo教程搜索引擎优化
  • 做问卷给钱的网站页面设计结课总结
  • 洛阳集团网站建设wordpress 深度优化
  • python做网站缺点湛江市建网站
  • 济南网站建设(选聚搜网络)在线购物网站建设
  • 珠海专业做网站公司昆明搜索引擎推广
  • 阿里云 建设网站怎么样百度推广一级代理商名单
  • 湛江网站制作网站吉林省四平市网站建设
  • 酒店网站建设公司推广方法有哪些
  • 网站建设免备案免费空间wordpress在线教育主题购买
  • 网站后台验证码不显示成都市建设工程施工安监站网站
  • 榆林网站优化做图的网站