Unbending Sheet Body Bends

The function

MbResultType UnbendSheetSolid(      MbSolid &                   solid,
                                    MbeCopyMode                 sameShell,
                              const RPArray<MbSheetMetalBend> & bends,
                              const MbFace &                    fixedFace,
                              const MbCartPoint &               fixedPoint,
                                    MbSNameMaker &              nameMaker,
                                    MbSolid *&                  result,
                                    RPArray<MbContour3D> *      ribContours = nullptr)

unbends the bends of a sheet body.

The input parameters of the function are:

  • solid – the source solid;

  • sameShell – the copy mode of the source solid;

  • bends – the set of bends consisting of pairs of faces: the inner and outer faces of a bend;

  • fixedFace – the face that remains fixed;

  • fixedPoint – a point in the parametric domain of the fixedFace face, in case it is a bend face;

  • nameMaker – the operation name maker.

The output parameters of the function are the constructed solid result and the set of contours ribContours, which contain the curves of the stiffening rib boundaries (if any) in the unbent state.

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 the file action_sheet.h.

The function unbends the bends bends of a sheet body with respect to the fixed face fixedFace. If fixedFace is a sheet face belonging to one of the bends in bends, then the unbending is performed so that the plane tangent to the surface under fixedFace at the point fixedPoint remains fixed.

As a rule, each element of the bends array contains only one pair of sheet faces, that is, the inner and outer sheet faces of a bend. However, in the case of a ruled shell created by two sketches, a situation may arise when a chain of such adjacent bends can only be unbent simultaneously. In this case, the bends array element must include this entire chain as pairs of inner and outer faces of a composite bend that correspond to each other. All links in such a chain are marked by the ruled shell creation operation with the same value in the MbSMBendNames::groupNumber field that differs from SYS_MAX_UINT. If the value is equal to SYS_MAX_UINT, the bend is a single bend and does not belong to any chain. If the groupNumber values differ, the links belong to different chains of bends that are bent/unbent simultaneously.

When unbending a cylindrical bend, the radius of its inner face can be obtained directly from the face itself. Therefore, the radius value passed in the bend parameters is ignored, and the operation will be performed correctly even if the radius value in the parameters is set incorrectly.

Fig. 1 shows a sheet body in the bent state:

../../../../_images/M.7.6.1.png

Fig. 1

Fig. 2 shows the sheet body from Fig. 1 after the unbending operation:

../../../../_images/M.7.6.2.png

Fig. 2

The UnbendSheetSolid() function adds the MbBendUnbendSolid builder to the history of the constructed solid. This builder contains all the data required to perform the operation. The MbBendUnbendSolid builder is declared in the file cr_sheet_bend_unbend_solid.h.