Unexpected results from Sweep1

Below is a simple Sweep1 demo file:

The Rail & Sweep curves look like this:

But the result looks like this:


It take almost 10 seconds to generate and a few more to display on my system.

The result looks a lot different (but no better) when the Sweep curve moves either way in the X direction. But everything looks OK if I substitute a simple circle for the Sweep curve.

I tried Rebuilding and Reparameterizing the Rail curve - but these changes don’t help. So I thought maybe a rail curve can’t have kinks in it. But smoothing them out didn’t help either. Could there be some other tweak that will produce the expected result?
SweepDemo.gh (16.4 KB)

Not sure what you are trying to achieve. I moved the section closer to the rail and shrinkwrapped the result. I think it looks cool.

I’m also not sure what you want to get. Sweep2 with a circle as a rail also produces an interesting shape

Thanks Martin - I should have included an image of me desired result. It’s like this:


Only with what I call crenelated sides instead of a flat/straight one.

I’ve seen things like you showed, but don’t understand how that can be the result from a Sweep1 with a horizontal Rail and vertical Sweep curve.

Michaelkreft: that’s close to what I’m trying to make, so I’ll try Sweep2 with a smaller diameter version of the Sweep1 curve on the top.

This all seems quite strange and unexpected - I’ve done lots of shapes with Sweep1 using different Interpolated curves as the Sweep and never had a problem like this.

What you show on the latest screenshot is a simple straight extrusion, no?

Yes, but he wants the profile to sweep the gear shape while always being oriented radially towards the center, I think.

You both are correct.

I’m getting some very strange results when I use Sweep2 with the Sweep1 (bottom) curve moved vertically as the Sweep2 curve. It seems like there is some very strange effect caused by the corners in the rail curves. What I’m trying to do is find a simpler way to create something like this:

Ok I see. Why not go the mesh way? Divide the surface and map little cubes…

I try not to use meshes because they seem to behave in unexpected ways - which I realize is a brain problem and not a mesh problem. I’ve got a method that works, but it’s somewhat complex and it just seemed to me the Sweep1 approach would be simpler if I could get it to work.

Based on the odd things I’ve seen just now it looks like the sweep routine is taking each straight line section of the rail curve and doing something like an extrusion with it.

But when I take out the corners by filleting the Sweep1 simply fails. Sweep2, on the other hand, does this:


I think it’s time for the Ralph Cramden quote: “What a revolting development this is.”

1 Like

I could create the surface, but it wouldn’t be with a simple rail…

Exactly correct - the photo I showed above is what I was trying to recreate with a simpler approach. When I look at the surface edges of this method I can see the desired curves in there, but there’s also loads of extraneous stuff that would be difficult to eliminate. And doing that would not achieve my objective of finding a simpler solution for an approach I already have.

while I think I understood (maybe :slight_smile: ) the geometrical behavior you want to achieve for the green faces, I didn’t get how you want the blue ones to behave

SweepDemo_inno.gh (30.5 KB)

this is not a sweep of course :slight_smile: but just for understanding the type of geometry you are looking for

Man, I am always so fearful that someone is going to solve something that I am working on faster than I can… :frowning:

Just flat, I think.

It looks like you got it right-way to go. I’ll post more later tonight. Thanks.

Rail revolved instead of sweep1 or 2. Looks a bit closer to the picture you posted.

2 Likes

I was thinking this.

This is how that definition looks like:

A shame that sweep does not have options the way loft does in Grasshopper.

Thanks inno - it never would have occurred to me to locate sweep curves the way you did. I tweaked the curve a bit and added some stuff to make an inside surface. It ends up as a nice Closed Brep:


There are still a few tweaks left to do, but your method works fast, calculates and renders quickly, and is much simpler than what I have now.

Volker Rakow & Michaelkreft:

Yes, RailRevolution works just like I thought Sweep1 would work. (I’ll leave it to the McNeel gurus to figure out why it doesn’t) But clearly it does not. By using RailRev the whole process becomes much simpler. It also offers the benefit of not requiring a circular cross section, which means I’ll be able to use Rail shapes like this:


which results in this:

I don’t think this is up to the McNeel gurus to figure out. Sweep is working exactly as intended. You may need to review the basics of how the freeform surface generation tools work.

This is, for instance, how you would create the surface with Sweep2; by either moving the profile to the gear or scaling the gear to the profile:


SweepDemo_vr1.gh (52.4 KB)

Also, I find it a bit unfair that you gave yourself the solution when it was Michael that delivered that to you.

I’d be interested to know how you are getting the inner surface. That is something that I would not have known how to do.

Using Rail Revolution will not give you flat sides of the teeth to this figure.