Skip to content

edge extrudes compat with face api#12465

Draft
Irev-Dev wants to merge 3 commits into
mainfrom
kurt-extrude-edge-specifiers
Draft

edge extrudes compat with face api#12465
Irev-Dev wants to merge 3 commits into
mainfrom
kurt-extrude-edge-specifiers

Conversation

@Irev-Dev

Copy link
Copy Markdown
Contributor

Anything in KCL that refers to an edge needs to accept the face API edge-specifier payload to work with the upcoming face API. This updates extrude so its input edge or optional direction can use sideFaces, optional endFaces, and an optional index, without first resolving the edge to a UUID with another engine command.

This follows the shared edge-specifier path used by the other face API work. KCL resolves face tags into the payload expected by the engine and sends it directly as targetReference or directionReference. Existing sketches, faces, tagged edges, segments, UUID-backed edges, and point directions keep their current behavior.

There are a few intentional restrictions:

  • Edge specifiers cannot be mixed with sketch or face targets in one extrude call.
  • to already accepts edge specifiers when extruding a normal UUID-backed target. What is not supported is using an edge specifier as the target being extruded together with to, because ExtrudeToReference still requires that source target to have a UUID. Twist extrusion has the same source-target limitation.
  • When an edge specifier is the target being extruded, the command contains targetReference instead of a path UUID. The artifact graph therefore cannot mark a specific path artifact as consumed until the engine resolves that reference, so it leaves that source-path relationship empty instead of attaching it to the wrong edge.

Related PRs:

The modeling API and compatibility changes have merged. This end-to-end KCL change should land alongside but after the engine implementation.

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Jul 15, 2026 11:39pm

Request Review

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.

1 participant