几何建模-Parasolid中GO功能使用

1.背景介绍
1.1 Parasolid和它的接口间关系

1.2 什么是GO
  • GO全称是Graphical Output.
  • 你的程序需要在屏幕或者打印设备上显示模型数据时。
  • 在需要使用PK中的某个渲染函数时创建图形显示数据时,Parasolid会调用GO相关的函数。
  • GO函数会输出绘图指令给你的应用程序提供的图形显示系统,例如OpenGL。
1.3 GO工作流程

2. GO函数介绍
2.1 GOOPSG, GOSGMT, GOCLSG 三个函数

 他们有相同的参数,但是要使用不同的方式来解释他们。这些参数是:
GOXXX( segtyp, ntags, tags, ngeom, geom, nlntp, lntp, ifail )。

2.2 GO函数的注册

fru.goopsg = UG_GOOPSG;    
fru.gosgmt = UG_GOSGMT;
fru.goclsg  = UG_GOCLSG;   
PK_SESSION_register_frustrum(&fru);

2.3 GO函数中参数介绍

  • SegmentType类型 

Body: SGTPBY
   tags: tag of the body
   ngeom: xmin, ymin, zmin, xmax, ymax, zmax.

Error Segment: SGTPER
    unable to render (e.g. a rubber face)

  • Tag参数

如果其中某个tag参数的值比另一个大,那么意味着对应的实体是最近创建的。在一个会话操作中,更大的tag值意味着这个实体更早创建。

  • LineType参数

The first of which is always the occurrence number of the segment

Occurrence numbers link the segment to the entity which was passed to the rendering function. You can use them to associate the segments with the Parasolid entities (perhaps using identifiers to identify them). You can then identify what a particular line represents, and the entity it belongs to.

  • Geometry参数

(1)For hierarchical body segments the geom array always contains the model space box of the body

  (2) For a single level segment the geom array is an array of real numbers specifying the geometry of the line it represents.

Geometry参数中为直线是参数设置举例:

Straight line:
L3TPSL
ngeom = 9
start point(起点):geom[0...2]
end point(终点):geom[3...5]
direction(方向):geom[6...8]
一般来说,这个隐式的方向比通过使用首末端点计算出的方向更精确。

3.GO在NX中的使用
3.1 使用流程图

3.2 Cube使用举例

4.总结

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-13 06:04:02       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-13 06:04:02       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-13 06:04:02       58 阅读
  4. Python语言-面向对象

    2024-07-13 06:04:02       69 阅读

热门阅读

  1. 基于Go1.19的站点模板爬虫详细介绍

    2024-07-13 06:04:02       24 阅读
  2. c++_文件解析_读取_每行用字符分割_去除两头空格

    2024-07-13 06:04:02       21 阅读
  3. 使用 OpenCV 的 inRange 函数进行颜色分割

    2024-07-13 06:04:02       22 阅读
  4. Web控件进阶交互

    2024-07-13 06:04:02       29 阅读
  5. iOS开发-Xcode

    2024-07-13 06:04:02       21 阅读
  6. Xcode依赖管理大师:精通项目依赖的艺术与实践

    2024-07-13 06:04:02       22 阅读
  7. 数据结构笔记之特殊矩阵压缩

    2024-07-13 06:04:02       26 阅读
  8. 交换机的二三层原理

    2024-07-13 06:04:02       24 阅读
  9. pdf工具

    pdf工具

    2024-07-13 06:04:02      24 阅读
  10. Xcode项目文件与资源管理:精通技巧与实践指南

    2024-07-13 06:04:02       26 阅读
  11. ChatGPT对话:如何制作静态网页?

    2024-07-13 06:04:02       24 阅读
  12. QLabel控件

    2024-07-13 06:04:02       23 阅读
  13. deepstream读取mp4文件及不同类型视频输入bug解决

    2024-07-13 06:04:02       27 阅读
  14. samout 结构再优化 收敛速度再加快

    2024-07-13 06:04:02       24 阅读
  15. 延时订单的实现

    2024-07-13 06:04:02       28 阅读