Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Sweep") to sweep faces along a spine curve.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("face") to select the faces to sweep.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("edge") to select the edges to sweep along.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("diredge") to select the edge whose direction defines the positive sweep direction. If this selection is empty, it is automatically set when the
edge selection is set. The
diredge selection can be empty if the
edge selection contains a single edge.
The expressions in scale and
twist can contain functions defined in the model. If the definition of such a function is changed, the swept object is not automatically rebuilt. Use
model.component(
<ctag>).
geom(<tag>).feature(<ftag>).importData() to rebuild the swept object after such a change.
If includefinal is
off, input objects are automatically removed in the Finalize (Form Union/Assembly) operation if they are completely used by this feature. Objects used in
face are considered completely used if they contain a single face. Objects used in
edge are considered completely used if they contain no faces and all their edges are included in
edge. If an object is considered completely used by one property but not completely used by another property, the object is not removed in the Finalize operation. If
includefinal is
on, input objects are not removed in the Finalize operation.
In COMSOL Multiphysics 4.2a and earlier versions, the positive sweep direction was defined as the curve direction instead of the edge direction.
Create a half torus about the y-axis using a sweep operation: