Print at Aug 11, 2026, 3:15:18 AM

Posted by Puybaret at Jul 11, 2011, 12:38:36 AM
Re: how to get area of room
Room#getArea does work correctly.
float s1[][] = { { 0, 0 }, { 0, 4 }, { 4, 0 }, { 4, 4 } };
This shape has actually an area of 8.

float s1[][] = { { 0, 0 }, { 0, 4 }, { 4, 4 }, { 4, 0 } };
This square shape has an area of 16.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator