KEdge
kds-plugin-document / Exports / KEdge
Interface: KEdge
酷大师图形实体:造型边 它对应于一个Brep数据结构的边(Edge)
The KEdge class represents the BRep edge.
Hierarchy
Table of contents
Methods
- getBoundedCurve
- getContinuousEdgeGroup
- getHalfEdges
- getKey
- getShell
- getType
- getVertexA
- getVertexB
- isSoft
- isVisible
- setIsSoft
Methods
getBoundedCurve
▸ getBoundedCurve(): KBoundedCurve3d
Retrieve the 3D bounded curve corresponding to the edge. NOTE: Now it is always the 3D line segment.
Returns
The 3D bounded curve if successful, otherwise null.
Inherited from
Defined in
api.d.ts:54
getContinuousEdgeGroup
▸ getContinuousEdgeGroup(): KContinuousEdgeGroup
Deprecated
本方法即将下线,请不要使用 Retrieve the continuous edge group which the edge belongs to.
Returns
The continuous edge group if successful, otherwise null.
Defined in
api.d.ts:2593
getHalfEdges
▸ getHalfEdges(): KHalfEdge
[]
获取对应的半边
Retrieve all the involved half edges of this edge.
Returns
The array of half edges.
Overrides
Defined in
api.d.ts:2554
getKey
▸ getKey(): string
Get a unique key assigned to a edge.
Returns
string
The unique key.
Inherited from
Defined in
api.d.ts:28
getShell
▸ getShell(): KShell
获取所从属的壳体
Retrieve the shell that the edge belongs to.
Returns
The shell if successful, otherwise null.
Overrides
Defined in
api.d.ts:2545
getType
▸ getType(): KTopoType
获取图形实体类型
Get the entity's type.
Returns
The entity's type which is KTopoType
Overrides
Defined in
api.d.ts:2536
getVertexA
▸ getVertexA(): KVertex
获取起始顶点
Retrieve edge's start vertex.
Returns
The start vertex if successful, otherwise null.
Overrides
Defined in
api.d.ts:2563
getVertexB
▸ getVertexB(): KVertex
获取终止顶点
Retrieve edge's end vertex.
Returns
The end vertex if successful, otherwise null.
Overrides
Defined in
api.d.ts:2572
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.
Inherited from
Defined in
api.d.ts:62
isVisible
▸ isVisible(): boolean
获取该边是否可见
Get the edge property of it is visible or not.
Returns
boolean
Defined in
api.d.ts:2601
setIsSoft
▸ setIsSoft(isSoft
): boolean
设置为这条边是否为软化边 软化边默认在酷大师画布中不显示 当在酷大师中选择一个造型面时,会将从这个面开始,所有通过软化边相连的面一起选中
Set the edge to be soft. A soft edge is invisible in viewport by default When selelcting a face, all faces that connected with soft edges will be selected together
Parameters
Name | Type | Description |
---|---|---|
isSoft | boolean | The soft value. |
Returns
boolean
Return true if successful, otherwise return false.
Defined in
api.d.ts:2586