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

Two Fillet Functions cannot work with each other #2227

Open
jgomez720 opened this issue Apr 24, 2024 · 1 comment
Open

Two Fillet Functions cannot work with each other #2227

jgomez720 opened this issue Apr 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jgomez720
Copy link
Collaborator

I had no idea what to title this, so that's the best I'm gonna do for now ⬆️

Description

I have two fillet functions. They work independently, but not when used together.

Recording

Screenshare.-.2024-04-24.3_05_06.PM.mp4

KCL

// Z-Bracket

// Z-brackets are designed to affix or hang objects from a wall by securing them to the wall's studs. These brackets offer support and mounting solutions for bulky or heavy items that may be challenging to attach directly. Serving as a protective feature, Z-brackets help prevent heavy loads from moving or toppling, enhancing safety in the environment where they are used.

// Define constants
const foot1Length = 4
const height = 4
const foot2Length = 5
const width = 4
const filletRad = 0.25
const thickness = 0.125

const cornerFilletRad = 0.5

const holeDia = 0.5

const sketch001 = startSketchOn("XZ")
  |> startProfileAt([-foot1Length, 0], %)
  |> line([0, thickness], %, 'cornerFillet1')
  |> line([foot1Length, 0], %)
  |> line([0, height], %, 'fillet1')
  |> line([foot2Length, 0], %)
  |> line([0, -thickness], %, 'cornerFillet2')
  |> line([-foot2Length+thickness, 0], %)
  |> line([0, -height], %, 'fillet2')
  |> close(%)

const baseExtrusion = extrude(width, sketch001)
  |> fillet({
    radius: cornerFilletRad,
    tags: ["cornerFillet1", "cornerFillet2", getOppositeEdge("cornerFillet1", %), getOppositeEdge("cornerFillet2", %)],
  }, %)
  |> fillet({
    radius: filletRad,
    tags: [getPreviousAdjacentEdge("fillet1", %), getPreviousAdjacentEdge("fillet2", %)]
  }, %)
  // |> fillet({
  //   radius: filletRad + thickness,
  //   tags: [getNextAdjacentEdge("fillet1", %), getNextAdjacentEdge("fillet2", %)],
  // }, %)
@jgomez720 jgomez720 added the bug Something isn't working label Apr 24, 2024
@jessfraz
Copy link
Contributor

This is a known issue we need to save all these ids before hand instead of calling on the fly since they disappear

@jessfraz jessfraz added this to the v1 Modeling App Launch milestone May 21, 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
Projects
None yet
Development

No branches or pull requests

3 participants