MatterHackers / MatterControl

3D printing software for Windows, Mac and Linux
http://www.mattercontrol.com/
BSD 2-Clause "Simplified" License
453 stars 180 forks source link

Multiple Objects in 1 STL #4953

Open mstange42 opened 3 years ago

mstange42 commented 3 years ago

Bug Report

Expected Behavior Parse/Slice Correctly

Actual Behavior In the case Im supplying, instead of doing a union/addition, it does a difference/subtraction. There are also case where it does other weird things I just don't have any handy.

MatterControl Build Number All

Capture Test.zip

larsbrubaker commented 3 years ago

This has lots of self intersecting geometry which can have an undefined result. It is hard for the algorithm to find a solution. I tried to repair it with NetFad and it gave an error. I would recommend you try to repair it with another mesh tool (possibly meshmixer or meshlab. Or if you can re-model it.

I also tried this online tool and it produced Test_fixed.zip as a result.

Here is a screenshot of the fixed mesh. image

We will keep this as a test model (if its ok) to try and improve the algorithm, but it seems like this may not be fixable.

mstange42 commented 3 years ago

The easy thing to do, is just separate the objects. If i load them individually it works as intended. It is no different from dropping 2 primatives and putting them together so they intersect.

On Mon, Jan 11, 2021, 8:09 PM Lars Brubaker notifications@github.com wrote:

This has lots of self intersecting geometry which can have an undefined result. It is hard for the algorithm to find a solution. I tried to repair it with NetFad https://service.netfabb.com/service.php and it gave an error. I would recommend you try to repair it with another mesh tool (possibly meshmixer or meshlab. Or if you can re-model it.

I also tried this https://www.formware.co/onlinestlrepair online tool and it produced Test_fixed.zip https://github.com/MatterHackers/MatterControl/files/5799308/Test_fixed.zip as a result.

Here is a screenshot of the fixed mesh. [image: image] https://user-images.githubusercontent.com/1158332/104260190-d5183500-5437-11eb-9bd4-fd0585520f71.png

We will keep this as a test model (if its ok) to try and improve the algorithm, but it seems like this may not be fixable.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MatterHackers/MatterControl/issues/4953#issuecomment-758346194, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNHNCPZOIPLDQKKZFDCYY3SZOVMXANCNFSM4V6OTCBA .

larsbrubaker commented 3 years ago

Again, thanks for submitting this issue. The next release of MatterControl will correct this for this model.

image