Skip to content

Expose the new region segment isx resolver APIs from kevins toolpaths work#1247

Open
mlfarrell wants to merge 2 commits into
mainfrom
mike/region-segment-isx-resolver-api
Open

Expose the new region segment isx resolver APIs from kevins toolpaths work#1247
mlfarrell wants to merge 2 commits into
mainfrom
mike/region-segment-isx-resolver-api

Conversation

@mlfarrell

@mlfarrell mlfarrell commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Tagging @nadr0 if any questions come up about docs or API naming. These concepts are a bit difficult to explain.

https://github.com/KittyCAD/engine/pull/4704

@mlfarrell

Copy link
Copy Markdown
Contributor Author

still am unable to run API json update locally due to some python issues with my local machine

@mlfarrell mlfarrell requested a review from adamchalmers June 17, 2026 23:04
pierremtb added a commit to KittyCAD/modeling-app that referenced this pull request Jun 17, 2026
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@e49a579). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1247   +/-   ##
=======================================
  Coverage        ?   29.39%           
=======================================
  Files           ?       34           
  Lines           ?     1694           
  Branches        ?        0           
=======================================
  Hits            ?      498           
  Misses          ?     1196           
  Partials        ?        0           
Flag Coverage Δ
unittests 29.39% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

/// The total number of intersections between the two curves.
pub intersection_count: u32,
/// True if the region lies within the clockwise interior of the two intersections (inside a "right" turn from the segment to the intersection segment)
pub curve_clockwise: bool,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here is the respective KCL call that will consume these values https://zoo.dev/docs/kcl-std/functions/std-sketch-region

When I compute the boolean false means CCW and true means CW. I am using it as an encoding.

KCL refers to this as Direction

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no worries, we should be good engine-side here

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