Skip to content

Add KCL gdt::name()#11649

Draft
jtran wants to merge 28 commits into
mainfrom
jtran-mbd-name-take2
Draft

Add KCL gdt::name()#11649
jtran wants to merge 28 commits into
mainfrom
jtran-mbd-name-take2

Conversation

@jtran
Copy link
Copy Markdown
Contributor

@jtran jtran commented May 13, 2026

Resolves #11587.
Depends on KittyCAD/modeling-api#1196.
Replaces #11630.

This associates a string name with a face or edge.

You can name faces and edges. You can use tags or the output of faceId() or edgeId().

gdt::name(face = block.sketch.tags.line1, name = "line_1_face")
gdt::name(edge = block.sketch.tags.line1, name = "line_1_edge")

gdt::name(face = faceId(cylinder, index = 2), name = "top_face_via_faceId")
gdt::name(edge = edgeId(cylinder, index = 2), name = "top_edge_via_edgeId")

Names are currently restricted to ASCII characters that are not control characters or single-quote. We'd like to allow arbitrary Unicode characters in the future, like emoji. But we'll wait until the export can handle this.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modeling-app Error Error May 14, 2026 6:36pm

Request Review

@jtran jtran force-pushed the jtran-mbd-name-take2 branch from 4263762 to b516c56 Compare May 13, 2026 23:14
Copy link
Copy Markdown
Contributor

@adamchalmers adamchalmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Named geometry in STEP

2 participants