Docs Home
/
KCL Standard Library
/
Functions
/
edgeId

edgeIdFunction in std

Given an edge index, find its ID. In general, you should prefer tagging edges to using this function. Use this function if you can't tag an edge. For example, if the edge comes from imported geometry in a .STEP file, or if it's from an operation that doesn't yet support tagging the edges it creates, like subtract.

Arguments

NameTypeDescriptionRequired
bodySolidThe solid whose edges we're trying to findYes
indexnumber(_)Edge to identify. The index is a stable ordering of edges, used when you can't get the usual ID of an edge.No
closestToPoint3dQuery the edge closest to this point. Uses absolute global coordinates.No

Returns

Edge - An edge of a solid.

Examples

Found a typo?