Grasshopper

algorithmic modeling for Rhino

help me bend of a flat shape following a certain radius

Hi all !

Hopefully the image below is relevant enough to understand what i am going for. I have a planar shape that i want to bend 90 degrees so that the "crease" has a certain radius.

I would like to do this preferably (but not necessarily) keeping the geometry as NURBS.

Thanks for taking the time!

Views: 1804

Replies to This Discussion

How do you want to define the bending properties?

--

David Rutten

david@mcneel.com

preferably as an angle and a radius for the "fillet".

i guess i could make the end shape out of 3 surfaces - the planar ones and the curved one (where it bends), and define the lateral edges of the curved one by making it's flat(developed) equivalent in order to get the uv coordinates of the points that define the edges

I'm trying to make a bending space morph. It seems to finally work for my own testcase, but there could well be bugs in it still.

The input is some geometry and one arc that defines the bending. I attached the the Transform.gha which has the component. Please test the living daylights out of it.

It's probably much slower than the Rhino bend command. And it would also be a good idea to explode curves ahead of time and only morph those that are in the bending region. The ones 'before' and 'after' the arc can just be transformed linearly. 

--

David Rutten

david@mcneel.com

Attachments:

well isn't the timing just dandy... Thanks a lot! i'll give it a go tomorrow, see where it gets me

Well, the timing is not particularly surprising. You asked for it, I made it...

--

David Rutten

david@mcneel.com

First of all, thanks a lot (i'm actually flattered by this)! Second of all, i'm so excited it works!

I wanted to see if the bent surface has the same dimensions as the original so in order to do this i tried to unroll it and i discovered the Rhino Unroll component works only if the angle between the arc and the surface orientation is a maximum of about 5.2deg (0.09rad), as in the attached pic. For higher angles it says that the surface has double curvature.

I also attached the rhino file containing the "double curvature" surface.

I am now trying out other arcs and whatnot to see how it works and where there are particularities. I be back.

PS: didn't know you could write this kind of stuff in expressions: x-5*UnitZ Smoove!

Attachments:

here's another thing i discovered: the direction of the arc is important (meaning if the curve is flipped or not). it needs to flow with the surface, otherwise it gives weird results (doesn't bend the surface, but rotates it, as in the attached example)

Attachments:

...i discovered the Rhino Unroll component works only if the angle between the arc and the surface orientation is a maximum of about 5.2deg (0.09rad)...

Could be due to tiny amounts of double-curvedness. The morphing should be a completely area and length preserving, developable operation. However geometry is resampled during a morphing operation which may introduce ripples if a principle deformation direction is not (anti)parallel to control-points directions.

PS: didn't know you could write this kind of stuff in expressions: x-5*UnitZ Smoove!

Cool huh?

--

David Rutten

david@mcneel.com

something i find a bit off is that the Arc component doesn't let me introduce negative angle values, in order to make the arc form the other way around. I guess i should flip its base plane, but there is no flip plane component from what i see (there are workarounds, off course, but you taught us to be lazy bastards...)

Yeah the Arc needs fixin'

I'll make sure that angle domains are handled properly in the next release.

--

David Rutten

david@mcneel.com

It's a bit weird. The only way I can seem to fix this properly means the resulting arc may have a different plane rotation and angle domain than specified. It will look correct, but not be exactly what you asked for, as what you ask for may result in an invalid Rhino arc.

Is that ok? Doesn't sound ok does it?

--

David Rutten

david@mcneel.com

At any rate, you now always get a valid arc, even though the arc properties are changed if I had to fix it after the fact. This is technically a breaking change that could invalidate existing GH files, however I think the new behaviour is so much better than the old and the likelihood that it breaks something is so small that I'm willing to put it out there for the next release.

--

David Rutten

david@mcneel.com

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