Grasshopper

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

Views: 813

Replies to This Discussion

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.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service