Class Constr3DFaceRotate
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Interactive construction of solids of revolution: the user picks one or more closed planar paths, closed curves or faces (the current selection is used when the action is started with it), defines the axis by a line or by a point and a direction and the angle of rotation (a full revolution when 0) with an optional start offset. The solids (see Rotate(IGeoObject, Axis, SweepAngle, SweepAngle, Project)) are inserted into the model, united with or subtracted from the existing solids according to SolidModellingMode. Started by the menu command "MenuId.Constr.Solid.FaceRotate"; its id is "Constr.Solid.FaceRotate".
public class Constr3DFaceRotate : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
Constr3DFaceRotate
- Implements
- Inherited Members
Constructors
Constr3DFaceRotate(Constr3DFaceRotate)
public Constr3DFaceRotate(Constr3DFaceRotate autorepeat)
Parameters
autorepeatConstr3DFaceRotate
Constr3DFaceRotate(GeoObjectList)
public Constr3DFaceRotate(GeoObjectList selectedObjectsList)
Parameters
selectedObjectsListGeoObjectList
Methods
GetID()
Must be implemented by derived class. Returns an identification string. All CADability actions return the unique strings like "Draw.Line.TwoPoints" or "Zoom"
public override string GetID()
Returns
- string
the identification of the action
OnDone()
Called, when the ConstructAction is done, i.e. all non-optional inputs have been fixed. The default implementation adds the active object (if it exists and HasValidData() returns true) to the active model and removes this action. Override this method if you need a different behaviour.
public override void OnDone()
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()
faceTestRotate(GeoObjectList)
public static bool faceTestRotate(GeoObjectList selectedObjects)
Parameters
selectedObjectsGeoObjectList