C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Direct modeling parameters. More...
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 | |
MbCreator * | CreateFaceModifiedSolid (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 ¶ms, const RPArray< MbFace > &faces, const MbSNameMaker &names, MbSolid *&result) |
Direct modeling parameters.
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:
[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. |
MbResultType EdgeModifiedSolid | ( | MbSolid & | solid, |
MbeCopyMode | sameShell, | ||
const ModifyValues & | oldParams, | ||
const RPArray< MbCurveEdge > & | edges, | ||
const MbSNameMaker & | names, | ||
MbSolid *& | result | ||
) |
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.
[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. |
MbResultType FaceModifiedSolid | ( | MbSolid & | solid, |
MbeCopyMode | sameShell, | ||
const ModifyValues & | params, | ||
const RPArray< MbFace > & | faces, | ||
const MbSNameMaker & | names, | ||
MbSolid *& | result | ||
) |
The method performs one of the following actions depending on the parameter ModifyValues:
[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. |