CreateSweepModifier

Creates a sweep modifier in the mesh construction history. Use the CreateSweep command if you wish to create an entire sweep node collection.

Using This Command

Select a mesh and invoke the command.

  1. Select a mesh.
  2. Select Modify » Mesh » SweepModifier from the main menu.
  3. The software adds a SweepModifier to the mesh construction history.
  4. Draw rail and cross-section curves as needed.
  5. Make sure the rail and cross-section curves are placed in the appropriate group.
  6. A sweep uses a single rail curve; multiple rail curves are not supported.
  7. NOTE: All cross-section curves must have the same number of points.
  8. Configure rail curve and cross-section curve texture coordinates.

Figures

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. A sweep rail curve. Figure 1.2. A sweep cross-section curve. The cross-section curve position in worldspace is "centered" around the world origin. A sweep cross-section curve. Figure 1.3. The resulting geometry. Sweep Geometry Example 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. Sweep Geometry Example 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. Sweep Geometry Example Figure 1.6. A four-part rail curve produces four strips of geometry in the sweep: Sweep Geometry Example 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. Sweep Geometry Example 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. Sweep Geometry Example 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. Sweep Geometry Example 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. Sweep Geometry Example Figure 1.11. Revised texture coordinates. This time the texture wraps 16× times along the rail curve and 1× across the cross-section curve. Sweep Geometry Example

Registration

Command registration information is as follows:

Category TypeInformation
ImplementationSCRIPT
ModuleMODIFIER_SCRIPTS.SSL
CategoryModifier Commands
GUID{110E5229-8AFA-4200-B8B0-CAD89F87A1C6}
Source NameCreateSweepModifier
Interface NameSweepModifier
CoreNo
SampleYes
AccessMesh option on Modify menu or mesh command menu.

See Also

For more information