OpenCascade Primitives BRep-Torus
OpenCascade Primitives BRep-Torus
Abstract. BRep is short for Boundary Representation. Boundary Representation gives a complete description of an object by associating topological and geometric information for solid modeling. In this case, objects are described by their boundaries. There are two types of information in BRep: Topological information and Geometric information. This paper is concerned with the Torus BRep in OpenCascade, and also show how to use Tcl script to dump torus BRep info.
Key words. OpenCascade, BRep, Boundary Representation, Torus
1. Introduction
本文通过在Draw Test Harness中的Tcl脚本来生成圆环体Torus的边界表示(BRep)数据,通过对生成的数据进行分析,来理解OpenCascade中的Torus的边界表示方式。
如下图所示为使用Tcl命令在Draw Test Harness中生成的圆环体:
Figure 1.1 Torus Generated by Tcl in Draw Test Harness
2. Dump Torus BRep Info by Tcl
使用Tcl脚本在Draw Test Harness中输出圆环体(Torus)的边界表示(BRep)数据的命令如下图所示:
Figure 2.1 Dump Torus BRep Info by Tcl in Draw Test Harness
以上命令会生成一个圆心位于坐标原点(0,0,0),半径R1为6,半径R2为2的圆环体,圆环体的尺寸如下图所示:
Figure 2.2 Torus Generated by Tcl Script
3. Torus BRep in OpenCascade
还是先从顶点(Vertex)开始编号,来对圆环体(Torus)的边界表示(BRep)进行理解。从导出的BRep信息可以看出,圆环体只有一个顶点(Vertex),对其编号,如下图所示:
Figure 3.1 Vertex of the Torus
圆环体共有两条边Edge,分别为Edge #5和Edge#6。两条边中的几何数据有些类似,都是由一条三维曲线和一个闭合曲面上的曲线组成。先来看看边Edge#5的几何信息:
Figure 3.2 Edge #5 of the Torus
三维空间曲线2是一个圆(Circle),取值范围是[0,2PI]。由其参数可知此圆圆心位于(6,0,0),半径为2,位于XOZ平面上。
闭合曲面1上的参数曲线3,4是两条直线,取值范围也是[0,2PI]。曲面1的参数方程如下所示:
将参数曲线3和4计算得到的u(取0或2PI),v代入上述Torus的参数方程中可得曲面上的两条曲线的参数方程如下所示:
表示的曲线和三维空间曲线2一样,是一个圆形。
Figure 3.3 PCurve 3 and 4 on Surface 1 of the Torus
同理对Edge#6中的几何信息进行分析可知,Edge#6是位于XOY面上半径为8的圆。将圆环体所有的边编号绘出如下图所示:
Figure 3.4 Edges of the Torus
圆环体Torus只有一个环Wire#4,结合上述边,绘出环如下图所示:
Figure 3.5 Wire of the Torus
由上图可知,组成环Wire的两条衔接边Seam Edge汇合成一个顶点Vertex。最后环Wire#4组成面Face#3,面Face#3组成了壳Shell#2,壳Shell#2组成了体Solid#1。
4. Conclusion
通过Tcl生成的圆环体Torus的边界表示BRep信息,分析了OpenCascade中的圆环举体的边界表示方式。可以看出Torus主要是由两条衔接边Seam Edge组成,两条衔接边汇合处是一个顶点(Vertex)。
5. References
1. OpenCascade, Test Harness User’s Guide 2013
2. OpenCascade, BRep Format Description White Paper, 2013
3. John K. Ousterhout, Tcl and Tk Toolkit, 1993
PDF Version: OpenCascade Primitves BRep-Torus
OpenCascade Primitives BRep-Torus的更多相关文章
- OpenCascade Primitives BRep - Sphere
OpenCascade Primitives BRep - Sphere eryar@163.com Abstract. BRep is short for Boundary Representati ...
- OpenCascade Primitives BRep - Box
OpenCascade Primitives BRep - Box eryar@163.com Abstract. BRep is short for Boundary Representation. ...
- OpenCascade Primitives BRep-Cone
OpenCascade Primitives BRep-Cone eryar@163.com Abstract. BRep is short for Boundary Representation. ...
- OpenCascade Primitives BRep-Cylinder
OpenCascade Primitives BRep-Cylinder eryar@163.com Abstract. BRep is short for Boundary Representati ...
- OpenCASCADE Make Primitives-Sphere
OpenCASCADE Make Primitives-Sphere eryar@163.com Abstract. The sphere is the simplest topology shape ...
- OpenCASCADE BRep vs. OpenNURBS BRep
OpenCASCADE BRep vs. OpenNURBS BRep eryar@163.com Abstract. BRep short for Boundary Representation. ...
- Geometry Surface of OpenCascade BRep
Geometry Surface of OpenCascade BRep eryar@163.com 摘要Abstract:几何曲面是参数表示的曲面 ,在边界表示中其数据存在于BRep_TFace中, ...
- Topology Shapes of OpenCascade BRep
Topology Shapes of OpenCascade BRep eryar@163.com 摘要Abstract:通过对OpenCascade中的BRep数据的读写,理解边界表示法的概念及实现 ...
- Representation Data in OpenCascade BRep
Representation Data in OpenCascade BRep eryar@163.com 摘要Abstract:现在的显示器大多数是光栅显示器,即可以看做一个像素的矩阵.在光栅显示器 ...
随机推荐
- 数据泵Expdp和Impdp
一.数据泵导入导出技术 1.结构 2.目录对象 二.EXPDP参数 1.attach 2.content 3.directory 4.dumpfile 5.estimate 6.estimate_on ...
- phpstorm 10注释的双斜线位置不在缩进的位置:
22:07 2016/4/4phpstorm 10注释的双斜线位置不在缩进的位置:终于找到了(但是没有实现效果,不知道是什么原因 win10系统):File | Settings | Editor | ...
- 2632: [neerc2011]Gcd guessing game
2632: [neerc2011]Gcd guessing game Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 144 Solved: 84[S ...
- PHP常见的低级错误
写代码的时候,最讨厌的莫过于因为粗心而范的低级错误了,下面这些,你们是不是也经常犯呢? 1.标点符号缺失,诸如:“$”(美元符),“,”(逗号),“;”(分号),"->"(单 ...
- java项目启动后,数据库字段生成 user_name带下划线这种形式的
hibernate 5.0 版本以上去掉了 hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy 这个属性,如果非 ...
- oracle统计用户下面所有的表,并显示每个表的行数
declare t_count number(10); t_str VARCHAR2(500); cursor t_tables is select table_name from user ...
- CentOS6.4安装JDK1.7
安装说明 1.安装环境: CentOS6.4 64位系统 2.安装方式:rpm安装 3.软 件 包:jdk-7u71-linux-x64.rpm 4.下载地址:http://www.oracle.co ...
- C#简单的上位机制作之界面设计
今天开始打算正式在博客园落户了,写点有用的吧, 一个简单的C#上位机,也就是串口调试助手废话不多说,新建windows应用程序 到这人一个工程就算是新建完成了,然后就是组件的添加了,我们需要在里面添加 ...
- ubuntu 安装与开始学习
下载地址 http://cn.ubuntu.com/download/ 经验: 1.遇到安装问题,首先尝试解读错误,再使用 ./configure --help 不行再上Stack overflo ...
- Excel导入导出的业务进化场景及组件化的设计方案(上)
1:前言 看过我文章的网友们都知道,通常前言都是我用来打酱油扯点闲情的. 自从写了上面一篇文章之后,领导就找我谈话了,怕我有什么想不开. 所以上一篇的(下)篇,目前先不出来了,哪天我异地二次回忆的时候 ...