Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

Is Sweep1 Broken in Rhino.Geometry and Grasshopper?

$
0
0

It works fine with circlular rails, but you can see that for rectangular rails, I get a crazy result.

This is the code:
rectangle sweep problem.py (855 Bytes)

What am I doing wrong?

Update:
It seems broken in Grasshopper, too. You can see it is sweeping the circle but not the rectangle.

sweep1 problem.gh (14.8 KB)

Update2:
Even weirder…it works in GH if I swap the rail and cross-section shape. It’s not giving exactly the result I was expecting, but it is performing the sweep.

Update3:
So, if I swap the rail and shape in the Rhino.Geometry.Brep.CreateFromSweep, it starts working (although I was expecting the sweep to flare outward at the bottom all the way around…which is what happens if you manually perform a sweep1 using the Rhino tools.)

Update4:
Okay, I just realize that when I swap the rail and cross-section, the sweep is skewed because it it is in fact treating the cross-section shape as the rail. So ignore Update3. I still wonder why it won’t sweep the rectangle in Grasshopper, though.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4159

Latest Images

Trending Articles



Latest Images