I am having problems getting the length and breadth of a rectangular face in SketchUp. I am using this code:` def height
fheight = 0
bb = self.bounds
if bb.depth != 0
fheight = bb.depth
else
fheight = bb.height
end
return fheight.to_m
end
# Method to return the width of a face in m
def width
fwidth = 0
bb = self.bounds
if bb.depth != 0
fwidth = Math.sqrt((bb.width)**2 + (bb.height)**2)
else
fwidth = bb.width
end
return fwidth.to_m
end`
But I am not getting the correct dimensions of the red rectangular face in attached screenshots.