arek3D Posted August 3, 2018 Share Posted August 3, 2018 Hi! I have created a custom mesh like this: new BABYLON.Mesh("custom", this.scene) And after added simplify() method, nothing has been changed. I have created a playground for testing this issue. As you can see, the same settings in simplify() method change the structure of sphere, but do not change my custom mesh: https://playground.babylonjs.com/#JT9SFV#4 Is it a bug, or it is impossible to add simplify() method to custom mesh? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2018 Share Posted August 3, 2018 it should work but your mesh is really simple already and furthermore there is no common vertex (all faces have independant vertex) which is not ideal for the simplifier arek3D 1 Quote Link to comment Share on other sites More sharing options...
arek3D Posted August 3, 2018 Author Share Posted August 3, 2018 I am working with meshes where are huge amount of faces. This is only an example but the behaviour is the same. I think the second part of your answer is the reason. So here is the next question - how to weld these vertexes to have one object instead of bunch of faces? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2018 Share Posted August 3, 2018 well, you would have to go through the vertices and find the ones that share the same positions and normals (and then update the indices to point to only one of them) arek3D 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 3, 2018 Share Posted August 3, 2018 See if this helps http://doc.babylonjs.com/snippets/minimise_vertices GameMonetize and arek3D 2 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.