J.M.'s answer to Extruding along a path related to custom cross-sections appears to answer a question I have been puzzling over for some time. I am interested in producing a tube with the stadium or stadion cross-section of oblong ductwork. I look at the code and am lost as to how to use it. Any suggestions?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
I'll just dissect a little @J.M.'s answer for you: First define a path:
Now extract the
Do the same with the cross section:
Get those lines:
Now use @JM's function:
Edit Another example:
...And a last one:
|
|||||
|





TubePolygons[]. Please be more specific about your doubts. – belisarius Feb 19 at 19:09ListPlot@csyou can see the cross section @J.M is using! So what you need to do is discretize your custom cross-section into some 2D points and declare it ascs. And you will be done. – PlatoManiac Feb 19 at 19:21