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.

Type: float


height

Height of the rectangle.

Type: float


area

Area of the rectangle.

Type: float


perimeter

Perimeter of the rectangle.

Type: float


centroid

Centroid position [x, y, z].

Type: list


See Also