OpenCascade Primitives BRep-Torus

eryar@163.com

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

OpenCascade Primitives BRep-Torus的更多相关文章

  1. OpenCascade Primitives BRep - Sphere

    OpenCascade Primitives BRep - Sphere eryar@163.com Abstract. BRep is short for Boundary Representati ...

  2. OpenCascade Primitives BRep - Box

    OpenCascade Primitives BRep - Box eryar@163.com Abstract. BRep is short for Boundary Representation. ...

  3. OpenCascade Primitives BRep-Cone

    OpenCascade Primitives BRep-Cone eryar@163.com Abstract. BRep is short for Boundary Representation. ...

  4. OpenCascade Primitives BRep-Cylinder

    OpenCascade Primitives BRep-Cylinder eryar@163.com Abstract. BRep is short for Boundary Representati ...

  5. OpenCASCADE Make Primitives-Sphere

    OpenCASCADE Make Primitives-Sphere eryar@163.com Abstract. The sphere is the simplest topology shape ...

  6. OpenCASCADE BRep vs. OpenNURBS BRep

    OpenCASCADE BRep vs. OpenNURBS BRep eryar@163.com Abstract. BRep short for Boundary Representation. ...

  7. Geometry Surface of OpenCascade BRep

    Geometry Surface of OpenCascade BRep eryar@163.com 摘要Abstract:几何曲面是参数表示的曲面 ,在边界表示中其数据存在于BRep_TFace中, ...

  8. Topology Shapes of OpenCascade BRep

    Topology Shapes of OpenCascade BRep eryar@163.com 摘要Abstract:通过对OpenCascade中的BRep数据的读写,理解边界表示法的概念及实现 ...

  9. Representation Data in OpenCascade BRep

    Representation Data in OpenCascade BRep eryar@163.com 摘要Abstract:现在的显示器大多数是光栅显示器,即可以看做一个像素的矩阵.在光栅显示器 ...

随机推荐

  1. Liquid Exception: Included file '_includes/customizer-variables.html' not found in assets/bootstrap/docs/customize.html 解决方案

    执行下面这句话即可 rm -rf source/assets/bootstrap/docs/

  2. linux菜鸟日记(3)

    Centos7利用shell编辑一串 一键完成一些基础配置的代码: 在这串shell代码中我实现了  IP地址的配置.光盘的挂载.本地yum源的搭建.一些服务的安装例如 httpd. php. ntp ...

  3. bzoj4491奇技淫巧线段树

    20行的归并+10行的线段树(现在线段树真是越写越短了)+10行主程序(连主程序都缩过行)  = =丧心病狂 struct里连开10个,用大括号直接初始化真是爽翻了 #include <cstd ...

  4. 深度学习框架搭建之最新版Python及最新版numpy安装

    这两天为了搭载深度学习的Python架构花了不少功夫,但是Theano对Python以及nunpy的版本都有限制,所以只能选用版本较新的python和nunpy以确保不过时.但是最新版Python和最 ...

  5. replace实现正则过滤替换非法字符

    html+js结构如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: ...

  6. 例如筋斗云的效果,但不通过offset定位的flag标记

    效果:mouseenter到li上出现背景图片,mouseleave后背景图片消失,click以后该背景图片被锁定 问题:简单的mouseenter,mouseleave和click事件不能达到预期的 ...

  7. 【转】【10g SQL新特性】q-quote使用

    转自:http://blog.chinaunix.net/uid-7655508-id-3684042.html 转发只为留存学习 在Oracle中,字符串的字面量如果含有单引号,那么必须转义,而且转 ...

  8. js中的时间与毫秒数互相转换

    1.js毫秒时间转换成日期时间 var oldTime = (new Date("2012/12/25 20:11:11")).getTime(); //得到毫秒数     //不 ...

  9. SQL Server表分区的NULL值问题

    SQL Server表分区的NULL值问题 SQL Server表分区只支持range分区这一种类型,但是本人觉得已经够用了 虽然MySQL支持四种分区类型:RANGE分区.LIST分区.HASH分区 ...

  10. IIS Community Newsletter June 2013

    Announcements Windows 2012 Server R2 preview released Windows Server 2012 R2 provides a wide range o ...