oschakravarthi Posted October 3, 2018 Share Posted October 3, 2018 Hi, How to get/calculate the Area and Center of a Facet of a Mesh? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
jerome Posted October 3, 2018 Share Posted October 3, 2018 the facet position can be simply got with this : http://doc.babylonjs.com/how_to/how_to_use_facetdata#facet-position the facet position is its center position For the area, please have a look at this snippet : Each iteration in the loop computes the area of the current facet. Don't forget the final division by 2. Quote Link to comment Share on other sites More sharing options...
ssaket Posted October 3, 2018 Share Posted October 3, 2018 @jerome I think, it would be better to add this on the facet page docs Quote Link to comment Share on other sites More sharing options...
jerome Posted October 3, 2018 Share Posted October 3, 2018 you're right, but the area computation is actually not a part of the facetData API Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 3, 2018 Share Posted October 3, 2018 Will add the surface area function as Snippet in the documentation, including a function to find the area of one facet. ssaket and Sebavan 1 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted October 3, 2018 Share Posted October 3, 2018 Thank you (the forum engine prevents me to add any more reaction emoticones for today) brianzinn 1 Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted October 3, 2018 Author Share Posted October 3, 2018 Thank you all ? Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted October 28, 2018 Author Share Posted October 28, 2018 Hi, how to mark a question as Solved? My question is very well answered and the problem is solved. Can you please mark it as solved ? Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 28, 2018 Share Posted October 28, 2018 Edit your first post in this topic and follow this 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.