-
Notifications
You must be signed in to change notification settings - Fork 45
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
Enable construction geometry #1553
Comments
Just zooming in on this part of your example:
Will the llatter |
I think so yes, we'll have to play it by ear, but I think that makes sense for cases where I had also thought we might want to do something like startSketchOn('XY')
|> startProfileAt([...], %, 'profile1Tag')
|> line()
|> line()
|> construction(circle())
|> line()
|> startProfileAt([...], %, 'profile2Tag')
|> line()
|> line()
|> close()
|> continueProfile('profile1Tag', %)
|> line()
|> close(%) // closing profile1 It's a little messy, so we'll see if we can avoid it, but it's an option, definitely bleeding into #1554 though. |
relaetd #1876 |
I think we might need engine for this, because if we nuke something later that somthing else relies upon that would be weird right? |
Sorry I don't follow, nuking things that are relied obviously a problem, but not sure how construction geometry is unique here. |
Well its a child of something, like if you use contruction geometry to create a line to revolve around, we send the id of that line to engine, then we nuke the line, wtf happens to the revolve, is it okay? I have no idea. |
Or we create a hole in some gemetry using another geometry then nuke that geometry is the hole okay? I have no idea, since we use those ids in engine |
oh i understand your question now, yeah i guess name me a scenario for construction geometry where it doesnt wind up a child of the thing we create, i guesss i only see scenarios where it does |
Yeah construction geometry will get a tag, and that tag will be used to reference it later in KCL, so it's in terms of the mechanics of how it's relied on and what not I think it's not really very different from say relying on a tag segment that becomes a face for sketchOnFace. |
yeah jsut the tag coincides with a edge_id in engine which makes it super awkward when we then nuke it |
Im not saying we definitely need help from engine here but I'm saying we will eff around and find out I have a feeling some of these will get weird fast |
Okay sweet, worth chatting about. |
fwiw this is how I'm thinking about it. Screenshare.-.2024-06-24.10_44_42.AM.mp4 |
Related engine issue, not contruction geometry exactly, but instead projected geometry, it will have a similar interface in KCL I think. |
Being able to add geometry that's not officially part of a profile can be really useful, especially with constraints because it will allow a user to define a circle ahead of time, than have a line segment snap to it and follow the arc afterwards or similar.
I'm not certain of the API, but I think so that we can use the same stb function calls maybe we just do
which will also allow for construction geometry to be sprinkled in throughout a sketch, which might be useful for when construction geometry needs to reference non-construction geometry and vise versa.
But I might change my mind and have
constructionCircle
,constructionLine
etc (maybedraft
,plan
,prefab
are better word candidates than construction, more concise)This mean that the sketch group data will need to change to allow more nested data (array of arrays perhaps). In this regards it might be worth doing this issue #1554 at the same time.
The text was updated successfully, but these errors were encountered: