跳到主要内容

Asset_meshdata

Ploy3D / Asset_meshdata

Interface: Asset_meshdata

基础网格数据(仅包含第一顶点缓存)。

Hierarchy

Table of contents

Properties

Properties

bin

bin: string

二进制数据文件URI。


center

center: number[]

包围盒中心。


classid

Optional classid: number

资源实例类型ID(资源包装载时指定)。

Inherited from

Asset.classid


extents

extents: number[]

包围盒范围(半长)。


guid

guid: string

全球唯一ID。

Inherited from

Asset.guid


indices

indices: Object

索引数组。

Type declaration

NameTypeDescription
bin_offsetnumber索引数组数据在数据文件中的偏移(顶点数量大于65535时为索引为UINT类型,否则为USHORT类型)。
countnumber索引数量。

label

label: string

用户可理解的外部标签。

Inherited from

Asset.label


material_groups

material_groups: { index_count: number ; indices_offset: number ; name: string ; topology: number }[]

网格材质分组(子网格划分,索引数组顺序应与材质组顺序一致)。


name

name: string

内部名称(同级唯一,优先使用名称在同级中查找)。

Inherited from

Asset.name


typename

typename: string

资源类型名称。

Inherited from

Asset.typename


vertices

vertices: Object

顶点数组。

Type declaration

NameTypeDescription
bin_offsetnumber顶点数组数据在数据文件中的偏移(每个顶点16字节)。
countnumber顶点数量。