95992828九五至尊2

OpenCASCADE JT Assistant

四月 2nd, 2019  |  882828九五至尊手机版

OpenCASCADE JT Assistant

eryar@163.com

Abstract. Siemens’ JT data
format accepted as the world’s first ISO international standard for
viewing and sharing lightweight 3D product information. OpenCASCADE JT
Assistant is a viewer for files in JT format.

Key Words. Simens JT, JtOpen,
OpenCASCADE, Jt Assistant

1. Introduction

西 传达的JT(西门子(Siemens)’s JT data
format)文件格式是二个轻量级的数据调换格式,可用来在产品生命周期的各样阶段实时查看或共享产品的3D消息,并且一度通过ISO的确认作为了国际
标准。通过将大气的CAD系统中的3D产品数据无缝过渡,JT抓牢了产品设计的搭档,并且产品生命周期管理种类(Product
Lifecycle Management,
PLM)也支撑这一个专业。作为第一个轻量级的3D数据可视化世界ISO国际标准,JT将使创设厂商免去了对种种三个维度数据交流格式的正视,并可轻松扩大3D
可视化的选择,以便于使设计的协同性。

OpenCASCADE JT
Assistant是二个JT格式数据可视化的小工具。由于JT格式在工业上的广泛应用,高品质、轻量级、灵活的用来三个维度产品可视化的文件格式。JT文件
可含蓄工业规模的零部件(多达一千00构件)。某些船厂的PDM中就使用到了JT格式。JT
Assistant处理JT网格匡助延迟加载(late loading),还利用LOD(Level Of
Detail)技术来拉长展现品质。

眼前只提供了试用程序,以往OpenCASCADE准备提供开源版本的,仅支持GPL及商用License。Download
binaries for Windows: ZIP archive (32
bits
, 64
bits
).
下载后用Dependency 沃克打开查看引用关系如下图所示:

882828九五至尊手机版 1

Figure 1.1 JT Assistant in Dependency Walker

由上海体育场合能够,JT
Assistant界面上用到了Qt伍,关于OpenCASCADE的库只用到TKernel和TKMath。展现直接行使了OpenGL,未有用到Visualization中的库。

2.Supported JT data

现阶段JT Assistant补助JT
八.0-九.五,可显示网格及组装结构。全体式和非全体式的组件都是支撑的。借使想测试一下主次,可从如下地址下载到1些JT文件:

v Siemens web site:

http://www.plm.automation.siemens.com/en_us/products/open/jtopen/technology/jt_showcase.shtml

v Grab CAD Site: http://grabcad.com/library/software/jt

882828九五至尊手机版 2

Figure 2.1 Navigation and Selection in the assembly structure

如上海体育场所所示,三个维度视图中的北京蓝高亮部分与组装树上的Part是呼应的,通过鼠标在三个维度视图中挑选模型的还要,模型对应的组件树上部件也是同被入选。

882828九五至尊手机版 3

Figure 2.2 Submarine model 

882828九五至尊手机版 4

Figure 2.3 Wavecar model

从上海教室中能够发现,不知是其1JT文件不正常,仍旧JT
Assistant程序有失常态,突显得稍微不寻常。

882828九五至尊手机版 5

Figure 2.4 Wingflap model

882828九五至尊手机版 6

Figure 2.5 Bufferfly Valve model

882828九五至尊手机版 7

Figure 2.6 conrod Model

3.Conclusion

由上海体育地方能够,OpenCASCADE JT
Assistant的呈现效果照旧很不错的,颜色、光照等调得很科学。用Qt来支付界面,依然相比较便于,且效果也很不利。

有做工厂/船厂PDM系统的,固然提到到三个维度产品数量的可视化,能够设想使用JT这么些轻量化的格式。

正文主假使翻译了OpenCASCADE网址上的情节,原来的小说网站如下:

http://www.opencascade.org/support/applications/jt_assistant/

关于Jt格式的越多消息,可访问Siemens的网址:

http://www.plm.automation.siemens.com/en_us/products/open/jtopen/index.shtml

PDF Version OpenCASCADE JT
Assistant

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/

882828九五至尊手机版 8

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. 

882828九五至尊手机版 9

Figure 1.2 Qt Ads

You can develop your program in the following manner:

882828九五至尊手机版 10

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.cppblog.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:

882828九五至尊手机版 11

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.

882828九五至尊手机版 12

Figure 2.2 Click mouse left button to pick

882828九五至尊手机版 13

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:

882828九五至尊手机版 14

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.0, 4.0, 5.0);
TopoDS_Shape aTopoCone = BRepPrimAPI_MakeCone(3.0, 0.0, 5.0);
TopoDS_Shape aTopoSphere = BRepPrimAPI_MakeSphere(3.0);
TopoDS_Shape aTopoCylinder = BRepPrimAPI_MakeCylinder(3.0, 5.0);
TopoDS_Shape aTopoTorus = BRepPrimAPI_MakeTorus(3.0, 1.0);

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

882828九五至尊手机版 15

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.

882828九五至尊手机版 16

Figure 4.1 Modeling Algorithms in occQt

5.Boolean Operations

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

882828九五至尊手机版 17

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:

882828九五至尊手机版 18

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.

Enjoy882828九五至尊手机版,!

PDF Version: A Simple OpenCASCADE Qt
Deom-occQt

相关文章

Your Comments

近期评论

    功能


    网站地图xml地图