Grasshopper

algorithmic modeling for Rhino

Rotate Loft or boundary surfaces from one attractive point

Hello,

When I move the attractive point in Rh , I see that the different lofts don't rotate properly with respect to the center of the attractive point and the angle.
I think my problem is when the different angles take a negative value  I don't know how GH manage this.
How to solve this problem ?

Another question :
For experts, is the way I take for finding the normal vector, generated from the tangent vector of each point, are well done?

Thank a lot for your help

Views: 1028

Attachments:

Replies to This Discussion

Instead of fixing your rotation problem, I simplified your code by using the vector to the attractor point to construct the lofted surfaces.  So each one is constructed with appropriate orientation.

Attachments:

Joseph,

Many thanks for your help and quick response!
Waouh, big lesson for me !
Why do I do complicated things when you can do them simply?
Enormous simplification of the actual code
That's what I'm learning.
Great Respect for the time you spent for me

My pleasure.  The rotation approach you started with is perfectly valid and can be solved, I just got lazy and took a short-cut.  There are so many ways.  Keep it simple when possible.

Hello Joseph,

If you have a little bit time for me
I try to stay simple, and I just want more control point instead of arc but I don't understand why some boundary surfaces don't calculate and display.

What's wrong  ?

Thanks

Attachments:

The problem is that the top points (derived by dividing the top curve) are not co-planar with the other three points.  You can see this by eliminating the {0;3} input to 'Entwine'.  The three remaining points form a planar curve which makes a surface.

Effectively ....
Fatal and trivial error..Sorry I tired.
Thank you again for your intervention

Not clean clean... but very simple with Srf4pt !

Attachments:

Sure, that works.  Sorta... you can see the twist from the top view.

You can get a planar surface, arc or trapezoid, by determining the top points differently.  For example, instead of dividing that top line to get those points, create planes parallel to the vectors for each bottom point, then get the intersection of those planes with that top curve to get the top points.  'Simplify' or other means might be necessary get the data paths to match again to create curves and/or surfaces.

All planar surfaces because top points are defined that way!  See yellow group:

Attachments:

Here's a version that uses the same four points derived as before but instead of 'Srf4Pt', it uses 'IntCrv', 'Line' and 'EdgeSrf'.

Oh, and the top curve becomes a 'IntCrv' because, with plane intersections, why not?  Any curve will do.

Attachments:

Of course, once you have those planes, there are other possibilities:

Attachments:

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