青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

eryar

PipeCAD - Plant Piping Design Software.
RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
posts - 603, comments - 590, trackbacks - 0, articles - 0

A Simple OpenCASCADE Qt Demo-occQt

Posted on 2014-12-29 23:52 eryar 閱讀(8244) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): 2.OpenCASCADE

A Simple OpenCASCADE Qt Demo-occQt

eryar@163.com

Abstract. OpenCASCADE have provided the Qt samples in the samples directory, but they are a little complicated. So I decide write a simple OpenCASCADE Qt demo for the OpenCASCADE beginners. 

Key Words. OpenCASCADE6.8.0, Qt5.4

1. Introduction

OpenCASCADE is a software development platform providing services for 3D surface and solid modeling, CAD data exchange, and visualization. Most of OCCT functionality is avaiable in the form of C++ libraries. OCCT can be best applied in development of software dealing with 3D modeling(CAD), manufacturing/measuring(CAM) or numerical simulation(CAE). 

OpenCASCADE Technology is free software; you can redistribute it and or modify it under the terms of the GNU Lesser General Public License(LGPL) version 2.1, with additional exception. You can get the OpenCASCADE from here: http://www.opencascade.org/

wps_clip_image-20312

Figure 1.1 OpenCASCADE6.8.0 Release Notes

Qt is a cross-platform application framework that is widely used for developing application software with graphical user interface(GUI). Qt is free and open source software distributed under the terms of the GNU Lesser General Public License. 

Qt Services

Qt is a powerful framework that lets you create stunning user interfaces with amazing performance. We want to help you to achieve optimal results by using Qt building blocks in the best possible way, which is why we offer an extensive range of Qt advisory services. 

Code Less, Create More. Easily create connected devices, UIs and applications that run anywhere on any device. 

wps_clip_image-25919

Figure 1.2 Qt Ads

You can develop your program in the following manner:

wps_clip_image-19414

Figure 1.3 A application based on Qt and OpenCASCADE

You can use Qt for the GUI development, and for data management such as restore data from file or undo/redo support, you can choose OCAF, and for modeling algorithms, you can use OpenCASCADE. 

You can also use the Model/View/Controller of Qt to manage the data and undo/redo mechnism, to accelarate the developing.

OpenCASCADE have provided many samples to show its functions, but there are a lots codes, it is a little complicated for the beginner. I write a simple program to try OpenCASCADE in a straightforward way. I hope the demo can help you to understand the usage of OpenCASCADE.

The demo is based on OpenCASCADE6.8.0 and Qt5.4. Because of there are many bug fixes in OpenCASCADE new version6.8.0, especially the visualization module. So I update the code for the previous demo Qt with OpenCASCADE and add something new: 

http://m.shnenglu.com/eryar/archive/2013/08/18/202617.aspx

2.View Operations

In occQt there are three operations to manipulate the view: pan, zoom and rotate, the following picture is the main window of occQt:

wps_clip_image-12250

Figure 2.1 occQt GUI

The options is for the middle button of the mouse, you can dragged the middle button of the mouse to pan, zoom and rotate the view. And the mouse left button is used for the pick and multi-select operation, single click you can pick a shape; drag left button will select all the shapes in the rectangle.

wps_clip_image-19038

Figure 2.2 Click mouse left button to pick

wps_clip_image-15699

Figure 2.3 Drag mouse left button to multi-select

The selected shapes will be hilighted, but now do not provide any operations for the selected shapes.

And also provide the Reset and Fit All function for the view:

wps_clip_image-6756

Figure 2.4 Reset and Fit all for the view

3.Make Primitives

OpenCASCADE provides simple API for the construction of primitives, such as box, cone, sphere, cylinder, and torus, .etc. You can make a primitive by a simple class in OpenCASCADE, the sample code as follows:

