File:Torus revolution plot.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Torus_revolution_plot.png(346 × 252 pixels, file size: 111 KB, MIME type: image/png)

Captions

Captions

An illustration of the generation of a torus as a surface of revolution

Summary

[edit]
 
This diagram was created with Mathematica.
Description
English: An illustration of the generation of a torus as the surface of revolution of a circle. The circle that the torus is derived from is shown in black, and the torus has a gradient opacity to better depict the process of revolving the circle. An arrow in the center shows the axis around which the circle is revolved.
Date
Source Own work
Author Lemondoge
Source code
InfoField

Mathematica code

k[a_, b_, t_] := a + (b - a)*t^3
donut = Show[
 RevolutionPlot3D[{2 + Cos[t], Sin[t]}, {t, 0, 2 Pi}, 
  ColorFunction -> 
   Function[{x, y, z, t, \[Theta]}, 
    RGBColor[k[0.880722, 0, \[Theta]], 0.611041, 
     k[0.142051, 1, \[Theta]], 1 - \[Theta]^3]], Boxed -> False, 
  Axes -> False, PlotRangePadding -> None],
 ParametricPlot3D[{2 + Cos[t], 0, Sin[t]}, {t, 0, 2 Pi}, 
  PlotStyle -> {Thick, Black}],
 Graphics3D[{
   Thick, Arrow[{{0, 0, -1}, {0, 0, 1}}]
   }]
 ];
Export["fileNameHere.png", ImageCrop[Rasterize[donut, Background -> None]]]

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:57, 23 May 2023Thumbnail for version as of 18:57, 23 May 2023346 × 252 (111 KB)Lemondoge (talk | contribs)Now properly cropped, and transparent. I would've made it higher resolution, but Mathematica mysteriously breaks one of the mesh lines if I do.
01:30, 23 May 2023Thumbnail for version as of 01:30, 23 May 2023480 × 374 (92 KB)Lemondoge (talk | contribs)removed a little bit of excess padding
01:07, 23 May 2023Thumbnail for version as of 01:07, 23 May 2023480 × 374 (79 KB)Lemondoge (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata