masterdon Posted November 1, 2017 Share Posted November 1, 2017 Hi Team, I am working on a floor planner. I have implemented freewall drawing feature using ribbons. I am also setting the borders to freewall using enable edge rendering. This works fine for individual ribbons. however, there can be a situation where multiple freewalls are connected to each other. in this case, i want borders to come for complete path and not individually. i tried merging the meshes using `BABYLON.Mesh.MergeMeshes` . however, the borders are coming still individual Something similiar to freewalls fro, homestyler (https://www.homestyler.com/floorplan/?&lang=en_US). what is the best way to implement something close to this. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 1, 2017 Share Posted November 1, 2017 Hello, do you mind trying to build a repro in the Playground. I'm not sure to picture correctly what you need Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 2, 2017 Share Posted November 2, 2017 Hi guys. If I may butt-in... https://www.babylonjs-playground.com/#1IDZCU#7 DK, it sounds like the edgesRenderer is treating merged meshes... as if they are not merged. (see PG) I don't know if I have ever tried an edgesRender on a merged mesh. I think Masterdon would like the edgesRender to do WHOLE merged-mesh. Treat it as one "contiguous?" mesh. Currently, separate-object edgesRendering. *shrug* Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 2, 2017 Share Posted November 2, 2017 EdgesRenderer is analyzing faces only. You can use the second parameter of enableEdgesRendering to check vertices instead (but slower). The merge process does not merge vertices but add every mesh side by side. Hence the current behavior Wingnut 1 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.