georage Posted August 1, 2016 Share Posted August 1, 2016 It's easy to dispose a mesh mesh.dispose(); but I am having trouble with the syntax for removing EdgesRenderer after I have created it. I could set the width of the edge to 0.0, of course, but I want to toggle it by removing if possible, since I figure there is some overhead for drawing the edges. This works, but surely I really want to know how to use the dispose method! (and understand the docs better) mesh.edgesWidth = 0.0; The following page says there is a dispose method, but how does that look exactly? https://doc.babylonjs.com/classes/2.4/EdgesRenderer Thanks for any assistance. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 1, 2016 Share Posted August 1, 2016 Hi G! If I were you, I would not worry about disposing it. Edges rendering is a "feature" on mesh-class objects. You can just turn it on/off. http://www.babylonjs-playground.com/#8ULNX#38 Line 48 is probably the line that you will most enjoy. georage 1 Quote Link to comment Share on other sites More sharing options...
georage Posted August 1, 2016 Author Share Posted August 1, 2016 very cool! thanks wingnut. I swear I did not see that in the docs anywhere, but I have been accused of blindness. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 2, 2016 Share Posted August 2, 2016 You did not see it in the docs, because it wasn't there. It is now, or will be, after the next docs "build". Thanks for the docs help. Well done. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 2, 2016 Share Posted August 2, 2016 Docs merged 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.