Skip to main content

KHalfEdge

kds-plugin-document / Exports / KHalfEdge

Interface: KHalfEdge

半边

半边不是一个可以独立存在的酷大师图形实体。它对应于一个Brep数据结构的半边(HalfEdge)。它从属于酷大师图形实体中的面和边

The KHalfEdge class represents the BRep half edge.

Hierarchy​

Table of contents​

Methods​

Methods​

getBoundedCurve​

▸ getBoundedCurve(): KBoundedCurve3d

Get the 3D bound curve corresponding to the half edge.

Returns​

KBoundedCurve3d

The 3D bound curve if successful, otherwise null.

Inherited from​

KTopoHalfEdge.getBoundedCurve

Defined in​

api.d.ts:196


getEdge​

▸ getEdge(): KEdge

获取所从属的造型边

Get the edge that the half edge belongs to.

Returns​

KEdge

The edge if successful, otherwise null.

Overrides​

KTopoHalfEdge.getEdge

Defined in​

api.d.ts:3847


getLoop​

▸ getLoop(): KLoop

获取所从属的环

Get the loop that the half edge belongs to.

Returns​

KLoop

The loop if successful, otherwise null.

Overrides​

KTopoHalfEdge.getLoop

Defined in​

api.d.ts:3856


getNext​

▸ getNext(): KHalfEdge

获取环中的下一个半边

Get this half edge's next half edge in the loop.

Returns​

KHalfEdge

The next half edge if successful, otherwise null.

Overrides​

KTopoHalfEdge.getNext

Defined in​

api.d.ts:3874


getPrev​

▸ getPrev(): KHalfEdge

获取环中的上一个半边

Get this half edge's previous half edge in the loop.

Returns​

KHalfEdge

The previous half edge if successful, otherwise null.

Overrides​

KTopoHalfEdge.getPrev

Defined in​

api.d.ts:3883


getShell​

▸ getShell(): KShell

获取所从属的壳体

Get the shell that the half edge belongs to.

Returns​

KShell

The shell if successful, otherwise null.

Overrides​

KTopoHalfEdge.getShell

Defined in​

api.d.ts:3865


getType​

▸ getType(): KTopoType

获取图形实体类型

Get the entity's type.

Returns​

KTopoType

The entity's type.

Overrides​

KTopoHalfEdge.getType

Defined in​

api.d.ts:3838


getVertexA​

▸ getVertexA(): KVertex

获取半边的起点

Get this half edge's start vertex.

Returns​

KVertex

The start vertex if successful, otherwise null.

Overrides​

KTopoHalfEdge.getVertexA

Defined in​

api.d.ts:3892


getVertexB​

▸ getVertexB(): KVertex

获取半边的终点

Get this half edge's end vertex.

Returns​

KVertex

The end vertex if successful, otherwise null.

Overrides​

KTopoHalfEdge.getVertexB

Defined in​

api.d.ts:3901


isReversed​

▸ isReversed(): boolean

获取半边的方向是否和边的方向相反。如果相反,返回 true;否则返回 false

Check whether the half edge is reversed to its edge.

Returns​

boolean

true if reversed, false if the orientations are same.

Overrides​

KTopoHalfEdge.isReversed

Defined in​

api.d.ts:3910