extrude with sin function as scale behaves strangely #58

Closed
canadaduane opened this Issue Sep 10, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

canadaduane commented Sep 10, 2012

I am trying to create an "undulating cylinder" of some kind, perhaps like a fancy chair leg or something. The thought was to use a 2D circle and extrude it with a varying scale function, a simple sin function to start with. Strange things ensued.

Pleasant3D Screenshot

Blender Screenshot

linear_extrude(height=20, center=true, scale(h)=0.5+cos(h)) {
  circle(10);
}
Collaborator

julialongtin commented Mar 7, 2017

could you provide new screenshots, and re-test?

Contributor

canadaduane commented Mar 9, 2017

Aside from the poor render quality, this appears to work now.

image

Collaborator

julialongtin commented Mar 9, 2017

Contributor

canadaduane commented Mar 9, 2017

Here's with -r 0.5

image

Here's with -r 0.2 (10 sec. render time)

image

I tried -r 0.1 but it took longer than a minute, so I gave up. That said, -r 0.2 is pretty good. It would be nice if we had a more precise algorithm for low-resolution though.

@canadaduane canadaduane closed this Mar 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment