Docs Home
/
KCL Standard Library
/
Functions
/
faceId

faceIdFunction in std

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

Arguments

NameTypeDescriptionRequired
bodySolidThe solid whose faces we're trying to findYes
indexnumber(_)Face to identify. The index is a stable ordering of faces, used when you can't get the usual ID of a face.Yes

Returns

TaggedFace - A tag which references a face of a solid, including the distinguished tags START and END.

Examples

Found a typo?