Drawing with TubePlot: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[http://s1.shard.jp/galeach/new189.html asian ezine ] [http://s1.shard.jp/galeach/new100.html tsunami diaster in asia ] [http://s1.shard.jp/losaul/australian-photography.html bridal gown australia ] [http://s1.shard.jp/olharder/autoroll-654.html index] [http://s1.shard.jp/frhorton/ufkvsduv1.html africa plains pictures ] [http://s1.shard.jp/frhorton/lpujl5mms.html african amercian slave music ] [http://s1.shard.jp/galeach/new113.html body image and acceptance of asian women ] [http://s1.shard.jp/losaul/centacare-australia.html maria sharapova australian open pictures ] [http://s1.shard.jp/frhorton/5hrrb99yl.html the apartheid of south africa ] [http://s1.shard.jp/olharder/autoroll-654.html site] [http://s1.shard.jp/olharder/autoroll-654.html top] [http://s1.shard.jp/frhorton/17h5odjs2.html central african republic political organization] [http://s1.shard.jp/bireba/g-data-antivirus.html panda antivirus platinum 7.05.03 crack ] [http://s1.shard.jp/olharder/automated-gasoline.html distributeur automatique de billets ] [http://s1.shard.jp/frhorton/5stqghbq6.html south africa airlines london] [http://s1.shard.jp/galeach/new165.html tiger airline asia] [http://s1.shard.jp/bireba/notron-antivirus.html mcafee home free antivirus ] [http://s1.shard.jp/galeach/new148.html euthanasia mercy killing ] [http://s1.shard.jp/losaul/moosehead-beer.html lazy boy recliners australia ] [http://s1.shard.jp/bireba/antivirus2003.html antivirus expiration ] [http://s1.shard.jp/olharder/autoroll-654.html domain] [http://s1.shard.jp/losaul/digital-broadcasting.html outdoor speakers australia ] [http://s1.shard.jp/galeach/new97.html asian nud ] [http://s1.shard.jp/galeach/new114.html enrique iglasias photos ] [http://s1.shard.jp/galeach/new25.html asian single dating ] [http://s1.shard.jp/frhorton/qpxrkrvqf.html african american line literature time ] [http://s1.shard.jp/bireba/norton-antivirus.html norton antivirus 2004 serial] [http://s1.shard.jp/olharder/brandon-auto.html head automatica album track list ] [http://s1.shard.jp/galeach/new30.html asian monsoon season ] [http://s1.shard.jp/galeach/new61.html euthanasia in holland ] [http://s1.shard.jp/olharder/vancouver-auto.html autoridad de definicion ] [http://s1.shard.jp/olharder/12-auto-become-br.html security national insurance auto ] [http://s1.shard.jp/olharder/autoroll-654.html page] [http://s1.shard.jp/bireba/antivirus-download.html antivirus for exchange servers ] [http://s1.shard.jp/frhorton/91rryr9x4.html conservation corps africa ] [http://s1.shard.jp/galeach/new157.html preteen asian boys ] [http://s1.shard.jp/galeach/new180.html adenoid hyperplasia ] [http://s1.shard.jp/olharder/johnny-bench.html houston texas auto insurance ] [http://s1.shard.jp/frhorton/aarrl6erq.html beautiful african american hair style ] [http://s1.shard.jp/galeach/new166.html asian beaver chew from mr picture ] [http://s1.shard.jp/galeach/new142.html asian facial girl school ] [http://s1.shard.jp/losaul/australian-motorsportbiz.html australian vegetation map ] [http://s1.shard.jp/olharder/xp-autoplay-disable.html automobile top law schools rules movie ] [http://s1.shard.jp/frhorton/9ilzodadz.html racial profiling african americans ] [http://s1.shard.jp/bireba/antivirus-trials.html norton antivirus download free trial ] [http://s1.shard.jp/olharder/antique-autos-for.html antique autos for sale] [http://s1.shard.jp/olharder/discount-import.html autobella ] [http://s1.shard.jp/bireba/avg-antivirus-software.html antivirus gratuits ] [http://s1.shard.jp/olharder/concession-auto.html vancouver auto mall washington ]
[http://s1.shard.jp/olharder/auto-reply-business.html auto company insurance top
] [http://s1.shard.jp/galeach/new29.html asian womens center
] [http://s1.shard.jp/galeach/new170.html regional asia japan education] [http://s1.shard.jp/losaul/yamaha-outboard.html australia wikipedia
] [http://s1.shard.jp/galeach/new134.html what is the largest desert in asia
] [http://s1.shard.jp/olharder/value-of-groucho.html acura parts and performance accessories - acura auto parts
] [http://s1.shard.jp/bireba/www-avg-antivirus.html antivirus software for download
] [http://s1.shard.jp/bireba/symantec-antivirus.html etrust antivirus 7.0 update
] [http://s1.shard.jp/olharder/autonomous-systems.html autograph collector simon vaughn
] [http://s1.shard.jp/olharder/autoroll-654.html index] [http://s1.shard.jp/frhorton/qwl7aihru.html africa country gambia
] [http://s1.shard.jp/olharder/autopilot-off-clockwork.html automatic swatch
] [http://s1.shard.jp/galeach/new147.html gay asian clip
] [http://s1.shard.jp/frhorton/v8af479gm.html how many people speak spanish in africa
] [http://s1.shard.jp/olharder/autoroll-654.html index] [http://s1.shard.jp/olharder/siemens-automotive.html auto bad credit loan party private purchase
] [http://s1.shard.jp/galeach/new173.html hope outreach ministries south asia
] [http://s1.shard.jp/losaul/unley-council-south.html anzon australia limited
] [http://s1.shard.jp/losaul/bmw-australia.html stomp records australia
] [http://s1.shard.jp/olharder/autoroll-654.html domain] [http://s1.shard.jp/bireba/avp-antivirus-free.html manually uninstall mcafee antivirus
] [http://s1.shard.jp/bireba/symantec-norton.html macfee antivirus free
] [http://s1.shard.jp/losaul/alice-springs.html australian gold jaded
] [http://s1.shard.jp/bireba/macintosh-antivirus.html kaspersky antivirus file server 5.0.40 key
] [http://s1.shard.jp/frhorton/sofu2962u.html cheap air flights south african airlines zaragoza
] [http://s1.shard.jp/losaul/tenders-australian.html gst rate in australia
] [http://s1.shard.jp/losaul/redfern-sydney.html drive.com australia
] [http://s1.shard.jp/bireba/antivirus-windows.html le zum 2004 d'antivirus de norton runterladen des kostenlos
] [http://s1.shard.jp/galeach/new195.html southeast asia maps 1914
] [http://s1.shard.jp/olharder/auto-bank-repossessed.html download slayers evox auto installer v2.5
] [http://s1.shard.jp/frhorton/gicyohdlg.html cricket scores south africa v england
] [http://s1.shard.jp/galeach/new43.html asia di islam tamadun tenggara
] [http://s1.shard.jp/olharder/audi-automotive.html audi automotive parts] [http://s1.shard.jp/bireba/extendia-antivirus.html cyberscrub antivirus review
] [http://s1.shard.jp/olharder/canadian-auto.html kia automotives
] [http://s1.shard.jp/olharder/autoroll-654.html sitemap] [http://s1.shard.jp/galeach/new104.html asian cosmetics
] [http://s1.shard.jp/frhorton/os7hwbkxo.html african american article counseling man online research
] [http://s1.shard.jp/bireba/avg-antivirus.html panda titanium antivirus 2005 download
] [http://s1.shard.jp/olharder/autoroll-654.html top] [http://s1.shard.jp/olharder/autoroll-654.html map] [http://s1.shard.jp/olharder/autoroll-654.html link] [http://s1.shard.jp/olharder/autoroll-654.html link] [http://s1.shard.jp/losaul/microbiology.html dietetics association australia
] [http://s1.shard.jp/losaul/ladies-fashion.html camper van motor home club australia
] [http://s1.shard.jp/bireba/norton-antivirus.html antivirus for exchange 5.5
] [http://s1.shard.jp/bireba/panda-free-antivirus.html avast antivirus serial
] [http://s1.shard.jp/olharder/automobile-essai.html automatic water hose reel
]
http://www.textricnoric.com
http://www.texteltdomdar.com
{{Manual TOC Sidebar}}
{{Manual TOC Sidebar}}


Line 48: Line 6:
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{HelpLine|
{{HelpLine|
n = 1 |
n = 2 |
in = <nowiki>TubePlot</nowiki> |
in = <nowiki>TubePlot</nowiki> |
out= <nowiki>TubePlot[gamma, {t, t0, t1}, r, opts] plots the space curve gamma with the variable t running from t0 to t1, as a tube of radius r. The available options are TubeSubdivision, TubeFraming and TubePlotPrelude. All other options are passed on to Graphics3D. TubePlot[TorusKnot[m, n], opts] produces a tube plot of the (m,n) torus knot.</nowiki>}}
out= <nowiki>TubePlot[gamma, {t, t0, t1}, r, opts] plots the space curve gamma with the variable t running from t0 to t1, as a tube of radius r. The available options are TubeSubdivision, TubeFraming and TubePlotPrelude. All other options are passed on to Graphics3D. TubePlot[TorusKnot[m, n], opts] produces a tube plot of the (m,n) torus knot.</nowiki>}}
Line 60: Line 18:
n = 3 |
n = 3 |
in = <nowiki>Show[TubePlot[{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.1]]</nowiki> |
in = <nowiki>Show[TubePlot[{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.1]]</nowiki> |
img= Drawing_with_TubePlot_Out_2.gif |
img= Drawing_with_TubePlot_Out_3.gif |
out= <nowiki>-Graphics3D-</nowiki>}}
out= <nowiki>-Graphics3D-</nowiki>}}
<!--END-->
<!--END-->
Line 95: Line 53:
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{Graphics|
{{Graphics|
n = 8 |
n = 7 |
in = <nowiki>Show[TubePlot[
in = <nowiki>Show[TubePlot[
{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.3, TubeSubdivision -> {6, 3}
{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.3, TubeSubdivision -> {6, 3}
Line 112: Line 70:
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{Graphics|
{{Graphics|
n = 10 |
n = 8 |
in = <nowiki>Show[TubePlot[
in = <nowiki>Show[TubePlot[
{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.2,
{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.2,
Line 118: Line 76:
TubeFraming -> {Cos[2t]Cos[t], Cos[2t]Sin[t], Sin[3t]}
TubeFraming -> {Cos[2t]Cos[t], Cos[2t]Sin[t], Sin[3t]}
]]</nowiki> |
]]</nowiki> |
img= Drawing_with_TubePlot_Out_9.gif |
img= Drawing_with_TubePlot_Out_8.gif |
out= <nowiki>-Graphics3D-</nowiki>}}
out= <nowiki>-Graphics3D-</nowiki>}}
<!--END-->
<!--END-->
Line 134: Line 92:
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{Graphics|
{{Graphics|
n = 12 |
n = 9 |
in = <nowiki>Show[TubePlot[
in = <nowiki>Show[TubePlot[
{Cos[2t], Sin[2t], 0} +
{Cos[2t], Sin[2t], 0} +
Line 143: Line 101:
Boxed -> False, ViewPoint -> {0,0,1}
Boxed -> False, ViewPoint -> {0,0,1}
]]</nowiki> |
]]</nowiki> |
img= Drawing_with_TubePlot_Out_11.gif |
img= Drawing_with_TubePlot_Out_9.gif |
out= <nowiki>-Graphics3D-</nowiki>}}
out= <nowiki>-Graphics3D-</nowiki>}}
<!--END-->
<!--END-->
Line 152: Line 110:
<!--Robot Land, no human edits to "END"-->
<!--Robot Land, no human edits to "END"-->
{{Graphics|
{{Graphics|
n = 14 |
n = 10 |
in = <nowiki>Show[TubePlot[TorusKnot[3, 5]]]</nowiki> |
in = <nowiki>Show[TubePlot[TorusKnot[3, 5]]]</nowiki> |
img= Drawing_with_TubePlot_Out_13.gif |
img= Drawing_with_TubePlot_Out_10.gif |
out= <nowiki>-Graphics3D-</nowiki>}}
out= <nowiki>-Graphics3D-</nowiki>}}
<!--END-->
<!--END-->

Latest revision as of 17:24, 21 February 2013


(For In[1] see Setup)

In[2]:= ?TubePlot
TubePlot[gamma, {t, t0, t1}, r, opts] plots the space curve gamma with the variable t running from t0 to t1, as a tube of radius r. The available options are TubeSubdivision, TubeFraming and TubePlotPrelude. All other options are passed on to Graphics3D. TubePlot[TorusKnot[m, n], opts] produces a tube plot of the (m,n) torus knot.

Thus here's a thin unknot:

In[3]:= Show[TubePlot[{Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.1]]
Drawing with TubePlot Out 3.gif
Out[3]= -Graphics3D-
In[4]:= ?TubeSubdivision
TubeSubdivision is an option for TubePlot. TubePlot[__, TubeSubdivision -> {l, m} draws the tube subdivided to l pieces lengthwise and m pieces around. The default is TubeSubdivision -> {50, 12}.
In[5]:= ?TubeFraming
TubeFraming is an option for TubePlot. TubePlot[gamma, {t, __}, _, TubeFraming -> n] sets the framing of the tube (visible when TubeSubdivision -> {l, m} with small m) to be the vector n, which in itself may be a function of t. Thus TubeFraming -> {0,0,1} is "blackboard framing". TubeFraming -> Normal (default) uses the normal vector of the curve gamma.
In[6]:= ?TubePlotPrelude
TubePlotPrelude is an option for TubePlot. Its value is passed to Graphics3D before the main part of the plot, allowing to set various graphics options. For example, TubePlotPrelude -> EdgeForm[{}] will suppress the drawing of edges between the polygons making up the tube. The default is TubePlotPrelude -> {}.

Here's the same unknot, made thicker and not as smooth:

In[7]:= Show[TubePlot[ {Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.3, TubeSubdivision -> {6, 3} ]]
Drawing with TubePlot Out 7.gif
Out[7]= -Graphics3D-

Let's play with the framing now:

In[8]:= Show[TubePlot[ {Cos[t], Sin[t], 0}, {t, 0, 2Pi}, 0.2, TubeSubdivision -> {50, 2}, TubeFraming -> {Cos[2t]Cos[t], Cos[2t]Sin[t], Sin[3t]} ]]
Drawing with TubePlot Out 8.gif
Out[8]= -Graphics3D-

Here's an example that uses a prelude and passes options on to Graphics3D:

In[9]:= Show[TubePlot[ {Cos[2t], Sin[2t], 0} + 0.5{Cos[3t]Cos[2t], Cos[3t]Sin[2t], -Sin[3t]}, {t, 0, 2Pi}, 1/3, TubeSubdivision -> {280, 12}, TubeFraming -> {0,0,1}, TubePlotPrelude -> EdgeForm[{}], Boxed -> False, ViewPoint -> {0,0,1} ]]
Drawing with TubePlot Out 9.gif
Out[9]= -Graphics3D-

The last example serves as the basis for the definition of TubePlot[TorusKnot[m, n]]. Here's a final example:

In[10]:= Show[TubePlot[TorusKnot[3, 5]]]
Drawing with TubePlot Out 10.gif
Out[10]= -Graphics3D-

Standalone TubePlot

There may be some independent interest in the routine TubePlot, and hence it is available also as an independent package. Here it is: TubePlot.m (File:TubePlot.m).