Skip to content

P&C integration of sketch block segments for surface modeling#10398

Draft
pierremtb wants to merge 40 commits intoachalmers/10386-surface-extrude-openfrom
pierremtb/issue10386-experiment
Draft

P&C integration of sketch block segments for surface modeling#10398
pierremtb wants to merge 40 commits intoachalmers/10386-surface-extrude-openfrom
pierremtb/issue10386-experiment

Conversation

@pierremtb
Copy link
Contributor

@pierremtb pierremtb commented Mar 11, 2026

Stacked on #10413

Asked Codex to take a stab at it. Got me to an engine error https://github.com/KittyCAD/engine/blob/903c4bc8593c244e964b6d88cfee70b2eec86fb3/cpp/endpoints/endpoints.cpp#L2262-L2263

```
@settings(experimentalFeatures = allow)

sketch001 = sketch(on = XY) {
  line1 = line(start = [var -4.78mm, var 4.81mm], end = [var 0.02mm, var -6.18mm])
  line2 = line(start = [var 0.02mm, var -6.18mm], end = [var 8.97mm, var -2.05mm])
  coincident([line1.end, line2.start])
  line3 = line(start = [var 8.97mm, var -2.05mm], end = [var 8.97mm, var -2.05mm])
  coincident([line2.end, line3.start])
  line4 = line(start = [var -3.49mm, var 12.97mm], end = [var 9.41mm, var 15.64mm])
  line5 = line(start = [var 9.41mm, var 15.64mm], end = [var 9.41mm, var 15.64mm])
  coincident([line4.end, line5.start])
}
extrude001 = extrude([sketch001.line1, sketch001.line2], length = 5, bodyType = SURFACE)
```
@vercel
Copy link

vercel bot commented Mar 11, 2026

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

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Mar 18, 2026 9:36pm

Request Review

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 11, 2026

Merging this PR will improve performance by 14.02%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 166 untouched benchmarks
⏩ 93 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation recast_medium_sketch 200.7 µs 176.1 µs +14.02%

Comparing pierremtb/issue10386-experiment (aa457b5) with achalmers/10386-surface-extrude-open (0644f4c)

Open in CodSpeed

Footnotes

  1. 93 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Base automatically changed from pierremtb/issue10379-Make-sure-Start-Sketch-declares-a-variable to main March 11, 2026 18:58
@pierremtb pierremtb changed the title Experiment: sketch2 segment selection for surface extrude P&C integration of sketch block segments for surface modeling Mar 12, 2026
@pierremtb pierremtb changed the base branch from main to achalmers/10386-surface-extrude-open March 12, 2026 11:56
@adamchalmers adamchalmers force-pushed the achalmers/10386-surface-extrude-open branch from 35cdb04 to 014b05a Compare March 13, 2026 22:03
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.

2 participants