Grasshopper

algorithmic modeling for Rhino

I am trying to change the CoodinateSystem of rhino... at least for a little while

 

I have tried:

(ByVal pl As Plane, ByRef A As Object)

plane.WorldXY = pl            

 

Result:

Error: Property 'WorldXY' is 'ReadOnly'.

 

 

also

 

(ByVal pl As Plane, ByRef A As Object)

rhino.DocObjects.CoordinateSystem.World = pl    

 

Result:

Error: Constant cannot be the target of an assignment. (line 86)

 

any ideas?

I need to get the x and y value of points to rank them but I need their x and y values to be based on the input plane... not the worldXY 

 

Views: 1529

Replies to This Discussion

You can't change the coordinate system. It's fixed. You'll need to perform the coord-system mappings yourself. Create a transform matrix using Transform.ChangeBasis and supply the World plane and your special plane. Then you transform the points which converts them from world-space to your-special-space.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Or you could use Plane.ClosestParameter() and Plane.DistanceTo() to get the u, v and w values of a point in plane space.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

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