·关于IFC文件读取类的设计的想法(LocalPlacement)
2007-03-29 11:41
232 查看
IFC文件是用树形结构组织的,LocalPalcement也是通过树形结构来实现一层一层的递归嵌套的相对坐标系统。那么,假设我们需要把这个相对坐标系统中的点转换成为一个只有一个绝对坐标系统的点,类的设计应该考虑增加一个堆栈,保存所有的LocalPlacement。在转换的时候,可以逐个调用。
在这个堆栈中,所存储的对象应该是一个LocalPlacement对象,它存储了一个相对坐标,包括Direction、相对原点和一个负责把坐标系内外的点互相转换的函数,或者两个函数。
IFC files are orgnaized like a tree. The LocalPlacement is also orgnaized like a tree, and a relative coordinate system is created like this. Then, suppose we need to convert a point in the relative coordinate system in IFC to a univerisy coordinate system, I think we should consider to add a stack, which store all the LocalPlacement. When we covert the point, we can convert from one coordinate to another one by one, and after we finished all the coordinate, we convert a point in relative coornidate system to a point in uinverity coornidate system.
Inside this stack, it should be a object of LocalPlacement, which contains the Direction of its coordinate system, the origin point of its coordinate system and one function respond for covert points into its coordinate system, another function respond for convert points out of its coordinate system.
在这个堆栈中,所存储的对象应该是一个LocalPlacement对象,它存储了一个相对坐标,包括Direction、相对原点和一个负责把坐标系内外的点互相转换的函数,或者两个函数。
IFC files are orgnaized like a tree. The LocalPlacement is also orgnaized like a tree, and a relative coordinate system is created like this. Then, suppose we need to convert a point in the relative coordinate system in IFC to a univerisy coordinate system, I think we should consider to add a stack, which store all the LocalPlacement. When we covert the point, we can convert from one coordinate to another one by one, and after we finished all the coordinate, we convert a point in relative coornidate system to a point in uinverity coornidate system.
Inside this stack, it should be a object of LocalPlacement, which contains the Direction of its coordinate system, the origin point of its coordinate system and one function respond for covert points into its coordinate system, another function respond for convert points out of its coordinate system.
相关文章推荐
- 关于设计品质保证(DQA)的几点想法
- 2012.10.08 关于 开发计划制定、项目管理、功能设计 的想法记录
- 关于游戏设计方面的一些想法(1)
- 关于设计的方法和一些想法
- 关于系统设计的一些想法
- 一些无聊时的关于技术设计的想法
- 关于软件架构设计的想法
- 关于设计一个网络信息收集软件的想法
- 关于产品定义、架构和设计实现的一些想法
- 关于系统设计的一些想法
- 一些无聊时的关于技术设计的想法
- 关于app的几个核心功能的设计想法
- 审美、效用与情感——关于icon和Logo设计的一些想法
- 关于Web应用API设计的一些想法和实践
- 关于反模式、设计和复用的一些想法
- 关于产品设计自己的一些想法
- 关于 设计模式的一些想法
- 审美、效用与情感——关于icon和Logo设计的一些想法
- 关于开发框架设计的一点想法
- 关于设计模式的一点想法