C#: ITransformable?

Is there a common interface that objects with Transform() use that could be implemented for a custom class? Looking through the docs suggests no, but then I’m wondering how something like a Move or Transform component in GH handles all geometry cases…

It would be great if custom objects could be transformed and manipulated using standard components :slight_smile:


I think you may be looking for IGH_GeometricGoo interface. This is implemented by the standard geometric components, like GH_Brep, GH_Curve etc.

You would, however, typically be deriving an inherited class from GH_GeometricGoo<T>, with T your custom object type, and override a lot of its member functions, like .Transform()

1 Like

Great, thanks!

I didn’t realize that IGH_GeometricGoo had an overridable Transform method :slight_smile: