Scaling Polygon does not change cross sectional area

Which tool versions are you using?

SDK: v14.23.0
Platform: v25.07.7
Python: v3.12
Isolation mode: venv

Current Behaviour

Scaling a polygon does not result in a change to the cross section area. Minimal example:

points = [
    vkt.Point(0, 0, 0),
    vkt.Point(10, 0, 0),
    vkt.Point(10, 10, 0),
    vkt.Point(0, 10, 0)
]

base_polygon = vkt.Polygon(points)

for scale_factor in [1, 0.75, 0.5, 0.25]:
    new_polygon = copy.deepcopy(base_polygon)
    scaled_polygon = new_polygon.scale([scale_factor, scale_factor, 1])
    print(scaled_polygon.cross_sectional_area)
    # all results returned as 100.0

Expected Behaviour

New polygon should have recalculated cross sectional area

Hi @miket ,

Thanks for finding out this bug, I am able to reproduce this.

I’ll raise a ticket internally, and update this thread.

Thanks, Rick