Asset_uv_set
Ploy3D / Asset_uv_set
Interface: Asset_uv_set
几何体UV数据。
Hierarchy
↳
Asset_uv_set
Table of contents
Properties
Properties
bin
• bin: string
二进制数据文件URI。
classid
• Optional
classid: number
资源实例类型ID(资源包装载时指定)。
Inherited from
guid
• guid: string
全球唯一ID。
Inherited from
label
• label: string
用户可理解的外部标签。
Inherited from
name
• name: string
内部名称(同级唯一,优先使用名称在同级中查找)。
Inherited from
polygon_vertex_indices
• polygon_vertex_indices: Object
面元顶点索引重映射数据。
Type declaration
Name | Type | Description |
---|---|---|
bin_offset | number | 映射数组数据在数据文件中的偏移。 每个映射格式:[polygon_index、polygon_vertex_index、uv_index]。 UV数量大于65535时为索引为UINT类型,否则为USHORT类型。 |
count | number | 映射数量。 |
typename
• typename: string
资源类型名称。
Inherited from
uvs
• uvs: Object
UV数组。 几何体面元共享顶点坐标,但顶点UV可能不同,因此UV数量要大于顶点坐标数量。 构建网格时基于顶点UV的数量来分配顶点缓存,并且修改某些面元的某个顶点坐标索引为顶点UV索引,同时复制一份顶点坐标。
Type declaration
Name | Type | Description |
---|---|---|
bin_offset | number | UV数组数据在数据文件中的偏移(以FLOAT2的格式存储)。 |
count | number | UV数量。 |
vertex_count
• vertex_count: number
UV数据应用到的几何体中预期包含的顶点数(不匹配则应用失败)。