algorithmic modeling for Rhino
Hello, I have another basic question...
if anyone can help, that would be great
what I want to do is to select points from surface by using graph mapper..
In other words, selected points shapes what is showing in graph mapper.
3dm and GH are attached
Thanks
Seung
Tags:
One aspect of your project which might be getting in the way is you are using a Trimmed surface for you input. Therefore any reference to its UV will include all the Original un-trimmed surface domain. I would approach this by rebuilding the surface to get an easier frame of reference and then constructing the splitting curve from this.
Thanky Danny
One thing I am not really clear is about conversion from x,y coordinate to U,V
Also, what was the clue to extrude in x direction?
Thanks
Seung
The XYZ is a crude way to get the UV in to the right format. I could have used an Fx2 component renamed the inputs to u and v and then written in the Formula an expression like format("{0},{1}",u,v) but XYZ will do the job, but I admit it is a tad confusing.
For this case I used X but you may have to come up with a different method maybe using Project and finding the average surface normal as the vector.
The XYZ isn't crude at all. The UV input expects a generic point and that is exactly what XYZ creates. It's just that for UV coordinates X is interpreted as U, Y as V and Z is ignored. So the generic 3D point XYZ coordiantes are used to store the 2D UV coordinates. No extra stuff needed, just ignore one dimension.
Generating the UVs with a formula is overhead, because you are generating a string from numbers. At the UV input, this string is parsed back to numbers and used to create a generic point that is then used as described above.
The only down side to XYZ is that it does create real geometry that has no purpose in the big scheme of things.
Maybe there is a use for a UVW component which behaves like the XYZ but you don't get any geometry.
Not true, at least from what I can read from the code.
GH_Point simply wraps a Rhino Point3d. Rhinos Point is a structure holding only the the three coordinate values. GH_Point has the ability to draw a preview in the Rhino Viewport when asked. There is no actual geometry stored other than the Rhino point.
The UV input is of type GH_Point. So whatever you plug into this, the parameter makes sure at this point, that a GH_Point object is created for each valid input object that can be converted to a point. Only difference to the XYZ component is, that input params are not previewed, so you don't see the UV point in the viewport. It's just the same as disabling the preview of XYZ.
Song try this one
cheers
Haha.^^ you are genius!!!^^
Awesome..
be my private tutor
Thanks
Seung
Just send me UR question ,, my pleasure
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by