Skip to main content

KVertex

kds-plugin-document / Exports / KVertex

Interface: KVertex

酷大师图形实体:造型顶点 它对应于一个Brep数据结构的顶点 (Vertex)

The KVertex class represents the BRep vertex.

Hierarchy

Table of contents

Methods

Methods

getEdges

getEdges(): KEdge[]

获取和这个顶点相连的边

Retrieve the vertex's edges whose start or end vertex is this vertex.

Returns

KEdge[]

The vertex's edges.

Overrides

KTopoVertex.getEdges

Defined in

api.d.ts:4505


getPoint

getPoint(): KPoint3d

Retrieve the vertex's geometric point.

Returns

KPoint3d

The vertex's geometric point if successful, else null.

Inherited from

KTopoVertex.getPoint

Defined in

api.d.ts:259


getType

getType(): KTopoType

获取图形实体类型

Get the entity's type.

Returns

KTopoType

The entity's type.

Overrides

KEntity.getType

Defined in

api.d.ts:4496


isSoft

isSoft(): boolean

Get whether the vertex is a soft vertex or not. A soft vertex will cause the connected edges to be treated as a curve. This means that if you select one edge it will also select all edges connected with soft vertices.

Returns

boolean

Return true if it is a soft vertex, otherwise return false.

Inherited from

KTopoVertex.isSoft

Defined in

api.d.ts:267


setIsSoft

setIsSoft(isSoft): boolean

设置这个顶点是否为软化顶点 当在酷大师中选择一条边时,会将从这条边开始,所有通过软化顶点相连的边一起选中

Set the vertex to be soft. If you select one edge it will also select all edges connected with soft vertices.

Parameters

NameTypeDescription
isSoftbooleanThe soft value.

Returns

boolean

Return true if it is a soft vertex, otherwise return false.

Defined in

api.d.ts:4517