Skip to content

Modelling question - How to bend cylinder to get tube #277

Answered by njroussel
jaroslavknotek asked this question in Q&A
Discussion options

You must be logged in to vote

I believe everything you mentioned is correct.

However, I'm not completely sure of what you mean by "template of a cylinder". If you're going to try to stitch together an existing mesh model that seems a bit painful and you might as well do it directly in Mitsuba using the mesh manipulation tools.
Here's what I would suggest:

  1. Place N points on the curve such that subsequent points are at equal distances from one another (including state/end points of the curve).
  2. For every point generate D vertices for a circle. The circle is centered on the point and is directed along the curve. These vertices will be the final vertices of the cylinder
  3. "Connect" subsequent circles by specifying the faces…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jaroslavknotek
Comment options

Answer selected by jaroslavknotek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants