Skip to content

Doc improve extrude#1521

Draft
coryrc wants to merge 7 commits into
elalish:masterfrom
coryrc:docImproveExtrude
Draft

Doc improve extrude#1521
coryrc wants to merge 7 commits into
elalish:masterfrom
coryrc:docImproveExtrude

Conversation

@coryrc

@coryrc coryrc commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Choose some self-documenting variable names. Don't mutate. Add a few
comments about the rest.

Includes my other PR because I was using it to test.

@codecov

codecov Bot commented Feb 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.41%. Comparing base (fa6be64) to head (9032c95).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1521   +/-   ##
=======================================
  Coverage   92.41%   92.41%           
=======================================
  Files          35       35           
  Lines        6024     6029    +5     
=======================================
+ Hits         5567     5572    +5     
  Misses        457      457           

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coryrc
coryrc marked this pull request as draft February 6, 2026 00:21
@coryrc

coryrc commented Feb 6, 2026

Copy link
Copy Markdown
Contributor Author

I want to do some visual comparisons of some shapes before I believe the comment.

@elalish elalish left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Good idea - out of curiosity, what does "Doc" refer to in your PR's name? I'll review in earnest when it's not marked draft.

Comment thread src/constructors.cpp
// OpenSCAD chooses the shorter diagonal because it "works well in
// most cases".
if (la::distance2(vertPos[thisVert], vertPos[lastVertLower]) >=
la::distance2(lastVertPos, vertPos[thisVertLower])) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Good call, but can we skip this check for the common case of zero rotation? Also, I believe this check should always yield the same result for the same polygon index of each slice, so perhaps it can be calculated just once for the polygon?

@elalish

elalish commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Are you still working on this?

@coryrc

coryrc commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

Yes, sorry, I will get back to this but it'll be a while. I'm deep in trying to get extrusion to stay within a specified error tolerance. Some of that code might make parts of this redundant, well, not that there's a lot here. I still need to check visually whether this is the right thing.

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