TopoDS_Shape aTopoBox = BRepPrimAPI_MakeBox(3.04.05.0);
TopoDS_Shape aTopoCone 
= BRepPrimAPI_MakeCone(3.00.05.0);
TopoDS_Shape aTopoSphere 
= BRepPrimAPI_MakeSphere(3.0);
TopoDS_Shape aTopoCylinder 
= BRepPrimAPI_MakeCylinder(3.05.0);
TopoDS_Shape aTopoTorus 
= BRepPrimAPI_MakeTorus(3.01.0);

And the shapes in the viewer is in the following picture:

wps_clip_image-10519

Figure 3.1 Primitives in occQt

4.Modeling Algorithms

Modeling algorithms is the outstanding advantage of OpenCASCADE. But in occQt just give a example for the usage, you can check the documents and OpenCASCADE reference manual to have a look. The modeling algorithms in the occQt are:

v Fillet;

v Chamfer; 

v Extrude;

v Revol;

v loft.

wps_clip_image-29758

Figure 4.1 Modeling Algorithms in occQt

5.Boolean Operations

Boolean operations are used to create new shapes from the combinations of two shapes,

wps_clip_image-12858

The class to perform this is simple to use, they are:

TopoDS_Shape aFusedShape = BRepAlgoAPI_Fuse(S1, S2);
TopoDS_Shape aCommonShape 
= BRepAlgoAPI_Common(S1, S2);
TopoDS_Shape aCuttedShape 
= BRepAlgoAPI_Cut(S1, S2);

You can try this in occQt:

wps_clip_image-19041

Figure 5.1 Boolean operations in occQt

6. Conclusion

From the simple code demo, I hope it will help you to understand OpenCASCADE easily. Thanks for OpenCASCADE and Qt the amazing work. 

I put the code to GitHub: https://github.com/eryar/occQt/. You can download and have a try, then you can feedback or track the modification of occQt.

