简体   繁体   English

Forge IFC model 奇怪的“阴影线”

[英]Forge IFC model weird "shadow lines"

When an IFC model is uploaded and translated by Autodesk Forge, some weird "shadow lines" are generated and appear in the Forge viewer.当 Autodesk Forge 上传和翻译 IFC model 时,会生成一些奇怪的“阴影线”并出现在 Forge 查看器中。 These lines mostly are IFC wall elements and correspond to real walls in the model, but they are drawn under the actual model. Here is an example of such lines:这些线大部分是 IFC 墙元素,对应于 model 中的真实墙,但它们绘制在实际 model 下。这是此类线的示例:

具有奇怪“阴影”线的 IFC 模型

Now, if I try to add another model, which should align with the first one and I set both Global Offset Zs to 0, the added model fits into the shadow lines at the bottom and not the actual model. Thus, it seems that the shadow lines are the considered to be a part of the model. Here is a visualisation of the problem:现在,如果我尝试添加另一个 model,它应该与第一个对齐并且我将两个全局偏移 Zs 设置为 0,添加的 model 适合底部的阴影线而不是实际的 model。因此,看起来阴影线被认为是 model 的一部分。这是问题的可视化:

添加的模型与阴影线而不是实际模型对齐

When I load the model with other IFC viewers, these shadow lines don't appear:当我用其他 IFC 查看器加载 model 时,这些阴影线不会出现:

其他没有阴影线的 IFC 查看器

Thus, I guess these lines are generated during the Forge translation process.因此,我猜测这些行是在 Forge 翻译过程中生成的。 Where are these lines coming from and how can I get rid of these?这些线从哪里来,我怎样才能摆脱这些线? And even more important, how can I align the models correctly?更重要的是,如何正确对齐模型?

Thanks for any kind of help!感谢您提供任何帮助!

EDIT: When I use legacy conversion, the alignment works: Here is an image:编辑:当我使用传统转换时,alignment 有效:这是一张图片:

遗留转换不会导致对齐问题

The problem is, that I need to have spaces and opening elements, thus I need to use the modern conversion.问题是,我需要有空格和开放元素,因此我需要使用现代转换。

The "shadow lines" probably are 2D representations of your building elements, and they are located on z=0. “阴影线”可能是您的建筑元素的 2D 表示,它们位于 z=0 上。

The 3D representations seem to be located at a higher level, maybe the origin of this model isn't set correctly. 3D 表示似乎位于更高级别,可能此 model 的原点设置不正确。

So what you see is basically a plan of your model at the correct z value, while the 3D elements are at a wrong z value.因此,您所看到的基本上是 model 处于正确 z 值的计划,而 3D 元素处于错误 z 值。 This also explains why other models are places at the z level of the 2D representations.这也解释了为什么其他模型位于二维表示的 z 级别。

The IFC files would be helpful to take a closer look. IFC 文件将有助于仔细查看。

The lines shown are actual geometries.显示的线是实际的几何形状。 Some viewers draw them, others don't.有些观众会画它们,有些则不会。 Unfortunately, our customer generates the data and isn't able to remove these line geometries.不幸的是,我们的客户生成了数据并且无法删除这些线几何图形。

The main problem of aligning the models was fixed by manipulating the IFC file.通过处理 IFC 文件修复了对齐模型的主要问题。 We figured out, that one model has a geographic reference point defined in the IfcSite and the other doesn't.我们发现,一个 model 在 IfcSite 中定义了一个地理参考点,而另一个则没有。 When we replaced the longitude, latitude and elevation attribues by '$', the alignment worked again.当我们用“$”替换经度、纬度和海拔属性时,alignment 再次起作用。 According to iFC definition , the geographic reference point is only given for informational purposes, but still, it affects the global offset, at least when using 'modern' conversion.根据 iFC 的定义,地理参考点仅供参考,但它仍然会影响全球偏移量,至少在使用“现代”转换时是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM