Transform of different Geometry types returns different values

Hello Discourse,

I was wondering if there is a reason why Transform returns bool for GeometryBase items but for Vectors and Points it returns Void?

I’m transforming a lot of geometry dynamically and I’d love confirmation that the transformation worked for each object.

– Callum

Hi @csykes,

Transforming simple data types is a simple mathematical operation. Thus no validation or returning true or false is really necessary.

However, there are a lot of class that inherit from GeometryBase and not all transformations work with all classes. Thus, the return value.

– Dale

Hi @dale,

This is what I assumed. Makes total sense!

– Callum