8.12.3.1 IfcBlobTexture(二进制纹理)
8.12.3.1.1 语义定义(Semantic definition)
IfcBlobTexture 提供表面光照参数的二维分布,该表面是纹理映射的目标。纹理本身以单个二进制数据块形式给出,表示像素格式文件的内容。像素文件的格式由 RasterFormat 属性指定,允许的格式受 SupportedRasterFormat 规则约束。
关于纹理节点的解释,请参阅 IfcImageTexture 定义。
8.12.3.1.2 实体继承(Entity inheritance)
-
- IfcSurfaceTexture
- IfcColourRgbList
- IfcColourSpecification
- IfcCurveStyleFont
- IfcCurveStyleFontAndScaling
- IfcCurveStyleFontPattern
- IfcIndexedColourMap
- IfcPreDefinedItem
- IfcSurfaceStyleLighting
- IfcSurfaceStyleRefraction
- IfcSurfaceStyleShading
- IfcSurfaceStyleWithTextures
- IfcTextStyleForDefinedFont
- IfcTextStyleTextModel
- IfcTextureCoordinate
- IfcTextureVertex
- IfcTextureVertexList
8.12.3.1.3 特性(Attributes)
| # | 特性(Attributes) | 类型 | 描述 |
|---|---|---|---|
| IfcSurfaceTexture (7) | |||
| 1 | RepeatS | IfcBoolean |
RepeatS 字段指定纹理在 S 方向上的包裹方式。如果 RepeatS 为 TRUE(默认值),纹理贴图在 S 方向的 [0.0, 1.0] 纹理坐标范围外重复,以填充形状。如果 RepeatS 为 FALSE,纹理坐标在 S 方向上被限制在 [0.0, 1.0] 范围内。 |
| 2 | RepeatT | IfcBoolean |
RepeatT 字段指定纹理在 T 方向上的包裹方式。如果 RepeatT 为 TRUE(默认值),纹理贴图在 T 方向的 [0.0, 1.0] 纹理坐标范围外重复,以填充形状。如果 RepeatT 为 FALSE,纹理坐标在 T 方向上被限制在 [0.0, 1.0] 范围内。 |
| 3 | Mode | OPTIONAL IfcIdentifier |
Mode 应保存此纹理对应的贴图类型,从以下列表中选择:AMBIENT、NORMAL、EMISSIVE、METALLICROUGHNESS、OCCLUSION、SHININESS、SPECULAR、DIFFUSE。 如果省略 Mode,则假定为 DIFFUSE。 |
| 4 | TextureTransform | OPTIONAL IfcCartesianTransformationOperator2D |
TextureTransform 定义应用于纹理坐标的二维变换。它影响纹理坐标应用于几何表示项表面的方式。二维变换支持更改形状上纹理的大小、方向和位置。IfcCartesianTransformationOperator 中不允许使用镜像。 |
| 5 | Parameter | OPTIONAL LIST [1:?] OF IfcIdentifier | |
| IsMappedBy | SET [0:?] OF IfcTextureCoordinate FOR Maps |
纹理坐标,由相应的纹理顶点列表提供给基于顶点的几何项,或由纹理坐标生成器提供,将表面纹理应用于几何项的表面。 |
|
| UsedInStyles | SET [0:?] OF IfcSurfaceStyleWithTextures FOR Textures |
无可用描述 |
|
| 点击显示 7 个隐藏的继承特性 点击隐藏 7 个继承特性 | |||
| IfcBlobTexture (2) | |||
| 6 | RasterFormat | IfcIdentifier |
RasterCode 的格式,通常使用压缩。 |
| 7 | RasterCode | IfcBinary |
以单个二进制形式给出的数据块,用于以常见文件(压缩)格式捕获纹理。文件格式由 RasterFormat 属性提供。 |
8.12.3.1.4 形式化命题(Formal propositions)
| 名称 | 描述 |
|---|---|
| RasterCodeByteStream |
光栅代码的大小应为 8 位的倍数。 |
|
|
| SupportedRasterFormat |
当前应支持 bmp、jpg、gif 和 pgn 格式。 |
|
|
8.12.3.1.5 形式化表示(Formal representation)
ENTITY IfcBlobTexture
SUBTYPE OF (IfcSurfaceTexture);
RasterFormat : IfcIdentifier;
RasterCode : IfcBinary;
WHERE
RasterCodeByteStream : BLENGTH(RasterCode) MOD 8 = 0;
SupportedRasterFormat : SELF.RasterFormat IN ['BMP', 'JPG', 'GIF', 'PNG'];
END_ENTITY;