Hi, sorry for disturb
I am a new to grasshopper.
I recently encountered a problem. I want to make the ellipses on these two S-shaped curves stand out from each other while the longer direction of the ellipses can be perpendicular to the S-shaped line.
Now my ellipse stand out from each other, but the longer direction of the ellipses is not perpendicular to the S-shaped line.
Is there any Teachers knows how to program it?
Or Teachers can reprogram the grasshopper. Thanks a lot
(Grasshopper is very suitable on my drawing for modify and perform not same shape and any vector or perpendicular vector,so I need the grasshopper program file) Thanks a lot
Orient needs planes as input. And then you have to create those planes the same way, so they will fit nicely in place.
For Source plan, I used one edge of the brep and the Center of Area, you already made.
For target plane it was more difficult. I started with Perp Frame, but that did not work as I hoped for. After some puzzling I used circles (but could also be done with subcurve to get points “sidewards” on the curve.
Then both where made with Plane, Line + 1 Point.
(see documentation for how this all works.
PS: With the method I used, the planes are just a bit “off”. It can be done more precise. If you need that, let us know.
PS2: Probably there are others here, what can solve this plane-thing more elegant. But it works.
Advice is to place your components nicely on your canvas, so it is easy to “read”.
Delete components you do not use.
Make groups so you know what belongs to each-other.
NB: Remember a plane needs at least 3 points, or 1 line and 1 point (not in same line) to be made.
Excuse me, I must be more specific and clear in my question.
Presume the two curves are not in parallel planes (like they are now).
I made this example, where I moved one curve quit a bit out of position.
Using the curve A or curve B as input gives different results.
My question is how (in such a case) one would best find the “average” of both.
To your question about average of two planes (I think?), I don’t have a ready answer. What’s the point, that is, what’s the objective? Using your distorted curves in my version ‘b’, I get this (thanks to Loft instead of ExtrCrv). But who wants twisted elliptical solids
Yep. you are right.
The learning question I had, was: If I could have used some actions directly on the planes, maybe vectors, to achieve this. Now I fell back on the old-fashioned geometry from my high school days.
Working with vectors/planes is still hard for me, so the more I learn…