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

extrude command does not create a cut through block #4948

Open
b-rat opened this issue Jan 7, 2025 · 0 comments
Open

extrude command does not create a cut through block #4948

b-rat opened this issue Jan 7, 2025 · 0 comments

Comments

@b-rat
Copy link

b-rat commented Jan 7, 2025

extrude command does two functions:

  1. creates an extrude if extruding away from solid
  2. creates a cut if extruding into a solid

When extrude is used as a thru cut, exit of cut is covered by surface. If extrude past block, creates a new solid. Cannot create thru cut.

Screenshot

Core Dump

coredump-a25bbbba-334f-4a46-acef-e30d1e0818d7.json

Reference ID: a25bbbba-334f-4a46-acef-e30d1e0818d7

KCL Code
sketch001 = startSketchOn('XZ')
  |> startProfileAt([0, 250], %)
  |> line([250, 0], %, $edge0)
  |> yLine(-250, %, $edge1)
  |> lineTo([0, 0], %, $edge2)
  |> close(%, $edge3)

fillet1 = 40
fillet2 = 15
thickness = 150

extrude001 = extrude(thickness, sketch001)
  |> fillet({
    radius = fillet1,
    tags = [getNextAdjacentEdge(edge0)],
  }, %)
  |> fillet({
    radius = fillet1,
    tags = [getNextAdjacentEdge(edge1)],
  }, %)
  |> fillet({
    radius = fillet1,
    tags = [getNextAdjacentEdge(edge2)],
  }, %)
  |> fillet({
    radius = fillet1,
    tags = [getNextAdjacentEdge(edge3)],
  }, %)
  
sketch002 = startSketchOn(extrude001, 'END')
  |> circle({
       center = [125,125],
       radius = 100
     }, %, $circEdge)

cut002 = extrude(-thickness, sketch002)
  |> fillet({
    radius = fillet2,
    tags = [circEdge],
  }, %)
  |> fillet({
    radius = fillet2,
    tags = [getOppositeEdge(circEdge)],
  }, %)


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

No branches or pull requests

1 participant