Skip to content

Move to Manifold for Boolean Operations#169

Merged
dfremont merged 11 commits intomainfrom
ManifoldEngine
Jan 12, 2024
Merged

Move to Manifold for Boolean Operations#169
dfremont merged 11 commits intomainfrom
ManifoldEngine

Conversation

@Eric-Vin
Copy link
Copy Markdown
Collaborator

Move from OpenSCAD/Blender to Manifold, which is faster, more reliable, and can (soon) be installed via PyPi.

This is a WIP, as I developed it using a locally built Manifold wheel and modified version of Trimesh. Once this PR and this issue are implemented, I'll update this branch so that we can run CI and confirm everything works.

I'll also need to update the installation instructions and documentation, and figure out how we can detect non 2-manifold meshes and present a clean error to users, as I believe Manifold will rightly error on those. Right now some of them are detected on our end, but others aren't and that leaves some undefined behavior.

@Eric-Vin Eric-Vin marked this pull request as draft August 30, 2023 17:51
@Eric-Vin
Copy link
Copy Markdown
Collaborator Author

Confirmed that the tests pass with the updated CI workflows from this branch: https://github.com/BerkeleyLearnVerify/Scenic/actions/runs/7268486842

@Eric-Vin Eric-Vin requested a review from dfremont December 19, 2023 23:30
@Eric-Vin Eric-Vin changed the title [WIP] Move to Manifold for Boolean Operations Move to Manifold for Boolean Operations Dec 19, 2023
@Eric-Vin Eric-Vin marked this pull request as ready for review December 19, 2023 23:30
@Eric-Vin
Copy link
Copy Markdown
Collaborator Author

Hmm, seems to exhibit an unrelated bug (and I believe it's the one we're working on patching in https://github.com/BerkeleyLearnVerify/Scenic/tree/OpendriveParser).

Copy link
Copy Markdown
Collaborator

@dfremont dfremont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall (hooray for simplifying the installation procedure!) -- just a few minor comments and our discussion offline about unifyMesh.

@Eric-Vin
Copy link
Copy Markdown
Collaborator Author

Gah, this new failure looks to be related to this. Looks like a fix is already in the pipeline though.

@Eric-Vin
Copy link
Copy Markdown
Collaborator Author

Alright with the new fix and pinned Manifold version we should be good to merge.

@Eric-Vin Eric-Vin requested a review from dfremont January 12, 2024 05:25
@dfremont dfremont merged commit e18eb95 into main Jan 12, 2024
@dfremont dfremont deleted the ManifoldEngine branch January 12, 2024 20:50
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