Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Chamfer fails on arc and opposite arc #3905

Open
r-barton opened this issue Sep 17, 2024 · 0 comments
Open

[BUG]: Chamfer fails on arc and opposite arc #3905

r-barton opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working engine kcl Language and compiler features

Comments

@r-barton
Copy link
Contributor

Describe the bug

The chamfer applied to either end of the shaft is failing. The sketch is comprised comprised of lines and an arc to create a keyed shaft. I've also attempted to fillet the arc, but this also fails

Steps to Reproduce

KCL to reproduce the error

// Define constants in millimeters (mm)
const length = 1800.0
const diameter = 50.0
const keywayWidth = 14.0
const keywayDepth = 5.5
const keywayChamfer = 0.75

// create a sketch on the 'XY' plane
const sketch000 = startSketchOn('XY')

// create a profile of the extrusion with the keyway
const profile = startProfileAt([-keywayWidth / 2, 0.000000], sketch000)
  |> line([0.000000, keywayDepth], %, $line015)
  |> arc({
       angleStart: -253.739795,
       angleEnd: 73.739795,
       radius: diameter / 2
     }, %, $arc001)
  |> line([0.000000, -keywayDepth], %, $line017)
  |> line([-keywayWidth, 0.000000], %, $line016)
  |> close(%)

// extrude the profile to create the shaft
const shaft = extrude(length, [profile])

// chamfer the ends of the shaft
const chamferedShaft = chamfer({
  length: keywayChamfer,
  tags: [arc001, getOppositeEdge(arc001)]
}, shaft)

Expected Behavior

I would expect that the chamfer would complete successfully.

Screenshots and Recordings

This is a screenshot of the equivalent part in solidworks and the chamfer (highlighted) I am attempting to achieve.
image

Desktop OS

Windows

Browser

Chrome

Version

v0.25.2

Additional Context

No response

@r-barton r-barton added bug Something isn't working engine kcl Language and compiler features labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engine kcl Language and compiler features
Projects
None yet
Development

No branches or pull requests

1 participant