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

eryar

PipeCAD - Plant Piping Design Software.
PlantAssistant - Translate AVEVA RVM/SP3D VUE to glTF, STEP, etc.
posts - 606, comments - 590, trackbacks - 0, articles - 0

A Simple OpenCASCADE Qt Demo-occQt

Posted on 2014-12-29 23:52 eryar 閱讀(8290) 評論(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://www.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>
            亚洲久久成人| 亚洲国产美国国产综合一区二区| 999亚洲国产精| 欧美大片在线观看一区| 久久久不卡网国产精品一区| 国内自拍视频一区二区三区| 久久在线免费观看视频| 久久裸体艺术| 亚洲成色777777女色窝| 亚洲国产cao| 欧美aⅴ99久久黑人专区| 亚洲国产一区二区三区青草影视| 欧美国产日韩免费| 欧美伦理影院| 欧美中文字幕在线播放| 久久精品国产免费看久久精品| 1769国内精品视频在线播放| 亚洲日韩第九十九页| 欧美日一区二区三区在线观看国产免 | 欧美一级网站| 久久久久国色av免费看影院| 亚洲精品久久7777| 亚洲图片欧洲图片av| 国产一区亚洲| 亚洲欧洲日产国产综合网| 国产精品国产三级国产普通话蜜臀 | 亚洲精品裸体| 午夜精品在线| 99国产一区| 欧美在线观看www| 一本色道久久综合| 久久精品国产欧美激情| 一区二区日本视频| 欧美在线三区| 亚洲一区3d动漫同人无遮挡| 久久国产视频网| 亚洲一级黄色av| 麻豆91精品| 久久爱www| 欧美四级伦理在线| 亚洲国产成人午夜在线一区| 国产乱码精品一区二区三区忘忧草| 欧美chengren| 国产日韩欧美在线视频观看| 亚洲美女av网站| 亚洲国产成人精品视频 | 午夜在线精品| 欧美国产亚洲视频| 美女精品国产| 国产欧美一区二区精品性色| 日韩一级片网址| 亚洲欧洲精品一区二区三区波多野1战4 | 久久久久久久久久久久久久一区| 欧美日韩成人网| 亚洲黄色在线看| 亚洲观看高清完整版在线观看| 小处雏高清一区二区三区| 亚洲永久免费观看| 欧美精品一区二区三区一线天视频 | 性欧美暴力猛交另类hd| 欧美视频官网| 亚洲看片一区| 在线综合欧美| 欧美视频久久| 一区二区三区视频免费在线观看| 亚洲精品视频免费观看| 欧美风情在线| 亚洲另类视频| 亚洲视频欧美在线| 欧美视频在线播放| 夜夜嗨av色综合久久久综合网| 99精品欧美| 欧美日一区二区在线观看 | 亚洲精品乱码久久久久久按摩观| 亚洲国产另类精品专区| 久久综合久色欧美综合狠狠| 嫩草国产精品入口| 最新中文字幕一区二区三区| 欧美成人dvd在线视频| 亚洲激情视频| 中日韩在线视频| 国产精品日本欧美一区二区三区| 一区二区三区四区五区在线| 香蕉久久国产| 国语精品中文字幕| 美日韩精品免费观看视频| 亚洲国产99| 亚洲在线1234| 韩国一区二区三区在线观看| 久久人人97超碰人人澡爱香蕉| 欧美不卡激情三级在线观看| 亚洲美女av黄| 国产精品免费一区豆花| 久久精品国产一区二区三| 欧美激情第3页| 亚洲一区二区欧美日韩| 国产亚洲福利社区一区| 另类尿喷潮videofree| 91久久国产综合久久| 亚洲欧美日韩国产中文 | 欧美理论在线播放| 亚洲一区二区免费在线| 男人天堂欧美日韩| 亚洲影音先锋| 亚洲国产mv| 国产精品嫩草久久久久| 久久在线视频| 亚洲免费视频网站| 亚洲黄色免费网站| 久久不射中文字幕| 99re热这里只有精品视频| 国产嫩草影院久久久久| 欧美电影在线观看| 欧美一区二区三区四区在线观看地址| 欧美成年网站| 欧美在线播放一区二区| 99re亚洲国产精品| 黄色成人精品网站| 国产精品人人爽人人做我的可爱| 久久先锋影音av| 亚洲欧美日韩成人高清在线一区| 亚洲高清久久| 免费成人毛片| 久久国产精品99精品国产| 中文国产亚洲喷潮| 亚洲国产一区二区a毛片| 国产亚洲欧洲| 国产欧美日韩91| 欧美日韩亚洲综合在线| 美日韩丰满少妇在线观看| 欧美在线黄色| 亚洲欧美清纯在线制服| 一区二区福利| 一本久久综合| 亚洲免费观看高清完整版在线观看熊| 女生裸体视频一区二区三区| 久久久久久久久久久久久女国产乱 | 亚洲精品女人| 亚洲精品乱码久久久久久久久| 国内综合精品午夜久久资源| 国产欧美精品日韩精品| 国产精品国产三级国产普通话三级| 欧美激情一区二区在线 | 久久久久久九九九九| 午夜精品久久久久影视| 亚洲欧美日韩国产一区| 亚洲一区在线免费观看| 亚洲综合成人婷婷小说| 亚洲一区欧美| 欧美亚洲视频一区二区| 性久久久久久| 久久久噜噜噜久久| 久久夜色精品国产| 欧美高清视频一区二区| 欧美激情中文字幕在线| 欧美日韩一区二区三区| 国产精品麻豆成人av电影艾秋 | 久久国产精品久久久久久久久久 | 在线午夜精品自拍| 一区二区三区高清在线 | 久久蜜桃资源一区二区老牛| 久久综合色影院| 男人的天堂亚洲在线| 亚洲高清自拍| 在线综合视频| 欧美影院在线| 欧美电影资源| 国产精品区二区三区日本| 国产视频精品xxxx| 亚洲电影在线观看| 亚洲免费观看| 亚洲欧美日韩视频一区| 久久婷婷蜜乳一本欲蜜臀| 亚洲福利在线观看| 亚洲午夜精品福利| 久久精品国产77777蜜臀| 欧美成人免费在线视频| 国产精品高潮呻吟久久| 精品成人国产| 一区二区国产精品| 久久久久久伊人| 亚洲破处大片| 欧美在线影院在线视频| 欧美日产一区二区三区在线观看| 国产欧美日韩精品丝袜高跟鞋| 在线欧美三区| 午夜精品免费在线| 欧美激情五月| 亚洲欧美日韩一区二区三区在线观看 | 亚洲人体偷拍| 久久不见久久见免费视频1| 欧美极品在线播放| 国内精品伊人久久久久av一坑| 亚洲美女在线观看| 久久夜色精品| 亚洲一级黄色av| 欧美日本在线| 亚洲第一精品电影| 久久国产福利国产秒拍| 艳妇臀荡乳欲伦亚洲一区|