·关于IFC文件读取类的设计的想法(LocalPlacement)

 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.

 
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值