Thank you all,
My scene looks is an apartment. I need to show the dimensions of the floor like below.
I cannot use BoundingBox as my floor can be in a non rectangular shape (could be like L).
The algorithm I thought of is,
Step 1: Get all the facets whose normal is (0,1,0). //Now I will have all the triangles who form the top of my floor.
Step 2: Somehow do a polygon union/merge of all these triangles. //Now I will have a polygon with all the edges.
Step 3: Draw the arrows and edge lengths using DynamicTexture.
But I am not sure how to achieve this. I think I can achieve the step 1 with VerticesData. but could not find a way to achieve the step 2. Do we have any such algorithm available in BABYLON? If not, can you please recommend a library for this?
If there is a much simpler approach than my algorithm, please suggest.
Thanks a lot for your support.
