Skip to main content

KTopoEdge

kds-plugin-document / Exports / KTopoEdge

Interface: KTopoEdge

The KTopoEdge class represents a BRep edge. You may think edges are boundaries of a face, and each edge represents a bounded curve (line segment, arc, etc.)

Hierarchy​

Table of contents​

Methods​

Methods​

getBoundedCurve​

▸ getBoundedCurve(): KBoundedCurve3d

Retrieve the 3D bounded curve corresponding to the edge. NOTE: Now it is always the 3D line segment.

Returns​

KBoundedCurve3d

The 3D bounded curve if successful, otherwise null.

Defined in​

api.d.ts:54


getHalfEdges​

▸ getHalfEdges(): KTopoHalfEdge[]

Retrieve all the involved half edges of this edge.

Returns​

KTopoHalfEdge[]

The array of half edges.

Defined in​

api.d.ts:38


getKey​

▸ getKey(): string

Get a unique key assigned to a edge.

Returns​

string

The unique key.

Defined in​

api.d.ts:28


getShell​

▸ getShell(): KTopoShell

Retrieve the shell that the edge belongs to.

Returns​

KTopoShell

The shell if successful, otherwise null.

Defined in​

api.d.ts:33


getType​

▸ getType(): KTopoType

Get the entity's type.

Returns​

KTopoType

The entity's type.

Inherited from​

KTopoEntity.getType

Defined in​

api.d.ts:112


getVertexA​

▸ getVertexA(): KTopoVertex

Retrieve edge's start vertex.

Returns​

KTopoVertex

The start vertex if successful, otherwise null.

Defined in​

api.d.ts:43


getVertexB​

▸ getVertexB(): KTopoVertex

Retrieve edge's end vertex.

Returns​

KTopoVertex

The end vertex if successful, otherwise null.

Defined in​

api.d.ts:48


isIndependent​

▸ isIndependent(): boolean

Check edge is an independent edge (owned by a wire).

Returns​

boolean

Return true if edge is independent, otherwise return false.

Defined in​

api.d.ts:68


isSoft​

▸ isSoft(): boolean

Get whether the edge is a soft edge. A soft edge will cause the connected faces to be treated as a surface. This means that if you select one face it will also select all faces connected with soft edges. A soft edge will also appear hidden.

Returns​

boolean

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

Defined in​

api.d.ts:62