Grasshopper

algorithmic modeling for Rhino

Hi!
i am writing a special VB component and have difficulties on the tranformation of objetcs.
I want to mirror a surface.
So i create a mirror tranformation from the OnXform class. the I use 'Transform' to apply it to the surface (or the point). It works and send a true message but nothing is drawn. I would like to know how to draw this transformation !

thanks in advance

Dim xform As New OnXform ()
xform.Mirror(origin, normal)

surf.Transform(xform)

Views: 1619

Replies to This Discussion

Hi Chloe,

are you assignin the transformed surface/point to a Script output parameter?

If you are, does the tooltip for that output parameter at least claim there is geometry in there?

--
David Rutten
david@mcneel.com
Seattle, WA
Hi,

I tried to assign an output parameter called " surfmir" like this :
surfmir = surf.Transform (xform)

but it is certainly not the good way...
How can I write it ?

thanks for your response,
chloé

PS:I am a young architect working on a thesis about a specific folded modular element (see on www.archiwaste.org), and I want to modelize it with grasshopper. So thank you very much for the answer...it will really helps me.
Hi chloe,

The output of *.transform is usually a boolean, which means it would simply return a true of false telling you if the transform was successful. This implies that if you assign an output parametre to it, it would only give you a boolean value, not the geometry.

If the output of your script node is called 'A' (default), all you need to do is:

surf.Transform (xform)
A = surf

That simply tells GH to provide the final 'surf' as the output of the node. If you have renamed the default output 'A' to something else, just make sure the same name is assigned to the script inside the node.

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