oschakravarthi Posted November 24, 2018 Share Posted November 24, 2018 Hi, I am getting unexpected results when I work with CSG. I am trying to do the below stuff with my model which is a flat/apartment. 1. In my model, merge all the meshes which are floors. Get a CSG. 2. foreach other mesh, if it is below 1.6 meters from any floor, 2.1 find out its position if it is placed on the floor. 2.2 Subtract this area from the above CSG Now the CSG will have holes. I use this CSG to create a navigation mesh so that if there is a hole, it means we cannot navigate there. The same stuff is implemented in a sample. It is working fine. https://www.babylonjs-playground.com/#QSS0FZ#6 When I try this with real model, I am getting strange results. https://www.babylonjs-playground.com/#QSS0FZ#13 All the holes are kept one side only. The core logic in both the scenarios is exactly same. No idea why it is not coming properly I have been struggling on this for more than 8 days. Can you please help me Thanks in advance @trevordev, @brianzinn, @Sebavan Please help me. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 26, 2018 Share Posted November 26, 2018 Could you please create a smaller repro ? It is really hard for us to work with such a large scene. It always help to have an answer quickly. Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted November 26, 2018 Author Share Posted November 26, 2018 11 hours ago, Sebavan said: Could you please create a smaller repro ? It is really hard for us to work with such a large scene. It always help to have an answer quickly. Hi @Deltakosh @TrevorJacobs @Sebavan I changed my approach and tried a different approach but facing issues there also. Please help me in this post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.