Skip to content

Fix normals for located planar wires#2071

Open
lorenzncode wants to merge 1 commit into
CadQuery:masterfrom
lorenzncode:fix-wire-normal
Open

Fix normals for located planar wires#2071
lorenzncode wants to merge 1 commit into
CadQuery:masterfrom
lorenzncode:fix-wire-normal

Conversation

@lorenzncode

Copy link
Copy Markdown
Member

Resolves #2070

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.70%. Comparing base (b47f7b7) to head (c59696e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2071   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files          30       30           
  Lines        9479     9480    +1     
  Branches     1410     1410           
=======================================
+ Hits         9072     9073    +1     
  Misses        253      253           
  Partials      154      154           

☔ 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.

@adam-urbanczyk adam-urbanczyk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @lorenzncode , I think same fix needs to be applied to two other locations in that function.

rv = Vector(circ.Axis().Direction())
elif gtype == "ELLIPSE":
ell = curve.Ellipse()
rv = Vector(ell.Axis().Direction())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same fix needed here?


if gtype == "CIRCLE":
circ = curve.Circle()
rv = Vector(circ.Axis().Direction())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same fix needed 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.

Incorrect normal for a wire extracted from a face

2 participants