Skip to main content

RectangleMeasurement

Other

Rectangle measurement result containing dimensions, area, perimeter, and centroid.

Import​

import ScriptingApi as api

# Access the class
# RectangleMeasurement is available via api.RectangleMeasurement

Properties​

width​

Width of the rectangle, in millimeters (mm).

Type: float


height​

Height of the rectangle, in millimeters (mm).

Type: float


area​

Area of the rectangle, in square millimeters (mm^2).

Type: float


perimeter​

Perimeter of the rectangle, in millimeters (mm).

Type: float


centroid​

Centroid position [x, y, z].

Type: list


See Also​