Creates a sweep modifier in the mesh construction history. Use the CreateSweep command if you wish to create an entire sweep node collection.
Select a mesh and invoke the command.
A SweepModifier produces geometry by extruding a cross-section curve along a rail curve. The position of the cross-section curve relative to the world origin determines the position of the geometry relative to the rail curve.
Figure 1.1. A sweep rail curve. The rail curve position in
worldspace does not matter.
Figure 1.2. A sweep cross-section curve. The cross-section curve
position in worldspace is "centered" around the world origin.
Figure 1.3. The resulting geometry.
Figure 1.4. The cross-section curve is to the immediate
left of the world origin. The sweep produces geometry to the immediate left of the rail curve.
Figure 1.5. The cross-section curve is to the immediate
right of the world origin. The sweep produces geometry to the immediate right of the rail curve.
Figure 1.6. A four-part rail curve produces four strips of
geometry in the sweep:
Figure 1.7. A three-part rail curve with a two-dimensional shape.
The resulting geometry inherits the shape of the rail curve and cross-section curve.
Figure 1.8. The rail curve and cross-section curves have three
dimension shapes. The resulting geometry inherits the shape of the rail curve and cross-section curve.
Figure 1.9. This sweep uses two cross-section curves. The second
cross-section curve is rotated. This produces a "banked" roadway. You can use as many cross-section
curves as you wish and the SweepModifier simply interpolates the geometric-changes along the length of
the rail curve. However, all rail curves must have the same number of points.
Figure 1.10. The sweep uses curve texture coordinates to produce
easy-to-revise UV coordinates. In this case the texture wraps 8× along the rail curve
and 2× along the cross-section curve. You can also use fractional texture coordinates for
each segment if you wish to wrap a single texture across a complex cross-section.
Figure 1.11. Revised texture coordinates. This time the texture
wraps 16× times along the rail curve and 1× across the cross-section curve.
Command registration information is as follows:
| Category Type | Information |
| Implementation | SCRIPT |
| Module | MODIFIER_SCRIPTS.SSL |
| Category | Modifier Commands |
| GUID | {110E5229-8AFA-4200-B8B0-CAD89F87A1C6} |
| Source Name | CreateSweepModifier |
| Interface Name | SweepModifier |
| Core | No |
| Sample | Yes |
| Access | Mesh option on Modify menu or mesh command menu. |
For more information