RevolutionPlot3D
RevolutionPlot3D[fz,{t,tmin,tmax}]
generates a plot of the surface of revolution with height fz at radius t.
RevolutionPlot3D[fz,{t,tmin,tmax},{θ,θmin,θmax}]
takes the azimuthal angle θ to vary between θmin and θmax.
RevolutionPlot3D[{fx,fz},{t,tmin,tmax}]
generates a plot of the surface obtained by rotating the parametric curve with x, z coordinates {fx,fz} around the z axis.
RevolutionPlot3D[{fx,fz},{t,tmin,tmax},{θ,θmin,θmax}]
takes the azimuthal angle θ to vary from θmin to θmax.
RevolutionPlot3D[{fx,fy,fz},{t,tmin,tmax},…]
plots the surface obtained by rotating the parametric curve with x, y, z coordinates {fx,fy,fz}.
Details and Options
- RevolutionPlot3D[fz,{t,…}] is equivalent to RevolutionPlot3D[{t,0,fz},{t,…}].
- RevolutionPlot3D[fz,{t,tmin,tmax},{θ,θmin,θmax}] corresponds to plotting the fz in cylindrical coordinates as a function of radius t and angle θ.
- The angle θ is measured in radians, counterclockwise from the positive x axis when viewed from above.
- RevolutionPlot3D[{{f},{g},…},…] plots surfaces corresponding to all the functions f, g, ….
- Holes are left at positions where f etc. evaluate to None, or anything other than real numbers.
- RevolutionPlot3D treats the variables r, t, and θ as local, effectively using Block.
- RevolutionPlot3D has attribute HoldAll, and evaluates f only after assigning specific numerical values to variables.
- In some cases it may be more efficient to use Evaluate to evaluate f symbolically before specific numerical values are assigned to variables.
- RevolutionPlot3D has the same options as Graphics3D, with the following additions and changes: [List of all options]
-
Axes True whether to draw axes BoundaryStyle Automatic how to draw boundary lines for surfaces BoxRatios Automatic side ratios for the bounding 3D box ColorFunction Automatic how to determine the color of curves and surfaces ColorFunctionScaling True whether to scale arguments to ColorFunction EvaluationMonitor None expression to evaluate at every function evaluation Exclusions Automatic , curves to exclude ExclusionsStyle None what to draw at excluded points or curves MaxRecursion Automatic the maximum number of recursive subdivisions allowed Mesh Automatic how many mesh divisions in each direction to draw MeshFunctions {#4&,#5&} how to determine the placement of mesh divisions MeshShading None how to shade regions between mesh divisions MeshStyle Automatic the style for mesh divisions Method Automatic the method to use for refining surfaces NormalsFunction Automatic how to determine effective surface normals PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLegends None legends for surfaces PlotPoints Automatic the initial number of sample points in each parameter PlotStyle Automatic graphics directives for the style for each object PlotTheme $PlotTheme overall theme for the plot RegionFunction (True&) how to determine whether a point should be included RevolutionAxis {0,0,1} rotates around the specified axis ScalingFunctions None how to scale individual coordinates TextureCoordinateFunction Automatic how to determine texture coordinates TextureCoordinateScaling True whether to scale arguments to TextureCoordinateFunction WorkingPrecision MachinePrecision the precision used in internal computations - Interactive labeling can be specified for surfaces using Tooltip, StatusArea, or Annotation.
- RevolutionPlot3D initially evaluates each function at a number of equally spaced sample points specified by PlotPoints. Then it uses an adaptive algorithm to choose additional sample points, subdividing in each parameter at most MaxRecursion times.
- You should realize that with the finite number of sample points used, it is possible for RevolutionPlot3D to miss features in your functions. To check your results, you should try increasing the settings for PlotPoints and MaxRecursion.
- On[RevolutionPlot3D::accbend] makes RevolutionPlot3D print a message if it is unable to reach a certain smoothness of curve.
- With the default setting BoxRatios->Automatic, slices through the final 3D graphic parallel to the z axis give forms that agree with the default aspect ratio used by Plot.
- The arguments supplied to functions in MeshFunctions and RegionFunction are x, y, z, t, θ, and r, where . Functions in ColorFunction and TextureCoordinateFunction are by default supplied with scaled versions of these arguments.
- The functions are evaluated all over each surface.
- By default, surfaces are treated as uniform white diffuse reflectors, corresponding to ColorFunction->(White&).
- RevolutionPlot3D returns Graphics3D[GraphicsComplex[data]].
- Themes that affect 3D surfaces include:
-
"DarkMesh" dark mesh lines "GrayMesh" gray mesh lines "LightMesh" light mesh lines "ZMesh" vertically distributed mesh lines "ThickSurface" add thickness to surfaces - Possible settings for ScalingFunctions include:
-
{sx,sy,sz} scale the x, y and z coordinates {sx,sy,sz,st,sθ,sr} scale the θ and ϕ parameter spaces - Common built-in scaling functions s include:
-
"Log" log scale with automatic tick labeling "Log10" base-10 log scale with powers of 10 for ticks "SignedLog" log-like scale that includes 0 and negative numbers "Reverse" reverse the coordinate direction "Infinite" infinite scale - Scaling the t or θ parameter space affects how the plot is sampled, but not the overall visual appearance of the plot.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes True whether to draw axes AxesEdge Automatic on which edges to put axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} graphics directives to specify the style for axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic BoundaryStyle Automatic how to draw boundary lines for surfaces Boxed True whether to draw the bounding box BoxRatios Automatic side ratios for the bounding 3D box BoxStyle {} style specifications for the box ClipPlanes None clipping planes ClipPlanesStyle Automatic style specifications for clipping planes ColorFunction Automatic how to determine the color of curves and surfaces ColorFunctionScaling True whether to scale arguments to ColorFunction ContentSelectable Automatic whether to allow contents to be selected ControllerLinking False when to link to external rotation controllers ControllerPath Automatic what external controllers to try to use Epilog {} 2D graphics primitives to be rendered after the main plot EvaluationMonitor None expression to evaluate at every function evaluation Exclusions Automatic , curves to exclude ExclusionsStyle None what to draw at excluded points or curves FaceGrids None grid lines to draw on the bounding box FaceGridsStyle {} style specifications for face grids FormatType TraditionalForm default format type for text ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels, etc. ImageSize Automatic absolute size at which to render the graphic LabelStyle {} style specifications for labels Lighting Automatic simulated light sources to use MaxRecursion Automatic the maximum number of recursive subdivisions allowed Mesh Automatic how many mesh divisions in each direction to draw MeshFunctions {#4&,#5&} how to determine the placement of mesh divisions MeshShading None how to shade regions between mesh divisions MeshStyle Automatic the style for mesh divisions Method Automatic the method to use for refining surfaces NormalsFunction Automatic how to determine effective surface normals PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None a label for the plot PlotLegends None legends for surfaces PlotPoints Automatic the initial number of sample points in each parameter PlotRange All range of values to include PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic final display region to be filled PlotStyle Automatic graphics directives for the style for each object PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} 2D graphics primitives to be rendered before the main plot RegionFunction (True&) how to determine whether a point should be included RevolutionAxis {0,0,1} rotates around the specified axis RotationAction "Fit" how to render after interactive rotation ScalingFunctions None how to scale individual coordinates SphericalRegion Automatic whether to make the circumscribing sphere fit in the final display area TextureCoordinateFunction Automatic how to determine texture coordinates TextureCoordinateScaling True whether to scale arguments to TextureCoordinateFunction Ticks Automatic specification for ticks TicksStyle {} style specification for ticks TouchscreenAutoZoom False - whether to zoom to fullscreen when activated on a touchscreen
ViewAngle Automatic angle of the field of view ViewCenter Automatic point to display at the center ViewMatrix Automatic explicit transformation matrix ViewPoint {1.3,-2.4,2.} viewing position ViewProjection Automatic projection method for rendering objects distant from the viewer ViewRange All range of viewing distances to include ViewVector Automatic position and direction of a simulated camera ViewVertical {0,0,1} direction to make vertical WorkingPrecision MachinePrecision the precision used in internal computations
List of all options
Examples
open allclose allBasic Examples (3)
Scope (18)
Sampling (8)
More points are sampled when the function changes quickly:
The plot range is selected automatically:
Ranges where the function becomes nonreal are excluded:
The surface is split when there are discontinuities in the function:
Use PlotPoints and MaxRecursion to control adaptive sampling:
Use PlotRange to focus in on areas of interest:
Use Exclusions to remove points or split the resulting surface:
Presentation (10)
Provide explicit styling to different surfaces:
Use legends to identify styles:
Provide an interactive Tooltip for a surface:
Style the areas between mesh levels:
Options (70)
BoundaryStyle (4)
BoundaryStyle automatically matches MeshStyle:
Boundaries are drawn where the surface is clipped by RegionFunction:
Boundaries are not drawn where the surface is clipped by Exclusions:
BoxRatios (3)
The default BoxRatios preserve the AspectRatio used by Plot:
The default BoxRatios preserves the revolved circles:
Use specific BoxRatios:
ColorFunction (5)
Color a surface by , , , , , and parameters:
Use ColorData for predefined color gradients:
Named color gradients color in the direction:
ColorFunction has higher priority than PlotStyle:
ColorFunction has lower priority than MeshShading:
ColorFunctionScaling (1)
EvaluationMonitor (2)
Show where RevolutionPlot3D samples a function in {t,θ} coordinates:
Exclusions (5)
ExclusionsStyle (2)
Mesh (5)
MeshFunctions (2)
MeshShading (7)
Alternate red and blue arcs in the direction:
Use None to remove segments:
MeshShading has higher priority than PlotStyle for styling:
Use PlotStyle for some segments by setting MeshShading to Automatic:
MeshShading can be used with ColorFunction:
Fill between regions defined by multiple mesh functions:
Use FaceForm to use different styles for different sides of a surface:
MeshStyle (2)
NormalsFunction (3)
Normals are automatically calculated:
Use None to get flat shading for all the polygons:
PerformanceGoal (2)
PlotLegends (3)
Use placeholders to identify plot styles:
Use the expressions as legends:
Use Placed to control legend position:
PlotStyle (3)
PlotTheme (5)
RevolutionAxis (2)
RevolutionPlot3D revolves around the axis by default:
ScalingFunctions (3)
By default, plots have linear scales in all directions:
Use a log scale on the z axis:
Use ScalingFunctions to reverse the coordinate direction in the direction:
TextureCoordinateFunction (4)
Applications (3)
Properties & Relations (8)
RevolutionPlot3D is a special case of ParametricPlot3D:
The default BoxRatios preserves the AspectRatio used by Plot:
The default BoxRatios preserves the revolved circles:
Use SphericalPlot3D for spherical coordinates:
Use ParametricPlot3D for arbitrary curves and surfaces in three dimensions:
Use PolarPlot for curves in polar coordinates:
Use ParametricPlot for curves and regions in two dimensions:
Use ContourPlot3D and RegionPlot3D for implicitly defined surfaces and regions:
Use ListPlot3D and ListSurfacePlot3D for data:
Text
Wolfram Research (2007), RevolutionPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/RevolutionPlot3D.html (updated 2022).
CMS
Wolfram Language. 2007. "RevolutionPlot3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/RevolutionPlot3D.html.
APA
Wolfram Language. (2007). RevolutionPlot3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RevolutionPlot3D.html