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

Add slice primitive #448

Merged
merged 3 commits into from
Jan 6, 2024
Merged

Add slice primitive #448

merged 3 commits into from
Jan 6, 2024

Conversation

sorki
Copy link
Contributor

@sorki sorki commented Oct 27, 2023

I've started to implement projection similar to OpenSCAD but got stuck on its base case which is a projection of all points onto a plane, while the cut = true case is pretty simple.

While reading Ruckus docs I've realized we can have this implemented as slice primitive instead (naming hard..) and even stumbled on MAYBEFIXME suggesting exactly that.

This probably doesn't belong to 2D or 3D prims but a shared one as outlined in #446. Edit: think it's fine for now since extrude is in 3D prims.

Also needs

  • Tests
  • Example
  • Changelog entry
  • SymbolicFormats output (while it doesn't make much sense to add it to ExtOpenSCAD as it is a special case of projection, we can maybe generate projection(cut = true) (at least for 3D to 2D)

@sorki sorki force-pushed the srk/slice branch 2 times, most recently from 4095f7e to 9509246 Compare January 4, 2024 06:17
@sorki sorki marked this pull request as ready for review January 4, 2024 06:18
@sorki
Copy link
Contributor Author

sorki commented Jan 4, 2024

Will add changelog entries after #473 is merged

@julialongtin julialongtin merged commit 80222ec into Haskell-Things:master Jan 6, 2024
4 checks passed
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.

2 participants