Asset_geometry
Ploy3D / Asset_geometry
Interface: Asset_geometry
基础几何体数据。
Hierarchy
↳
Asset_geometry
Table of contents
Properties
- bin
- classid
- default_uv_set
- edge_interpolation_mode
- guid
- label
- material_groups
- name
- polygon_groups
- polylist
- type
- typename
- vertices
Properties
bin
• bin: string
二进制数据文件URI。
classid
• Optional
classid: number
资源实例类型ID(资源包装载时指定)。
Inherited from
default_uv_set
• Optional
default_uv_set: string
网格默认UV数据URI。
edge_interpolation_mode
• Optional
edge_interpolation_mode: "no_interpolation"
| "edges_and_corners"
| "edges_only"
网格类型为subdivision_surface时,在细分期间要执行的边插值的模式(默认no_interpolation)。
guid
• guid: string
全球唯一ID。
Inherited from
label
• label: string
用户可理解的外部标签。
Inherited from
material_groups
• material_groups: string
[]
网格材质分组名称数组(子网格划分)。
name
• name: string
内部名称(同级唯一,优先使用名称在同级中查找)。
Inherited from
polygon_groups
• polygon_groups: string
[]
网格面元分组名称数组。
polylist
• polylist: Object
多边形数组。
Type declaration
Name | Type | Description |
---|---|---|
bin_offset | number | 多边形数组数据在数据文件中的偏移。 每个多边形格式:[polygon_group、material_group、vert0、vert1、vert2、vert3?]。 索引vert3不为类型最大值时,多边形为四边形。 顶点数量大于65535时为索引为UINT类型,否则为USHORT类型。 |
count | number | 多边形数量。 |
type
• Optional
type: "polygon_mesh"
| "subdivision_surface"
网格类型(默认polygon_mesh)。
typename
• typename: string
资源类型名称。
Inherited from
vertices
• vertices: Object
顶点数组。
Type declaration
Name | Type | Description |
---|---|---|
bin_offset | number | 顶点数组数据在数据文件中的偏移(以SHORT4的格式压缩存储)。 |
count | number | 顶点数量。 |