C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
op_direct_mod_parameter.h File Reference

Direct modeling parameters. More...

#include <mb_axis3d.h>
#include <solid.h>

Classes

struct  ModifyValues
 Old parameters for a solid direct modification. More...
 
class  MbCollectFacesParams
 Parameters for faces highlighting for solid direct modification. More...
 
class  MbModifiedSolidParams
 Parameters for a solid direct modification. More...
 
class  MbModifiedSolidResults
 Results for a solid direct modification. More...
 

Enumerations

enum  MbeModifyingType {
  dmt_Remove = 0 , dmt_Create , dmt_Action , dmt_Offset ,
  dmt_Fillet , dmt_Supple , dmt_Purify , dmt_Merger ,
  dmt_United , dmt_Rotate , dmt_Undefined
}
 Old type of modification. More...
 
enum  MbeModifyingMode {
  dmm_Undefined = 0 , dmm_RemoveFaces = 10 , dmm_RemoveFacesWithAdjacentFillets = 11 , dmm_RemoveBelowRadius = 12 ,
  dmm_RemoveBelowRadiusWithAdjacentFillets = 13 , dmm_Create = 30 , dmm_MoveFacesByVector = 40 , dmm_OffsetFaces = 50 ,
  dmm_ConvertFacesToNurbs = 60 , dmm_PurifyFillets = 70 , dmm_PurifyFilletsChains = 71 , dmm_PurifyFilletsBelowRadius = 72 ,
  dmm_DeleteEdges = 90 , dmm_UniteFaces = 100 , dmm_RotateFaces = 110 , dmm_RotateFacesNoFilletAdaptation = 111 ,
  dmm_FilletsRadiusChange = 120 , dmm_FilletsRadiusSet = 130 , dmm_FilletsRadiusSetSingle = 131 , dmm_ReplaceFaces = 140
}
 Type of modification. More...
 

Functions

MbCreatorCreateFaceModifiedSolid (MbFaceShell *outer, MbeCopyMode sameShell, const ModifyValues &oldParams, const RPArray< MbFace > &faces, const RPArray< MbCurveEdge > &edges, const MbSNameMaker &names, MbResultType &res, MbFaceShell *&shell)
 
MbResultType EdgeModifiedSolid (MbSolid &solid, MbeCopyMode sameShell, const ModifyValues &oldParams, const RPArray< MbCurveEdge > &edges, const MbSNameMaker &names, MbSolid *&result)
 
MbResultType FaceModifiedSolid (MbSolid &solid, MbeCopyMode sameShell, const ModifyValues &params, const RPArray< MbFace > &faces, const MbSNameMaker &names, MbSolid *&result)
 

Detailed Description

Direct modeling parameters.

Function Documentation

◆ CreateFaceModifiedSolid()

MbCreator* CreateFaceModifiedSolid ( MbFaceShell outer,
MbeCopyMode  sameShell,
const ModifyValues oldParams,
const RPArray< MbFace > &  faces,
const RPArray< MbCurveEdge > &  edges,
const MbSNameMaker names,
MbResultType res,
MbFaceShell *&  shell 
)

Construct the solid's shell by modification the source shell. The method performs one of the following actions depending on the parameter ModifyValues:

  1. Removal of the specified faces with the neighborhood from a solid (param.way==dmt_Remove).
  2. Creation of a solid from the specified faces with the neighborhood (param.way==dmt_Create).
  3. Translation of the specified faces with neighborhood relative to the other faces of the solid (param.way==dmt_Action).
  4. Replacement of the specified faces by offset faces (param.way==dmt_Offset).
  5. Radius change of the specified fillet faces (param.way==dmt_Fillet).
  6. Replacement of the specified faces of a solid with a deformable NURBS faces for editing (param.way==dmt_Supple).
  7. Removal of the specified fillet faces from a solid (param.way==dmt_Purify).
  8. Edge vertices merging and edges removal (param.way==dmt_Merger).
  9. Replacement of the smoothly joined faces with a single face (param.way==dmt_United).
  10. Rotation of the chosen faces (param.way==dmt_Rotate).
    The function simultaneously creates the shell and its constructor.
    Deprecated:
    The method is deprecated and will be removed in version 2024.
    Parameters
    [in]outer- The source shell.
    [in]sameShell- Mode of copying the source shell.
    [in]parameters- Parameters of the modification.
    [in]faces- Faces to be modified.
    [in]edges- Edges to be modified.
    [in]names- An object defining names generation in the operation.
    [out]res- The extrusion operation result code.
    [out]shell- The resultant shell.
    Returns
    Returns the shell constructor.

◆ EdgeModifiedSolid()

MbResultType EdgeModifiedSolid ( MbSolid solid,
MbeCopyMode  sameShell,
const ModifyValues oldParams,
const RPArray< MbCurveEdge > &  edges,
const MbSNameMaker names,
MbSolid *&  result 
)
Deprecated:
The method is deprecated and will be removed in version 2024.

The method performs the deletion of selectsd edges, merging their vertices and modification of surrounding faces (param.way==dmt_Merger). The direction of the vector "params.direction" determines whether the start vertex of an edge is merged with the end vertex, or whether the end vertex of an edge is merged with the start vertex.

Parameters
[in]solid- The initial solid.
[in]sameShell- The mode of copying of the initial solid.
[in]params- Parameters of the modification, the way must be equal to param.way==dmt_Merger.
[in]edges- Edges to be removed.
[in]names- An object for naming the new objects.
[out]result- The modified solid.
Returns
Returns operation result code.

◆ FaceModifiedSolid()

MbResultType FaceModifiedSolid ( MbSolid solid,
MbeCopyMode  sameShell,
const ModifyValues params,
const RPArray< MbFace > &  faces,
const MbSNameMaker names,
MbSolid *&  result 
)
Deprecated:
The method is deprecated and will be removed in version 2024.

The method performs one of the following actions depending on the parameter ModifyValues:

  1. Removal of the specified faces with the neighborhood from a solid (param.way==dmt_Remove).
  2. Creation of a solid from the specified faces with the neighborhood (param.way==dmt_Create).
  3. Translation of the specified faces with neighborhood relative to the other faces of the solid (param.way==dmt_Action).
  4. Replacement of the specified faces by offset faces (param.way==dmt_Offset).
  5. Radius change of the specified fillet faces (param.way==dmt_Fillet).
  6. Replacement of the specified faces of a solid with a deformable faces for editing (param.way==dmt_Supple).
  7. Removal of the specified fillet faces from a solid (param.way==dmt_Purify).
  8. Replacement of the smoothly joined faces with a single face (param.way==dmt_United).
  9. Rotation of the chosen faces (param.way==dmt_Rotate).
    Parameters
    [in]solid- The initial solid.
    [in]sameShell- The mode of copying of the initial solid.
    [in]params- Parameters of the modification.
    [in]faces- Faces to be modified.
    [in]names- An object for naming the new objects.
    [out]result- The modified solid.
    Returns
    Returns operation result code.