| Contents | Index |
creates the surface swept out by the (linear) deformation of the parameterized curve
to its projection
to the
-
-plane.
creates the surface swept out by the (linear) deformation of the parameterized curve
to the parameterized curve
.
Calls:
plot::Sweep([x1, y1, z1], <Ground = g>, u =
..
, <a = amin .. amax>, Options)
plot::Sweep(A1, <Ground = g>, u =
..
, <a = amin .. amax>, Options)
plot::Sweep(C1, <Ground = g>, Options)
plot::Sweep([x1, y1, z1], [x2, y2, z2], u =
..
, <a = amin .. amax>, Options)
plot::Sweep(A1, A2, u =
..
, <a = amin .. amax>, Options)
plot::Sweep(C1, C2, Options)
Parameters:
|
x1, y1, z1: |
the parametrization of the initial 3D curve: real-valued expressions in u (and possibly the animation parameter). |
|
x2, y2, z2: |
the parametrization of the “target curve”: real-valued expressions in u (and possibly the animation parameter). |
|
u: |
the curve parameter: an identifier or an indexed identifier. |
|
|
real-valued expressions (possibly in the animation parameter). |
|
g: |
real-valued expression (possibly in the animation parameter). |
|
A1, A2: |
matrices of category Cat::Matrix with three entries that provide the parametrizations x1, y1, z1 and x2, y2, z2, respectively. |
|
C1, C2: |
curves of type plot::Curve3d. C1 provides the “initial curve” |
See Also:
plot, plot::copy, plot::Curve3d, plot::Hatch, plot::Polygon3d, plot::Surface
Details:
plot::Sweep creates the parametrized surface

with the two surface parameters
(ranging from
to
) and
(ranging from
to
). This is the linear deformation of the curve
defining one border of the surface to the curve
defining the other border of the surface.
If no “target curve”
is specified, the projection
,
,
of the “source curve”
to the
-
-plane with constant value
is used. The value
is set by the attribute Ground = g. The default value is g = 0.
When a target curve
is specified, the Ground attribute does not have any effect.
If the curves are specified by objects
of type plot::Curve3d, the graphical attributes of the object created by plot::Sweep are copied from C1. The parametrization of C2 is automatically rewritten in terms of the curve parameter used in the definition of C1. This, however, will only work if the parametrization of C2 is defined by symbolic expressions.
If the parametrization of C2 is defined by procedures, make sure that the parameter ranges of C1 and C2 coincide!
Example 1
We deform a 3D spiral to its projection to the
-
-plane:
plot(plot::Sweep([u*cos(u), u*sin(u), u], u = 0..4*PI),
CameraDirection = [90, 50, 120])

We use the Ground attribute to project the spiral to the
-
-plane with
:
plot(plot::Sweep([u*cos(u), u*sin(u), u], u = 0..4*PI, Ground = 9),
CameraDirection = [130, 60, 45])

Example 2
We deform a circle in the
-
-plane to a planar spiral:
plot(plot::Sweep([cos(u), sin(u), 0], [u*cos(u), u*sin(u), 0],
u = PI/3..7/3*PI), Scaling = Constrained)

With Filled = FALSE, only the lines are visible along which the mesh points of the curves are moved:
plot(plot::Sweep([cos(u), sin(u), 0], [u*cos(u), u*sin(u), 0],
u = PI/3..7/3*PI), Scaling = Constrained,
Filled = FALSE)

We increase the number of mesh points:
plot(plot::Sweep([cos(u), sin(u), 0], [u*cos(u), u*sin(u), 0],
u = PI/3..7/3*PI, Mesh = 50),
Scaling = Constrained, Filled = FALSE)

Example 3
We deform a circle to an animated point. The resulting sweep surface is an animated cone:
plot(plot::Sweep([cos(u), sin(u), 0], [a, 0, a],
u = 0..2*PI, a = 0..2))



Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |