跳到主要内容
版本:v10.0

M3D / M3D / VertexSets

Class: VertexSets

M3D.VertexSets

Memberof

M3D

Description

顶点集管理类

Author

ss

Date

2022-7-26

Version

1.0

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new VertexSets(): VertexSets

Returns

VertexSets

Description

构造函数

Inherited from

M3DObject.constructor

Properties

id

id: number

Inherited from

M3DObject.id


count

Static count: number

Inherited from

M3DObject.count

Methods

clear

clear(): void

Returns

void

Description

数据清空


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

M3DObject.getEvents


getId

getId(): number

Returns

number

Description

获取id

Inherited from

M3DObject.getId


getRenderVertexHeader

getRenderVertexHeader(shape): VertexHeader

Parameters

NameType
shapeShape

Returns

VertexHeader

Description

获取Shape关联的顶点集信息


getVertexHeader

getVertexHeader(shape): VertexHeader

Parameters

NameType
shapeShape

Returns

VertexHeader

Description

获取Shape关联的顶点集信息


getVertexSet

getVertexSet(): VertexSet

Returns

VertexSet

Description

获取顶点集


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

M3DObject.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

M3DObject.removeEvent


removeVertexHeader

removeVertexHeader(shape): void

Parameters

NameType
shapeShape

Returns

void

Description

删除Shape对象对应的顶点集信息


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

M3DObject.setId


setRenderVertexHeader

setRenderVertexHeader(shape, vertexHeader): boolean

Parameters

NameType
shapeShape
vertexHeaderVertexHeader

Returns

boolean

Description

外部设置Shape对应的顶点集信息


setVertexHeader

setVertexHeader(shape, vertexHeader): boolean

Parameters

NameType
shapeShape
vertexHeaderVertexHeader

Returns

boolean

Description

外部设置Shape对应的顶点集信息


setVertexSet

setVertexSet(vertexSet): void

Parameters

NameType
vertexSetVertexSet

Returns

void

Description

设置顶点集


updateVertexHeader

updateVertexHeader(shape, vertexHeader): boolean

Parameters

NameType
shapeShape
vertexHeaderVertexHeader

Returns

boolean

Description

更新Shape对象对应的顶点集信息

updateVertexHeader(shape): boolean

Parameters

NameType
shapeShape

Returns

boolean

Description

更新Shape对象对应的顶点集信息