Constructing a Sheet Solid Incision

The function

MbResultType SheetSolidJog(       MbSolid &          solid,
                                  MbeCopyMode        sameShell,
                            const RPArray<MbFace> &  bendingFaces,
                                  MbCurve3D &        curve,
                                  bool               unbended,
                            const MbJogValues &      jogParams,
                            const MbBendValues &     secondBendParams,
                                  MbSNameMaker &     nameMaker,
                                  RPArray<MbFace> &  firstBendFaces,
                                  RPArray<MbFace> &  secondBendFaces,
                                  MbSolid *&         result )

performs a jog of a sheet solid along a straight line.

The input parameters of the function are:

  • solid – the source solid;

  • sameShell – the copying mode of the source solid;

  • bendingFaces – the faces to bend;

  • curve – the straight-line curve along which the jog is performed;

  • unbended – the flag for constructing the element in the unbent state;

  • jogParams – the parameters of the jog and the first bend;

  • secondBendParams – the parameters of the second bend;

  • nameMaker – the object for naming the new objects.

The output parameters of the function are:

  • firstBendFaces – the sheet faces of the bends adjacent to the fixed part of the base faces;

  • secondBendFaces – the sheet faces of the bends raised above the base faces;

  • result – the resultant solid.

If successful, the function returns rt_Success; otherwise, it returns an error code from the MbResultType enumeration (see mb_operation_result.h).

The function is declared in action_sheet.h.

The curve curve can be either a line segment lying on the planar faces bendingFaces, or an infinite line. The faces bendingFaces must all lie on a common plane. The curve curve may simultaneously pass through several planar faces, but bends are formed only on those faces that are included in the bendingFaces array. The jog is performed as two bends along a line shifted relative to each other. The sheet faces of the bends generated during the operation are returned in the firstBendFaces and secondBendFaces arrays. Figure shows a sheet solid with the jog operation applied:

../../../../_images/M.7.4.1.png

The SheetSolidJog() function adds the MbJogSolid builder to the history of the constructed solid. The builder contains all the data necessary to perform the operation. The MbJogSolid builder is declared in cr_stamp_jog_solid.h.