potree / PotreeDesktop

Desktop version of Potree
Other
169 stars 48 forks source link

Incorrect area measurement of side wall #21

Closed rajanidulal closed 4 years ago

rajanidulal commented 4 years ago

Hello,

I am using PotreeDesktop to calculate the area of a room. While calculating the area of items on the floor or ceiling, it gives the correct measurement. However, when I tried to calculate the area of an item on the wall or from side view, it does not give me the correct area. I tried rotating and measuring from different angles but the area is still incorrect. Can anyone please help me through this? image

Thank you!

midnight-dev commented 4 years ago

This is due to the core Potree area measurement only taking x & y coordinates into account. For reference, see the getArea() method found in /src/utils/Measure.js around L516.

rajanidulal commented 4 years ago

Got it. Thank you @midnight-dev