Grasshopper

algorithmic modeling for Rhino

I remember in the last version of rhinocommon sdk I can write something like this
Dim xx As Point3d = ptA - ptB
really clean and nice...

Buy now I have to write in this way,
Dim xx As Point3d = New point3d(ptA - ptB)
why more cumbersome?

Views: 1144

Replies to This Discussion

Hi Lotus,

we can add this cast, but I wonder if it's really a good idea. I'm afraid it might muddle up the distinction between points and vectors. I'll talk to Steve about it, see what he thinks.

--
David Rutten
david@mcneel.com
Seattle, WA
OK,thanks anyway..
I just added the implicit conversion from Vector3d -> Point3d, Point3d -> Vector3d, Point3f -> Point3d and Vector3f -> Vector3d.



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

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service