Enjoy!

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            韩国一区二区三区美女美女秀| 亚洲精品一区在线观看| 久久久91精品国产一区二区三区 | 一区二区91| 欧美成人精品高清在线播放| 午夜欧美视频| 久久久久久**毛片大全| 欧美一区二区在线看| 午夜精品偷拍| 欧美在线视频一区| 久久久国产视频91| 免费欧美高清视频| 亚洲国产精品久久久| 久久精品久久综合| 欧美成人在线免费视频| 久久国产精品久久久久久| 99伊人成综合| 亚洲欧美中日韩| 久久久久国产精品一区三寸| 欧美在线看片| 欧美国产91| 亚洲午夜精品久久久久久app| 日韩亚洲欧美一区| 欧美在线视屏| 欧美日韩国产成人高清视频| 国产精品毛片在线看| 国产乱人伦精品一区二区 | 亚洲精品一区二| 亚洲精品乱码久久久久久蜜桃麻豆| 久久久久一区二区三区| 免费中文日韩| 亚洲校园激情| 欧美另类极品videosbest最新版本| 欧美成人久久| 亚洲午夜免费视频| 欧美承认网站| 尤物精品在线| 久久精品官网| 一区二区免费在线观看| 蜜臀a∨国产成人精品| 亚洲欧美区自拍先锋| 美国成人毛片| 午夜精品免费视频| 国产精品一级在线| 亚洲神马久久| 亚洲无限乱码一二三四麻| 美女视频黄免费的久久| 在线成人av| 欧美在线你懂的| 欧美一级视频| 国内精品亚洲| 亚洲国产成人在线| 欧美激情片在线观看| 一本久久知道综合久久| 欧美福利专区| 欧美高清你懂得| 亚洲一区二区三区影院| 一区二区欧美精品| 国产精品国产三级欧美二区| 99re6这里只有精品| 亚洲国产精品一区制服丝袜 | 国产三级精品在线不卡| 久久久久.com| 欧美日韩日本国产亚洲在线| 欧美成人一区二区三区片免费| 亚洲免费av电影| 亚洲女爱视频在线| 欧美涩涩视频| 国产欧美亚洲一区| 免费成人黄色片| 欧美日本免费| 久久国产精品久久久久久| 欧美xart系列高清| 欧美一区二区精品| 欧美激情综合亚洲一二区 | 午夜精品在线看| 亚洲视频 欧洲视频| 欧美不卡激情三级在线观看| 欧美一区激情视频在线观看| 欧美日韩aaaaa| 欧美黄色日本| 亚洲精品日本| 欧美欧美天天天天操| 亚洲日本视频| 中文一区二区| 国产精品热久久久久夜色精品三区| 欧美aa在线视频| 亚洲国产精品高清久久久| 久久国产精品久久久久久电车| 校园春色国产精品| 国产欧美一区二区三区在线老狼 | 最新国产成人在线观看| 影视先锋久久| 欧美成人一二三| 99精品国产福利在线观看免费| 国产精品久久中文| 久久精品国产99| 亚洲国产日韩精品| 午夜精品久久99蜜桃的功能介绍| 国产精品高潮在线| 亚洲自拍都市欧美小说| 欧美日韩三级一区二区| 午夜精品av| 亚洲精品偷拍| 老司机一区二区三区| 99在线精品视频| 国产片一区二区| 欧美激情 亚洲a∨综合| 欧美一区二区视频观看视频| 亚洲欧洲日本在线| 免费成人av在线看| 亚洲四色影视在线观看| 性欧美大战久久久久久久免费观看 | 久久九九99| 亚洲一区二区三区在线看| 国产一区日韩二区欧美三区| 亚洲欧美激情四射在线日| 亚洲麻豆一区| 一本色道**综合亚洲精品蜜桃冫| 国语自产精品视频在线看一大j8 | 亚洲精品网站在线播放gif| 亚洲一区欧美二区| 亚洲最新视频在线播放| 欧美午夜不卡视频| 欧美日韩天天操| 国产精品国产三级国产专播精品人| 欧美成人激情在线| 欧美激情一区二区| 欧美午夜宅男影院| 国产精品久久久久久久久婷婷| 欧美成人免费在线| 免费观看一级特黄欧美大片| 欧美高清在线播放| 一本高清dvd不卡在线观看| 亚洲日本一区二区三区| 99精品国产福利在线观看免费| 国产精品99久久久久久白浆小说| 亚洲无限av看| 欧美a级片一区| 国产精品久久久久久久久| 国产亚洲二区| 亚洲婷婷综合色高清在线| 欧美专区日韩专区| 亚洲人成在线观看| 性欧美videos另类喷潮| 欧美另类69精品久久久久9999| 国产精品国产三级国产专播精品人| 国产伪娘ts一区| 亚洲免费在线播放| 亚洲青涩在线| 欧美激情女人20p| 狠狠爱www人成狠狠爱综合网| 一本色道久久综合亚洲精品婷婷 | 欧美淫片网站| 国产精品久久久久久久一区探花| 亚洲国产日韩一区| 欧美成年人在线观看| 久久综合久久综合九色| 国产日韩欧美三级| 欧美一区二区视频在线观看| 日韩午夜av| 国产精品视频一二| 久久国产毛片| 久久嫩草精品久久久久| 激情成人亚洲| 亚洲国产一区在线观看| 欧美久久久久久久久| 亚洲一区二区三区乱码aⅴ| 亚洲视频图片小说| 亚洲精品网站在线播放gif| 欧美日韩一区在线观看| 亚洲视频在线观看| 久久国产精品高清| 亚洲私拍自拍| 欧美一区二区免费视频| 亚洲国产清纯| 亚洲欧美激情一区二区| 亚洲欧洲一区二区在线观看| 一区二区三区成人精品| 精品成人一区二区三区| 亚洲日本视频| 黑人巨大精品欧美一区二区小视频| 欧美激情成人在线视频| 国产精品国产| 91久久综合| 亚洲人成毛片在线播放| 欧美在线播放高清精品| 亚洲自拍三区| 欧美日韩999| 亚洲国产日韩欧美在线图片| 激情久久久久| 欧美专区日韩视频| 欧美一区视频| 国产欧美日韩综合精品二区| 99re热这里只有精品视频| 亚洲精品美女久久久久| 免费观看国产成人| 欧美岛国激情| 亚洲精品日韩在线观看| 欧美精品色网|