Grasshopper

algorithmic modeling for Rhino

Hi,

I'm trying to move a 3d point with a 3d vector that are both input of my vb component.

bellow the code that i copy from david rutten here http://www.grasshopper3d.com/forum/topics/translate-curves-with-vb

Private Sub RunScript(ByVal x As Point3d, ByVal y As Vector3d, ByRef A As Object)

    A = x.Transform(Transform.Translation(y))

  End Sub

but i only get an error BC30491 "this expression doesn't produce any value"

Do you have any sugestions?

Thanks in advance.

Views: 451

Replies are closed for this discussion.

Replies to This Discussion

x.Transform(Transform.Translation(y))

A = x

The Transform method on points does not return a new point (I agree it should!), but instead modifies the existing point.

2 days that i work around. both solutions work nice. And it's so simple..

thanks a lot

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service