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

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 閱讀(8251) 評論(0)  編輯 收藏 引用 所屬分類: 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>
            欧美aⅴ99久久黑人专区| 美女精品网站| 国产一区二区三区在线免费观看 | 欧美影院在线播放| 亚洲影音先锋| 欧美一区二区三区在线看 | 亚洲激情av在线| 99视频热这里只有精品免费| 一本色道久久综合亚洲精品婷婷| 一区二区三区产品免费精品久久75| 在线亚洲伦理| 久久久久一区二区三区四区| 欧美成人一区二区在线 | 久久久久.com| 亚洲第一精品福利| 亚洲精品久久久久久下一站| 国产精品国内视频| 国产亚洲精品bt天堂精选| 在线观看91精品国产入口| 一本色道久久综合亚洲精品婷婷| 亚洲伊人伊色伊影伊综合网| 久久久久成人精品| 亚洲人成人77777线观看| 亚洲欧美日韩中文视频| 欧美精品一区在线| 樱桃视频在线观看一区| 亚洲免费一在线| 欧美国产日韩免费| 亚洲一区二区三区欧美 | 欧美极品aⅴ影院| 国产精品日韩在线播放| 亚洲精品乱码久久久久久蜜桃麻豆| 亚洲欧美日韩国产| 亚洲国产天堂久久国产91| 香蕉久久夜色精品国产| 欧美伦理视频网站| 伊人成人在线| 欧美日韩国产精品成人| 国产午夜精品视频免费不卡69堂| 亚洲美女av黄| 蜜桃久久精品一区二区| 亚洲专区一区二区三区| 欧美日韩在线免费视频| 亚洲人成免费| 欧美激情a∨在线视频播放| 欧美一区二区三区视频免费播放| 欧美日韩一区三区四区| 亚洲免费成人av| 亚洲国产免费看| 蜜臀99久久精品久久久久久软件| 国产亚洲精品v| 午夜一区二区三区不卡视频| 日韩视频中文字幕| 欧美区国产区| 一本久久青青| 亚洲精品麻豆| 欧美区国产区| 亚洲午夜免费视频| 99在线精品免费视频九九视| 欧美日韩国产成人精品| 99re6这里只有精品| 亚洲精品一区二区三区av| 欧美激情第一页xxx| 亚洲巨乳在线| 日韩视频在线观看国产| 国产精品高清在线| 欧美一级视频一区二区| 亚洲视频在线免费观看| 国产精品久久久久永久免费观看| 亚洲在线免费观看| 亚洲一区3d动漫同人无遮挡| 国产乱码精品一区二区三区不卡| 欧美一乱一性一交一视频| 亚洲欧美日韩综合国产aⅴ| 国产色爱av资源综合区| 麻豆精品一区二区综合av| 欧美aaa级| 亚洲欧美国产精品桃花| 欧美亚洲在线播放| 亚洲国产高清高潮精品美女| 亚洲欧洲另类| 国产精品综合av一区二区国产馆| 久久精品一区中文字幕| 久久久久久伊人| 夜色激情一区二区| 午夜精品久久久| 亚洲电影免费观看高清完整版| 91久久精品国产91性色| 国产精品视频xxxx| 美国三级日本三级久久99| 欧美激情1区2区3区| 午夜精品久久久| 媚黑女一区二区| 午夜激情综合网| 免费视频一区| 欧美一区二区视频在线观看2020| 久久女同精品一区二区| 亚洲一区二区三区精品视频 | 亚洲美女av在线播放| 一区二区三区高清不卡| 国产真实乱偷精品视频免| 亚洲国产成人av| 国产精品午夜电影| 亚洲激情不卡| 黄色成人在线网址| 中文日韩在线| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲丁香婷深爱综合| 日韩天堂av| 在线观看欧美亚洲| 亚洲欧美国产高清| 一区二区不卡在线视频 午夜欧美不卡在| 在线综合亚洲| 亚洲精品免费在线| 久久久精品性| 久久精品30| 国产精品久久影院| 亚洲精品视频在线观看免费| 伊人久久综合| 欧美在线|欧美| 性欧美18~19sex高清播放| 欧美精品久久一区| 欧美高清视频www夜色资源网| 国产精品一区二区久久| 亚洲精品在线看| 亚洲精品一区二区三区樱花 | 国产日韩成人精品| 中文亚洲字幕| 亚洲影音一区| 欧美三日本三级少妇三2023| 亚洲国产天堂久久综合网| 影音欧美亚洲| 久久久久久亚洲精品不卡4k岛国| 久久精品国产精品亚洲精品| 国产精品黄页免费高清在线观看| 亚洲另类在线视频| 一区二区三区高清视频在线观看| 欧美精品亚洲精品| 亚洲狼人综合| 亚洲午夜伦理| 国产精品国产三级国产专播品爱网 | 精品二区久久| 久久免费视频观看| 欧美电影免费网站| 亚洲精品中文字幕有码专区| 欧美成人资源| 亚洲三级视频| 亚洲愉拍自拍另类高清精品| 国产精品第一页第二页第三页| 亚洲色在线视频| 欧美在线播放视频| 精品av久久707| 免费看亚洲片| 在线中文字幕一区| 国产精品成人国产乱一区| 亚洲永久字幕| 另类图片国产| 亚洲精品综合精品自拍| 欧美色播在线播放| 欧美一级网站| 亚洲黄色影片| 香蕉成人伊视频在线观看| 好吊妞**欧美| 欧美日韩第一页| 香蕉久久夜色精品| 欧美激情久久久| 亚洲欧美大片| 亚洲福利电影| 国产精品免费电影| 美女精品视频一区| 亚洲一区二区三区四区五区黄| 麻豆国产精品va在线观看不卡| 一本色道久久综合亚洲精品不 | 久久国产成人| a91a精品视频在线观看| 国产亚洲精品久久久久久| 女生裸体视频一区二区三区| 亚洲一区三区视频在线观看| 欧美成人精品三级在线观看| 亚洲天堂久久| 亚洲福利一区| 国产麻豆9l精品三级站| 欧美国产另类| 久久久久久综合网天天| 亚洲午夜激情免费视频| 亚洲国产精品一区在线观看不卡| 亚洲一区久久| 亚洲日本在线观看| 国产一区二区三区久久久| 欧美日韩中文字幕在线视频| 久久婷婷麻豆| 午夜国产精品视频| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美高清在线| 久久久国产成人精品| 亚洲女人av| 一区二区三区精品久久久| 亚洲日本va午夜在线影院| 尤物在线观看一区| 国模大胆一区二区三区|