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

Issue with Meshes Using Boolean Modifier in OBJ to MJCF Conversion #32

Open
cherylwang20 opened this issue Jun 7, 2024 · 1 comment

Comments

@cherylwang20
Copy link

Hello,

Apologies for opening another issue. I'm experiencing a problem when converting OBJ models to MJCF, specifically with meshes modified by a Boolean modifier in Blender.

Context: I am designing a rack intended to store beakers, created by using the shapes of the beakers to cut out corresponding holes within the rack model. This issue is somewhat similar to a previous problem I faced while designing a cylindrical base for a round-bottom flask. In that case, I was able to get around the problem by avoiding the use of Boolean operations, but for this rack model, alternatives seem limited.

Issue: When I compile the model without applying the Boolean cuts, it compiles successfully. Here's the model without the cuts:
Model without Boolean cuts

However, after applying the Boolean modifier and recompiling, I encounter the following error:

Error compiling model: Error: faces of mesh 'rack' have inconsistent orientation. Please check the faces containing the vertices 88 and 89.
Object name = rack, id = 0, line = 11, column = -1

Here is an image of the rack with a test hole cut and compiled:
Model with Boolean cut

Could you provide guidance on resolving this error? Any suggestions to ensure the Boolean modifier does not affect the mesh's consistency would be greatly appreciated.

Thank you for your assistance!

Please see here for my blender model and obj file:
rack.zip

@cherylwang20
Copy link
Author

cherylwang20 commented Jun 7, 2024

Update:

I managed to successfully compile the model by switching from 'Exact' to ‘Fast' solver within the blender.

Nevertheless, I am facing two issues:

  1. The # Convex Hulls is always 6 after compilation no matter what value I set it to.
  2. When I import the sub-meshes into MuJoCo, the area around the cut is not modeled correctly.

image

I would greatly appreciate any help! Please see below for the obj files created:
rack_new.zip

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