algorithmic modeling for Rhino
Could be a good idea. Just to be sure are you aware of the radians to degrees and degrees to radians components?
Hi Michael, Yes... I do. Just imagine if I had to handle everything in radians! I can't even imagine actually. ;). Thanks though.
Hmm, unfortunately the Radians->Degree converter is only available on Number parameters, Sin, Tan etc. use Generic inputs since they can operate on many different data types (i.e. Integers, Numbers, Complex Numbers, Points, Vectors and Domains). They might not all make sense but almost all Arithmetic Function components work this way.
I can add that function of course but it'll take a little bit of work.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Well, it's done. I have no idea whether it make sense to define angles in degrees for data types other than integers and numbers, but all trig components should have Degree options come the next version.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David! Thanks. I didn't know that Sin, Cos, etc. use Generic inputs. A stupid question then. What does cos(vector) could be used for? I tested it for a vector, and output is a new vector of {cos(x), cos(y),cos(z)}.
I couldn't think of another way to implement Cos() for vectors. The thing is, all those function components derive from a basic component which accepts any kind of data. Whenever a type is not supported by a specific operation you'll get a red component, but I try to supply functionality for all types.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Got it! Thanks. I can't think of any other way too. I was just wondering if there is a special case to use it. -Mostapha
I was just wondering if there is a special case to use it.
Probably not. I certainly can't think of any.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by