Revolve
Revolve planar faces in 3D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Revolve");
model.component(<ctag>).geom(<tag>).feature(<ftag>).selection(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Revolve") to revolve objects from a work plane.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("input") to select the work plane objects to revolve. The default selection is all available objects from the last preceding work plane.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("inputface") to select the faces to revolve. Faces are revolved when the workplane property is none; otherwise, work plane objects are revolved.
The following properties are available:
specang | full
2d | 3d
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
on | off
workplane | faces
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
on | off
Each 2D object in input or planar face in inputface is revolved about the revolution axis. The range of angles is given by the properties angle1 and angle2. If axistype is 2d, the revolution axis is defined in a local coordinate system. The revolution axis goes through pos with direction axis. If axistype is 3d, the revolution axis is defined in the 3D coordinate system. The revolution axis goes through pos3 with direction axis3.
When revolving work plane objects, the local system is defined as the local system of the work plane. When revolving faces, the local system is defined by the face with the smallest face number in the object that comes first in the geometry sequence. The local z-axis is parallel to the face normal and located at the center of the face. The local x-axis is defined by the tangent direction corresponding to the first parameter in the surface representation for the face.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
The following attributes are available:
Table 3-145: Valid attributes
on | off | inherit
Designate the resulting objects as construction geometry. Use inherit to set the construction geometry attribute only if all input objects are construction geometry.
Compatibility
Additional properties:
Alias for angle1 and angle2.
on | off
Alias for unite property with opposite value.
Alias for pos (first column) and axis (second column).
Example
Create a torus about the y-axis:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.geom().create("geom1",3);
g.create("wp1","WorkPlane");
g.feature("wp1").geom().create("c1", "Circle");
g.feature("wp1").geom().feature("c1").set("pos", "2 0");
g.run("wp1");
g.create("r1","Revolve");
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
g = model.geom.create('geom1',3);
g.create('wp1','WorkPlane');
g.feature('wp1').geom.create('c1', 'Circle');
g.feature('wp1').geom.feature('c1').set('pos', '2 0');
g.run('wp1');
g.create('r1','Revolve');
g.run;
See Also
Extrude, WorkPlane