Grasshopper

algorithmic modeling for Rhino

What would be an easy approach of doing so?

One imput is a plane (or a list of ones). And I want from some moment in the code for every x to become x1, y -> y1, z -> z1?

Views: 1330

Replies to This Discussion

Retard

:(

You can use Plane CP to map xyz coordinates onto uvw coordinates. Or you can use the Orient component to convert xyz coordinates into x'y'z' coordinates.

Ignore John, he's a dick.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Ah, this is posted in the VB/C# forum, are you looking for a programmatic solution? If so, which language?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Visual basic, yes I am learning scripting and i'm trying to do as much in VB as I can

It's very similar in VB, you can use Plane.ClosestParameter to get the u and v parameters (or s and t if you want). Then use Plane.Distance to get the w value.

Or you can create a Transform matrix that defines a ChangeBasis transformation. 

Dim pt As Point3d = ....

pt.Transform(Transform.ChangeBasis(Plane.WorldXY, targetPlane))

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

why does life have you down sir?

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