algorithmic modeling for Rhino
Hi everyone,
I'm trying to "dot my i's and cross my t's" for my component made in Visual Studio:
I'd like the Transform (matrix) output discription to be like the native GH transform components, e.g.: "Rotate (45.0°) about +Z".
Can someone please tell me what I need to know and do to get that working?
Kind regards, Pieter
Tags:
Grasshopper uses a set of special classes for transformations. Ultimately these classes use Transform matrices, but they know what their internal matrix is all about. If you just output Rhino.Geometry.Transform instances, then they will get wrapped into a generic transform type.
Have a look in the Grasshopper.Kernel.Types.Transform namespace to see if any of the transformation classes in there do what you need.
Furthermore these transform types get stored into a Grasshopper.Kernel.Types.GH_Transform class. This class (which is a type of Goo) has support for combining multiple transformations while keeping their individual characteristics intact.
I found the needed ITransform interface :) Thanks for your time and effort David.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by