diff --git a/C3d/Include/action_general.h b/C3d/Include/action_general.h index 9360615..0602960 100644 --- a/C3d/Include/action_general.h +++ b/C3d/Include/action_general.h @@ -646,72 +646,6 @@ MATH_FUNC (bool) GetNearestSolid( const MbNearestSolidParams & params, MbNearestSolidResult & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Найти ближайшие тела при выдавливании с опцией "до ближайшего объекта". - \en Find the nearest solids while extruding with option 'up to the nearest object'. \~ - \details \ru Найти ближайшие тела при выдавливании с опцией "до ближайшего объекта". \n - Возвращает номера (nPlus и nMinus) ближайших тел с положительной и отрицательной стороны эскиза. - \en Find the nearest solids while extruding with option 'up to the nearest object'. \n - Returns the numbers (nPlus and nMinus) of nearest solids on the positive and the negative sides of the sketch. \~ - \param[in] pl - \ru Локальная система координат. - \en A local coordinate system. \~ - \param[in] c - \ru Множество двумерных контуров. - \en An array of two-dimensional contours. \~ - \param[in] direction - \ru Направление выдавливания. - \en An extrusion direction. \~ - \param[in] solids - \ru Целевой набор тел. - \en A target set of solids. \~ - \param[out] nPlus - \ru Номер ближайшего тела в положительном направлении. - \en The number of the nearest solid in the positive direction. \~ - \param[out] nMinus - \ru Номер ближайшего тела в отрицательном направлении. - \en The number of the nearest solid in the negative direction. \~ - \return \ru Возвращает true, если найдено тело хотя бы в одном из направлений. - \en Returns 'true' if a solid is found in at least one of directions. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( GetNearestSolid with MbNearestSolidParams ) -MATH_FUNC (bool) GetNearestSolid( const MbPlacement3D & pl, - RPArray & c, - MbSweptLayout::Direction direction, - RPArray & solids, - size_t & nPlus, - size_t & nMinus ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Найти ближайшие тела при выдавливании с опцией "до ближайшего объекта". - \en Find the nearest solids while extruding with option 'up to the nearest object'. \~ - \details \ru Найти ближайшие тела при выдавливании с опцией "до ближайшего объекта". \n - возвращает номера (nPlus и nMinus) ближайших тел ближайших тел в прямом и обратном направлении. - \en Find the nearest solids while extruding with option 'up to the nearest object'. \n - returns numbers (nPlus and nMinus) of the nearest solids in the forward and the backward direction. \~ - \param[in] curves - \ru Набор кривых. - \en A set of curves. \~ - \param[in] direction - \ru Направление выдавливания. - \en An extrusion direction. \~ - \param[in] operationDirection - \ru Параметры выдавливания "до ближайшего объекта". - \en Parameters of extrusion 'up to the nearest object'. \~ - \param[in] solids - \ru Целевой набор тел. - \en A target set of solids. \~ - \param[out] nPlus - \ru Номер ближайшего тела в положительном направлении. - \en The number of the nearest solid in the positive direction. \~ - \param[out] nMinus - \ru Номер ближайшего тела в отрицательном направлении. - \en The number of the nearest solid in the negative direction. \~ - \return \ru Возвращает true, если найдено тело хотя бы в одном из направлений. - \en Returns 'true' if a solid is found in at least one of directions. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( GetNearestSolid with MbNearestSolidParams ) -MATH_FUNC (bool) GetNearestSolid( RPArray & curves, - const MbVector3D & direction, - MbSweptLayout::Direction operationDirection, - RPArray & solids, - size_t & nPlus, - size_t & nMinus ); - - //------------------------------------------------------------------------------ /** \brief \ru Проверить оболочку или тело, состоящее из NURBS поверхностей. \en Check a shell or a solid that consists of NURBS surfaces. \~ @@ -843,38 +777,6 @@ MATH_FUNC (MbSurface *) GetExtendedSurfaceCopy( MbCube & VERSION version );// = Math::DefaultMathVersion() ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить набор граней с топологией призмы. - \en Create a set of faces with topology of a prism. \~ - \details \ru Построить набор граней с топологией призмы. \n - \en Create a set of faces with topology of a prism. \n \~ - \param[in] place - \ru Локальная система координат (ЛСК). - \en A local coordinate system (LCS). \~ - \param[in] contour - \ru Двумерный контур в ЛСК. - \en A two-dimensional curve in LCS. \~ - \param[in] der - \ru Направление выдавливания. - \en An extrusion direction. \~ - \param[in] sense - \ru Ориентация выходного массива граней как замкнутой оболочки. - \en An orientation of the output array of faces as a closed shell. \~ - \param[in] n - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in,out] faces - \ru Множество созданных граней. - \en The array of created faces. \~ - \param[in] useAddCount - \ru Использовать количество граней initFaces на входе для именования новых граней. - \en The number of input faces initFaces is to be used for naming the new faces. \~ - \return \ru Возвращает true, если получилось построить грани. - \en Returns true if new faces have been successfully created. \~ - \ingroup Algorithms_3D - \deprecated \ru Функция устарела, взамен использовать #CreateFaces с #FacesSPtrVector. - \en The function is deprecated, instead use #CreateFaces with #FacesSPtrVector. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateFaces with FacesSPtrVector ) -MATH_FUNC (bool) CreateFaces( const MbPlacement3D & place, const MbContour & contour, - const MbVector3D & der, bool sense, const MbSNameMaker & n, - RPArray & faces, bool useAddCount = false ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить набор граней с топологией призмы. \en Create a set of faces with topology of a prism. \~ diff --git a/C3d/Include/action_phantom.h b/C3d/Include/action_phantom.h index f70ef8b..47066fa 100644 --- a/C3d/Include/action_phantom.h +++ b/C3d/Include/action_phantom.h @@ -30,64 +30,6 @@ class MATH_CLASS MbSolid; class MATH_CLASS MbSNameMaker; -//------------------------------------------------------------------------------ -/** \brief \ru Построить фантомные поверхности скругления/фаски. - \en Create phantom surfaces of fillet/chamfer. \~ - \details \ru Построить фантомные поверхности скругления/фаски и сложить в контейнер surfaces. \n - По окончании работ поверхности можно и нужно удалить. \n - \en Create phantom surfaces of fillet/chamfer and store them in the container 'surfaces'. \n - After finish working with the surfaces they should be deleted. \n \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothPhantom с набором параметров #MbSmoothPhantomParams. - \en The method is deprecated. Use instead #SmoothPhantom with the parameters #MbSmoothPhantomParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер для скругления/фаски. - \en An array of edges for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[out] result - \ru Поверхности скругления/фаски. - \en The fillet/chamfer surfaces. \~ - \return \ru Возвращает код результата построения. - \en Returns the creation result code. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SmoothPhantom with MbSmoothPhantomParams ) -MATH_FUNC (MbResultType) SmoothPhantom( const MbSolid & solid, - RPArray & edges, - const SmoothValues & params, - RPArray & result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить фантомные поверхности скругления/фаски. - \en Create phantom surfaces of fillet/chamfer.\~ - \details \ru Построить фантомные поверхности скругления/фаски и сложить в контейнер surfaces. \n - По окончании работ поверхности можно и нужно удалить. - \en Create phantom surfaces of fillet/chamfer and store them in the container 'surfaces'. \n - After finish working with the surfaces they should be deleted. \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothPhantom с набором параметров #MbSmoothPhantomParams. - \en The method is deprecated. Use instead #SmoothPhantom with the parameters #MbSmoothPhantomParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер и функций изменения радиуса для скругления/фаски. - \en An array of edges and radius laws for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[out] result - \ru Поверхности скругления/фаски. - \en The fillet/chamfer surfaces. \~ - \return \ru Возвращает код результата построения. - \en Returns the creation result code. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SmoothPhantom with MbSmoothPhantomParams ) -MATH_FUNC (MbResultType) SmoothPhantom( const MbSolid & solid, - SArray & edges, - const SmoothValues & params, - RPArray & result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить фантомные поверхности скругления/фаски. \en Create phantom surfaces of fillet/chamfer.\~ @@ -108,77 +50,6 @@ MATH_FUNC (MbResultType) SmoothPhantom( const MbSmoothPhantomParams & params, MbSmoothPhantomResult & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить последовательности гладко стыкующихся рёбер. - \en \~ - \details \ru Построить последовательности гладко стыкующихся рёбер, скругляемых одновременно, - а также поверхности скругления/фаски (массив surfaces). \n - По окончании работ поверхности можно и нужно удалить. - \en \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothSequence с набором параметров #MbSmoothSequenceParams. - \en The method is deprecated. Use instead #SmoothSequence with the parameters #MbSmoothSequenceParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер для скругления/фаски. - \en An array of edges for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[in] createSurfaces - \ru Создавать ли поверхности скругления/фаски для фантома? - \en Create a fillet/chamfer surfaces for phantom. \~ - \param[out] sequences - \ru Последовательность гладко стыкующихся рёбер. - \en Sequence of smooth mating edges. \~ - \param[out] result - \ru Поверхности скругления/фаски. - \en The fillet/chamfer surfaces. \~ - \return \ru Возвращает код результата построения. - \en \~ - \ingroup Algorithms_3D -*/ - -// --- -DEPRECATE_DECLARE_REPLACE( SmoothSequence with MbSmoothSequenceParams ) -MATH_FUNC (MbResultType) SmoothSequence( const MbSolid & solid, - RPArray & edges, - const SmoothValues & params, - bool createSurfaces, - RPArray & sequences, - RPArray & result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить последовательности гладко стыкующихся рёбер. - \en \~ - \details \ru Построить последовательности гладко стыкующихся рёбер, скругляемых одновременно, - а также поверхности скругления/фаски (массив surfaces). \n - По окончании работ поверхности можно и нужно удалить. - \en \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothSequence с набором параметров #MbSmoothSequenceParams. - \en The method is deprecated. Use instead #SmoothSequence with the parameters #MbSmoothSequenceParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер и функций изменения радиуса для скругления/фаски. - \en An array of edges and radius laws for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[in] createSurfaces - \ru Создавать ли поверхности скругления/фаски для фантома? - \en Create a fillet/chamfer surfaces for phantom. \~ - \param[out] sequences - \ru Последовательность гладко стыкующихся рёбер. - \en Sequence of smooth mating edges. \~ - \param[out] result - \ru Поверхности скругления/фаски. - \en The fillet/chamfer surfaces. \~ - \return \ru Возвращает код результата построения. - \en \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SmoothSequence with MbSmoothSequenceParams ) -MATH_FUNC (MbResultType) SmoothSequence( const MbSolid & solid, - SArray & edges, - const SmoothValues & params, - bool createSurfaces, - RPArray & sequences, - RPArray & result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить последовательности гладко стыкующихся рёбер. \en Create a sequence of smoothly connected edges.\~ @@ -280,76 +151,6 @@ MATH_FUNC (bool) TruncatDirection( const MbCurveEdge & truncatingEdge, MbPlacement3D & dirPlace ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить опорные точки размеров операции скругления/фаски. - \en Create support points of fillet/chamfer operation sizes. \~ - \details \ru Построить опорные точки размеров операции скругления/фаски и сложить в контейнер data. \n - Первые две точки лежат на краях поверхности скругления/фаски. - \en Create support points of fillet/chamfer operation sizes and store them in container 'data'. \n - The first two points lie on the fillet/chamfer surface boundary. \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothPositionData с набором параметров #MbSmoothPositionDataParams. - \en The method is deprecated. Use instead #SmoothPositionData with the parameters #MbSmoothPositionDataParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер для скругления/фаски. - \en An array of edges for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[out] result - \ru Опорные точки размеров операции скругления/фаски. - \en Support points of the fillet/chamfer operation sizes. \~ - \param[in] edgeParam - \ru Параметр точки на ребре (0 <= edgeParam <= 1). - \en The parameter of a point on the edge (0 <= edgeParam <= 1). \~ - \param[in] dimensionEdge - \ru Ребро, на котором дать опорные точки. - \en The edge on which the support points are to be created. \~ - \return \ru Возвращает код результата построения. - \en Returns the creation result code. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SmoothPositionData with MbSmoothPositionDataParams ) -MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & solid, - RPArray & edges, - const SmoothValues & params, - RPArray & result, - double edgeParam = 0.5, - const MbCurveEdge * dimensionEdge = nullptr ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить опорные точки размеров операции скругления/фаски. - \en Create support points of fillet/chamfer operation sizes. \~ - \details \ru Построить опорные точки размеров операции скругления/фаски и сложить в контейнер data. \n - Первые две точки лежат на краях поверхности скругления/фаски. - \en Create support points of fillet/chamfer operation sizes and store them in container 'data'. \n - The first two points lie on the fillet/chamfer surface boundary. \~ - \deprecated \ru Метод устарел. Взамен использовать #SmoothPositionData с набором параметров #MbSmoothPositionDataParams. - \en The method is deprecated. Use instead #SmoothPositionData with the parameters #MbSmoothPositionDataParams. \~ - \param[in] solid - \ru Исходное тело. - \en The initial solid. \~ - \param[in] edges - \ru Множество выбранных ребер для скругления/фаски и функций изменения радиуса для скругления/фаски. - \en The array of specified edges for fillet/chamfer and radius laws for fillet/chamfer. \~ - \param[in] params - \ru Параметры операции скругления/фаски. - \en Parameters of the fillet/chamfer operation. \~ - \param[out] result - \ru Опорные точки размеров операции скругления/фаски. - \en Support points of the fillet/chamfer operation sizes. \~ - \param[in] edgeParam - \ru Параметр точки на ребре (0 <= edgeParam <= 1). - \en The parameter of a point on the edge (0 <= edgeParam <= 1). \~ - \param[in] dimensionEdge - \ru Ребро, на котором дать опорные точки. - \en The edge on which the support points are to be created. \~ - \return \ru Возвращает код результата построения. - \en Returns the creation result code. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SmoothPositionData with MbSmoothPositionDataParams ) -MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & solid, - SArray & edges, - const SmoothValues & params, - RPArray & result, - double edgeParam = 0.5, - const MbCurveEdge * dimensionEdge = nullptr ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить опорные точки размеров операции скругления/фаски. \en Create support points of fillet/chamfer operation sizes. \~ @@ -430,56 +231,4 @@ MATH_FUNC (MbResultType) SectionPhantom( const MbSectionData & sectionData, MbSectionPhantom & sctionPhantom ); -//------------------------------------------------------------------------------ -/** \brief \ru Вычисление данных фантома для торцев поверхности переменного сечения. - \en Calculation of the phantom data for the ends of the mutable section surface. \~ - \details \ru Вычисление плоскости сечения, точек направляющих, сторон охватывающего треугольника и вершины на торце поверхности. \n - \en Calculating the section plane, guide points, sides of the enclosing triangle, and apex at the ends of the surface. \n - \param[in] sectionData - \ru Параметры поверхности переменного сечения. - \en The parameters of the mutable section surface. \~ - \param[out] begPlace - \ru XY плоскость локальной системы координат в начале поверхности. - \en The XY plane of the local coordinate system is the plane at the beginning of the surface. \~ - \param[out] begGuideP1 - \ru Точка первой направляющей в начале поверхности. - \en The point of the first guide at the beginning of the surface. \~ - \param[out] begGuideP2 - \ru Точка второй направляющей в начале поверхности. - \en The point of the second guide at the beginning of the surface. \~ - \param[out] begVector1 - \ru Вектор направления от первой направляющей (сторона охватывающего треугольника) в начале поверхности. - \en The direction vector from the first guide (the side of the enclosing triangle) at the beginning of the surface. \~ - \param[out] begVector2 - \ru Вектор направления от второй направляющей (сторона охватывающего треугольника) в начале поверхности. - \en The direction vector from the second guide (the side of the enclosing triangle) at the beginning of the surface. \~ - \param[out] begApex - \ru Точка вершинной кривой в начале поверхности (может быть в бесконечности). - \en The point of the apex curve at the beginning of the surface (maybe in infinity). \~ - \param[out] endPlace - \ru XY плоскость локальной системы координат в конце поверхности. - \en The XY plane of the local coordinate system is the plane at the end of the surface. \~ - \param[out] endGuideP1 - \ru Точка первой направляющей в конце поверхности. - \en The point of the first guide at the end of the surface. \~ - \param[out] endGuideP2 - \ru Точка второй направляющей в конце поверхности. - \en The point of the second guide at the end of the surface. \~ - \param[out] endVector1 - \ru Вектор направления от первой направляющей (сторона охватывающего треугольника) в конце поверхности. - \en The direction vector from the first guide (the side of the enclosing triangle) at the end of the surface. \~ - \param[out] endVector2 - \ru Вектор направления от второй направляющей (сторона охватывающего треугольника) в конце поверхности. - \en The direction vector from the second guide (the side of the enclosing triangle) at the end of the surface. \~ - \param[out] endApex - \ru Точка вершинной кривой в конце поверхности (может быть в бесконечности). - \en The point of the apex curve at the end of the surface (maybe in infinity). \~ - \return \ru Возвращает код результата построения. - \en Returns the creation result code. \~ - \ingroup Algorithms_3D -*/ -// --- -DEPRECATE_DECLARE_REPLACE(SectionPhantom with MbSectionPhantom) -MATH_FUNC (MbResultType) SectionPhantom( const MbSectionData & sectionData, - MbPlacement3D & begPlace, - MbCartPoint3D & begGuideP1, - MbCartPoint3D & begGuideP2, - MbVector3D & begVector1, - MbVector3D & begVector2, - MbCartPoint3D & begApex, - MbPlacement3D & endPlace, - MbCartPoint3D & endGuideP1, - MbCartPoint3D & endGuideP2, - MbVector3D & endVector1, - MbVector3D & endVector2, - MbCartPoint3D & endApex ); - - #endif // __ACTION_PHANTOM_H diff --git a/C3d/Include/action_sheet.h b/C3d/Include/action_sheet.h index 7517633..8b22b7d 100644 --- a/C3d/Include/action_sheet.h +++ b/C3d/Include/action_sheet.h @@ -946,19 +946,6 @@ MATH_FUNC (MbResultType) CreateStampParts( const MbStampPartsParams & params, MbStampPartsResult & resultSolids ); -//------------------------------------------------------------------------------ -// устаревшая -// --- -DEPRECATE_DECLARE_REPLACE( CreateStampParts with 'MbStampPartsParams' argument ) -MATH_FUNC (MbResultType) CreateStampParts( const MbPlacement3D & placement, - const MbContour & contour, - const MbStampingValues & params, - const double thickness, - const MbSNameMaker & nameMaker, - MbSolid *& partToAdd, - MbSolid *& partToSubtract ); - - //------------------------------------------------------------------------------ /** \brief \ru Создание составляющих частей штамповки одного тела другим телом. \en Stamping with a tool solid (punch or die). \~ @@ -1736,67 +1723,6 @@ MATH_FUNC (bool) BuildBends3DCenterlines( const MbBends3DLinesParams & params, MbBends3DLinesResult & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Рассчитать параметры для замыкания угла. - \en Calculate the parameters for the corner closure. \~ - \details \ru Находит общее ребро угла или пару рёбер для замыканий через сгиб. Рассчитывает параметры замыкания для данных пар граней.\n - \en Find common edge for corner closure or two basic edges for corner closure across bend. - Calculate the parameters for the corner closure of selected faces.\n \~ - \deprecated \ru Функция устарела, взамен использовать #GetParamsForCloseCorner с параметрами #MbCloseCornerParams и #MbCloseCornerResults. - \en The function is deprecated, instead use #GetParamsForCloseCorner with parameters #MbCloseCornerParams and #MbCloseCornerResults. \~ - \param[in] facesPlus - \ru Выбранные торцевые грани стороны угла, условно принятой за положительную. - \en Selected butt faces from the side of angle assumed to be positive.\~ - \param[in] facesMinus - \ru Выбранные торцевые грани стороны угла, условно принятой за отрицательную. - \en Selected butt faces from the side of angle assumed to be negative. \~ - \param[out] parameters - \ru Параметры замыкания. - \en The closure parameters. \~ - \param[out] edgePlus - \ru Ребро сгиба, условно принятое за положительное. - \en The bend edge assumed to be positive. \~ - \param[out] edgeMinus - \ru Ребро сгиба, условно принятое за отрицательное. - \en The bend edge assumed to be negative. \~ - \return \ru true - в случае успеха операции, false - в противном случае. - \en True if the operation succeeded, otherwise false. \~ - \ingroup Sheet_Metal_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( GetParamsForCloseCorner with MbCloseCornerParams and MbCloseCornerResults arguments ) -MATH_FUNC (bool) GetParamsForCloseCorner( const RPArray & facesPlus, - const RPArray & facesMinus, - MbClosedCornerValues & parameters, - MbCurveEdge *& edgePlus, - MbCurveEdge *& edgeMinus ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Рассчитать параметры для замыкания угла. - \en Calculate the parameters for the corner closure. \~ - \details \ru Находит общее ребро угла или пару рёбер для замыканий через сгиб.\n - \en Find common edge for corner closure or two basic edges for corner closure across bend.\n \~ - \deprecated \ru Функция устарела, взамен использовать #GetParamsForCloseCorner с параметрами #MbCloseCornerParams и #MbCloseCornerResults. - \en The function is deprecated, instead use #GetParamsForCloseCorner with parameters #MbCloseCornerParams and #MbCloseCornerResults. \~ - \param[in] selectedEdgePlus - \ru Выбранное ребро стороны угла, условно принятой за положительную. - \en Selected edge from the side of angle assumed to be positive.\~ - \param[in] selectedEdgeMinus - \ru Выбранное ребро стороны угла, условно принятой за отрицательную. - \en Selected edge from the side of angle assumed to be negative. \~ - \param[out] parameters - \ru Параметры замыкания. - \en The closure parameters. \~ - \param[out] edgePlus - \ru Ребро сгиба, условно принятое за положительное. - \en The bend edge assumed to be positive. \~ - \param[out] edgeMinus - \ru Ребро сгиба, условно принятое за отрицательное. - \en The bend edge assumed to be negative. GetParamsForCloseCorner - \return \ru true - в случае успеха операции, false - в противном случае. - \en True if the operation succeeded, otherwise false. \~ - \ingroup Sheet_Metal_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( GetParamsForCloseCorner with MbCloseCornerParams and MbCloseCornerResults arguments ) -MATH_FUNC (bool) GetParamsForCloseCorner( const MbCurveEdge & selectedEdgePlus, - const MbCurveEdge & selectedEdgeMinus, - MbClosedCornerValues & parameters, - MbCurveEdge *& edgePlus, - MbCurveEdge *& edgeMinus ); - - //------------------------------------------------------------------------------ /** \brief \ru Рассчитать параметры для замыкания угла. \en Calculate the parameters for the corner closure. \~ diff --git a/C3d/Include/action_shell.h b/C3d/Include/action_shell.h index 65c8f8d..e5f3c89 100644 --- a/C3d/Include/action_shell.h +++ b/C3d/Include/action_shell.h @@ -142,36 +142,6 @@ MATH_FUNC (MbResultType) OffsetShell( MbSolid & solid, MbSolid *& result ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить незамкнутое тело по множеству точек. - \en Create an open solid from a point set. \~ - \details \ru Построить незамкнутое тело по множеству точек, заданных в параметрах построения. \n - \en Create an open solid from a point set specified in parameters. \n \~ - \deprecated \ru Функция устарела, взамен использовать #NurbsSurfacesShell с набором параметров #MbNurbsSurfacesShellParams. - \en The function is deprecated, instead use #NurbsSurfacesShell with the parameter list #MbNurbsSurfacesShellParams. \~ - \param[in, out] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \param[in, out] progBar - \ru Индикатор прогресса выполнения операции. - \en A progress indicator of the operation. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( NurbsSurfacesShell with MbNurbsSurfacesShellParams ) -MATH_FUNC (MbResultType) NurbsSurfacesShell( NurbsSurfaceValues & params, - const MbSNameMaker & operNames, - bool isPhantom, - MbSolid *& result, - IProgressIndicator * progBar ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить незамкнутое тело по множеству точек. \en Create an open solid from a point set. \~ @@ -193,32 +163,6 @@ MATH_FUNC (MbResultType) NurbsSurfacesShell( MbNurbsSurfacesShellParams & params IProgressIndicator * progBar ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить незамкнутое тело по сети кривых. - \en Create an open solid from a set of curves. \~ - \details \ru Построить незамкнутое тело по сети кривых, заданных в параметрах построения. \n - \en Create an open solid from a set of curves specified in the parameters. \n \~ - \deprecated \ru Функция устарела, взамен использовать #MeshShell с набором параметров #MbMeshShellParameters. - \en The function is deprecated, instead use #MeshShell with the parameter list #MbMeshShellParameters. \~ - \param[in] pars - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( MeshShell with MbMeshShellParameters ) -MATH_FUNC (MbResultType) MeshShell( MeshSurfaceValues & pars, - const MbSNameMaker & operNames, - bool isPhantom, - MbSolid *& result ); - //------------------------------------------------------------------------------ /** \brief \ru Построить тело по сети кривых. \en Create a solid from a set of curves. \~ @@ -282,50 +226,6 @@ MATH_FUNC (MbResultType) TruncateShell( MbSolid & initSolid, MbPlacement3D *& resultPlace ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить продолжение незамкнутого тела выдавливанием. - \en Create an extension of an open solid by extrusion. \~ - \details \ru Построить продолжение незамкнутого тела путём продления указанных краевых рёбер тела. \n - Продление может быть выполнено следующими способами. - Может быть удлинена на заданное расстояние указанная грань. - К указанной грани может быть добавлена гладко стыкующаяся с ней грань. - К указанной грани может быть добавлена грань, полученная выдавливанием крайнего ребра в заданном направлении. - \en Create an extension of an open solid by extension of specified boundary edges of the solid. \n \~ - An extension can be performed in the following ways: - The specified faces can be extended on the given distance. - A smoothly connected face can be added to the given face. - A face obtained by extrusion of a boundary edge in the given direction can be added to the specified face. - \param[in] solid - \ru Исходная оболочка. - \en The initial shell. \~ - \param[in] sameShell - \ru Режим копирования оболочки. - \en Whether to copy the shell. \~ - \param[in] face - \ru Одна из продляемых граней в исходной оболочке. - \en One of the face of the initial shell to be extended. \~ - \param[in] edges - \ru Множество краевых ребер, через которые выполняется продление. - \en An array of boundary edges through which to extend the face. \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #ExtensionShell с набором параметров #MbExtensionShellParams. - \en The function is deprecated, instead use #ExtensionShell with the parameter list #MbExtensionShellParams. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( ExtensionShell with MbExtensionShellParams ) -MATH_FUNC (MbResultType) ExtensionShell( MbSolid & solid, - MbeCopyMode sameShell, - MbFace & face, - const RPArray & edges, - const ExtensionValues & params, - const MbSNameMaker & operNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить продолжение незамкнутого тела выдавливанием. \en Create an extension of an open solid by extrusion. \~ @@ -358,33 +258,6 @@ MATH_FUNC (MbResultType) ExtensionShell( MbSolid & solid, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить линейчатое незамкнутое тело. - \en Create an open ruled solid. \~ - \details \ru Построить линейчатое незамкнутое тело по двум кривым, заданным в параметрах. \n - \en Create an open ruled solid from two curves specified in parameters. \n \~ - \param[in,out] pars - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #RuledShell с набором параметров #MbRuledShellParams. - \en The function is deprecated, instead use #RuledShell with the parameter list #MbRuledShellParams. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( RuledShell with RuledShellParams ) -MATH_FUNC (MbResultType) RuledShell( RuledSurfaceValues & pars, - const MbSNameMaker & operNames, - bool isPhantom, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить линейчатое незамкнутое тело. \en Create an open ruled solid. \~ @@ -455,81 +328,6 @@ MATH_FUNC (bool) CheckRuledParams( const MbCurve3D & curve, bool isAscending ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить тело соединения по двум кривым. - \en Create a joint solid from two curves. \~ - \details \ru Построить незамкнутое тело соединения по двум кривым на поверхности. \n - \en Create an open joint solid from two curves on a surface. \n \~ - \deprecated \ru Функция устарела, взамен использовать #JoinShell с набором параметров #MbJoinShellParams. - \en The function is deprecated, instead use #JoinShell with the parameter list #MbJoinShellParams. \~ - \param[in] curve1 - \ru Первая поверхностная кривая. - \en The first curve on a surface. \~ - \param[in] curve2 - \ru Вторая поверхностная кривая. - \en The second curve on a surface. \~ - \param[in] parameters - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -//--- -DEPRECATE_DECLARE_REPLACE( JoinShell with MbJoinShellParams ) -MATH_FUNC (MbResultType) JoinShell( MbSurfaceCurve & curve1, - MbSurfaceCurve & curve2, - JoinSurfaceValues & parameters, - const MbSNameMaker & operNames, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить тело соединения по двум множествам рёбер. - \en Create a joint solid from two sets of edges. \~ - \details \ru Построить незамкнутое тело соединения по двум множествам ребер. \n - \en Create an open joint solid from two sets of edges. \n \~ - \deprecated \ru Функция устарела, взамен использовать #JoinShell с набором параметров #MbJoinShellParams. - \en The function is deprecated, instead use #JoinShell with the parameter list #MbJoinShellParams. \~ - \param[in] edges1 - \ru Первая группа ребер. - \en The first group of edges. \~ - \param[in] orients1 - \ru Ориентации ребер в первой группе. - \en The edges senses in the first group. \~ - \param[in] edges2 - \ru Вторая группа ребер. - \en The second group of edges. \~ - \param[in] orients2 - \ru Ориентация ребер во второй группе. - \en The edges senses in the second group. \~ - \param[in] matr1 - \ru Матрица преобразования первой группы ребер в единую систему координат. - \en The matrix of transformation of the first group of edges to the common coordinate system. \~ - \param[in] matr2 - \ru Матрица преобразования второй группы ребер в единую систему координат. - \en The matrix of transformation of the second group of edges to the common coordinate system. \~ - \param[in] parameters - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \param[in] isPhantom - \ru Режим фантома операции. - \en The operation phantom mode. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -//--- -DEPRECATE_DECLARE_REPLACE( JoinShell with MbJoinShellParams ) -MATH_FUNC (MbResultType) JoinShell( const RPArray & edges1, - const SArray & orients1, - const RPArray & edges2, - const SArray & orients2, - const MbMatrix3D & matr1, - const MbMatrix3D & matr2, - JoinSurfaceValues & parameters, - const MbSNameMaker & operNames, - MbSolid *& result, - bool isPhantom = false ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить тело соединения по параметрам. \en Create a joint solid from parameters. \~ @@ -548,36 +346,6 @@ MATH_FUNC (MbResultType) JoinShell( const MbJoinShellParams & parameters, MbJoinShellResults & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Разделить оболочку на части по заданному набору ребер. - \en Divide a shell into parts using a given set of edges. \~ - \details \ru Разделить оболочку на части по заданному набору ребер. \n - \en Divide shell into parts using a given set of edges. \n \~ - \param[in] solid - \ru Оболочка. - \en A shell. \~ - \param[in] sameShell - \ru Режим копирования оболочки. - \en Whether to copy the shell. \~ - \param[in] edges - \ru Набор ребер. - \en Set of edges. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Результирующая оболочка. - \en The required shell. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #DivideShell с набором параметров #MbDivideShellParams. - \en The function is deprecated, instead use #DivideShell with the parameter list #MbDivideShellParams. \~ -\ingroup Shell_Modeling -*/ -//--- -DEPRECATE_DECLARE_REPLACE( DivideShell with MbDivideShellParams ) -MATH_FUNC (MbResultType) DivideShell( MbSolid & solid, - MbeCopyMode sameShell, - const RPArray & edges, - const MbSNameMaker & operNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Разделить оболочку на части по заданному набору ребер. \en Divide a shell into parts using a given set of edges. \~ @@ -686,42 +454,6 @@ MATH_FUNC (MbCurve3D *) CreateJoinedCurve( const RPArray & edges, MbResultType & res ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить тело сопряжения несвязанных граней. - \en Create a solid of two non-connected faces. \~ - \details \ru Построить незамкнутое тело, состоящее из грани скругления между двумя несвязанными гранями. \n - \en Create an open solid that consists of a fillet face between two non-connected faces. \n \~ - \param[in] solid1 - \ru Первое тело. - \en The first solid. \~ - \param[in] face1 - \ru Сопрягаемая грань первого тела. - \en The first solid face to fillet. \~ - \param[in] solid2 - \ru Второе тело. - \en The second solid. \~ - \param[in] face2 - \ru Сопрягаемая грань второго тела. - \en The second solid face to fillet. \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling - \deprecated \ru Функция устарела, взамен использовать #FacesFillet с #MbFilletData. - \en The function is deprecated, use #FacesFillet with #MbFilletData instead. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( FacesFillet with MbFilletData ) -MATH_FUNC (MbResultType) FacesFillet( const MbSolid & solid1, - const MbFace & face1, - const MbSolid & solid2, - const MbFace & face2, - const SmoothValues & params, - const MbSNameMaker & names, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить тело сопряжения несвязанных граней. \en Create a solid of two non-connected faces. \~ @@ -811,35 +543,6 @@ MATH_FUNC (MbResultType) SurfaceShell( const MbSurfaceShellParams & params, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Разрезать тело силуэтным контуром. - \en Cut a solid by a silhouette contour. \~ - \details \ru Построить оболочки, полученные в результате разрезания тела его силуэтным контуром. \n - \en Create solids as a result of cutting a solids by its silhouette contour. \n \~ - \param[in] solid - \ru Исходное тело. - \en The solid. \~ - \param[in] sameShell - \ru Способ передачи данных при копировании оболочек. - \en Methods of transferring data while copying shells. \~ - \param[in] eye - \ru Направление взгляда. - \en Eye's direction. \~ - \param[in] operNames - \ru Именователь с версией. - \en An object defining the names with the version. \~ - \param[out] outlineCurves - \ru Кривые, входящие в силуэтный контур. - - \en Curves of the silhouette contour. \~ - \param[out] cutSolids - \ru Тела, полученные в результате применения операции. - - \en The resultant solids.\~ - \return \ru Возвращает код результата операции.\~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CutShellSilhouetteContour with MbCutShellSilhouetteParams ) -MATH_FUNC (MbResultType) CutShellSilhouetteContour( MbSolid & solid, - MbeCopyMode sameShell, - const MbVector3D & eye, - const MbSNameMaker & operNames, - c3d::SpaceCurvesSPtrVector & outlineCurves, - RPArray & cutSolids ); - //------------------------------------------------------------------------------ /** \brief \ru Разрезать тело силуэтным контуром. @@ -897,29 +600,6 @@ MATH_FUNC (MbResultType) LatheCurves( const MbLatheCurvesParams & params, MbLatheCurvesResult & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Определение оси токарного сечения и построение кривых сечения для тела. - \en Search for lathe axis and construction of lathe elements for the solid. \~ - \details \ru Функция выполняет поиск токарной оси граней вращения и строит токарное сечение в некоторой плоскости. \n - \en The function searches for lathe axis of rotation faces and builds the curves of lathe-section in a plane. \n \~ - \param[in] solid - \ru Тело. \en Solid. \~ - \param[in] axis - \ru Ось токарного сечения может быть нуль). \en Lathe axis, may be null. \~ - \param[in] angle - \ru Угол, управляющий построением перпендикулярных оси сечения отрезками, рекомендуется M_PI_4-M_PI. \en The angle, managing the construction of segments which perpendicular to the axis, recomended M_PI_4-M_PI. \~ - \param[out] position - \ru Плоскость, в плоскости XY которой лежат кривые сечения, а ось X является осью токарного сечения. \en Plane position of section, axis X is a axis of section. \~ - \param[out] curves - \ru Кривые токарного сечения располагаются в плоскости XY position. \en The curves of section located on plane XY of position. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LatheCurves ) -MATH_FUNC (MbResultType) LatheCurves( const MbSolid & solid, - const MbAxis3D * axis, - double angle, - MbPlacement3D & position, - RPArray & curves ); - - //------------------------------------------------------------------------------ /** \brief \ru Построение следа кривой при её вращении вокруг оси токарного сечения. \en Building of curves for lathe section for given curve. \~ @@ -990,52 +670,6 @@ MATH_FUNC (MbResultType) RectifyFace( const MbFace & face, MbSolid *& result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать решетчатую оболочку. - \en Create a lattice shell. \~ - \details \ru Создать решетчатую оболочку по трем управляющим точкам, параметрам решетки и количеству элементов. \n - \en Create a lattice shell on the three control points of the lattice parameters and the number of elements. \~ - \deprecated \ru Функция устарела, взамен использовать #OctaLattice с набором параметров #MbOctaLatticeParams. - \en The function is deprecated, instead use #OctaLattice with the parameter list #MbOctaLatticeParams. \~ - \param[in] point0 - \ru Точка, определяющая начало локальной системы координат поверхности. - \en The origin of the surface local coordinate system. \~ - \param[in] point1 - \ru Точка, определяющая направление оси X локальной системы и размер элемента. - \en A point specifying the direction of X-axis of the local system and the size of element. \~ - \param[in] point2 - \ru Точка, определяющая направление оси Y локальной системы. - \en A point specifying the direction of Y-axis of the local system. \~ - \param[in] xRadius - \ru Шаг вдоль первой оси локальной системы координат. - \en The step along the first axis of the local coordinate system. \~ - \param[in] yRadius - \ru Шаг вдоль второй оси локальной системы координат. - \en The step along the second axis of the local coordinate system. \~ - \param[in] zRadius - \ru Шаг вдоль третьей оси локальной системы координат. - \en The step along the third axis of the local coordinate system. \~ - \param[in] xCount - \ru Количество ячеек вдоль первой оси локальной системы координат. - \en The number of cells along a first axis of the local coordinate system. \~ - \param[in] yCount - \ru Количество ячеек вдоль второй оси локальной системы координат. - \en The number of cells along a second axis of the local coordinate system. \~ - \param[in] zCount - \ru Количество ячеек вдоль третьей оси локальной системы координат. - \en The number of cells along a third axis of the local coordinate system. \~ - \param[out] result - \ru Построенное тело. - \en The constructed solid. \~ - \result \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( OctaLattice with MbOctaLatticeParams ) -MATH_FUNC (MbResultType) OctaLattice( const MbCartPoint3D & point0, - const MbCartPoint3D & point1, - const MbCartPoint3D & point2, - double xRadius, - double yRadius, - double zRadius, - size_t xCount, - size_t yCount, - size_t zCount, - const MbSNameMaker & names, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать решетчатую оболочку. \en Create a lattice shell. \~ @@ -1054,35 +688,6 @@ MATH_FUNC (MbResultType) OctaLattice( const MbOctaLatticeParams & params, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку на поверхности переменного сечения. - \en Create a shell on swept mutable section surface. \~ - \details \ru Построить грань тела путём движения образующей кривой по направляющей кривой - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a face of shell by moving the generating curve along the spine curve - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Оболочка, к которой дополняется построение. - \en The shell the construction is complemented with respect to. \~ - \param[in] sameShell - \ru Способ копирования граней оболочки. - \en The method of copying faces of shell. \~ - \param[in] data - \ru Данные о поверхности переменного сечения. - \en Data about swept mutable section surface. \~ - \param[out] result - \ru Построенная оболочка. - \en The constructed shell. \~ - \result \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SectionShell with 'MbSectionResults' argument ) -MATH_FUNC( MbResultType ) SectionShell( const c3d::SolidSPtr & solid, - MbeCopyMode sameShell, - const MbSectionData & data, - c3d::SolidSPtr & result ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку на поверхности переменного сечения. \en Create a shell on swept mutable section surface. \~ @@ -1110,37 +715,6 @@ MATH_FUNC( MbResultType ) SectionShell( const c3d::SolidSPtr & solid, const MbSectionData & data, MbSectionResults & opResult ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку на поверхности переменного сечения. - \en Create a shell on swept mutable section surface. \~ - \details \ru Построить грань тела путём движения образующей кривой по направляющей кривой - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a face of shell by moving the generating curve along the spine curve - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Оболочка, к которой дополняется построение. - \en The shell the construction is complemented with respect to. \~ - \param[in] sameShell - \ru Способ копирования граней оболочки. - \en The method of copying faces of shell. \~ - \param[in] data - \ru Данные о поверхности переменного сечения. - \en Data about swept mutable section surface. \~ - \param[in] operNames - \ru Именователь новой грани оболочки. - \en Generating face names. \~ - \param[out] result - \ru Построенная оболочка. - \en The constructed shell. \~ - \result \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Shell_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( SectionShell with 'MbSectionResults' argument ) -MATH_FUNC( MbResultType ) SectionShell( MbSolid * solid, - MbeCopyMode sameShell, - const MbSectionData & data, - const MbSNameMaker & operNames, - MbSolid *& result ); - //------------------------------------------------------------------------------ /** \brief \ru Построить балочную модель с постоянным поперечным сечением на основе оболочки. diff --git a/C3d/Include/action_solid.h b/C3d/Include/action_solid.h index 627d9fb..8032d12 100644 --- a/C3d/Include/action_solid.h +++ b/C3d/Include/action_solid.h @@ -57,59 +57,6 @@ class MATH_CLASS MbCollection; class MATH_CLASS IProgressIndicator; -//------------------------------------------------------------------------------ -/** \brief \ru Создать элементарное тело. - \en Create an elementary solid. \~ - \details \ru Создать одно из элементарных тел по заданным параметрам.\n - 1. Создать одно из элементарных тел по заданным точкам и типу: \n - solidType = et_Sphere - шар (3 точки), \n - solidType = et_Torus - тор (3 точки), \n - solidType = et_Cylinder - цилиндр (3 точки), \n - solidType = et_Cone - конус (3 точки, если конус не усеченный), - (4 точки, если конус усеченный), \n - solidType = et_Block - блок (4 точки), \n - solidType = et_Wedge - клин (4 точки), \n - solidType = et_Prism - призма (количество вершин основания+1 точка), \n - solidType = et_Pyramid - пирамида (количество вершин основания+1 точка), \n - solidType = et_Plate - плита (4 точки), - solidType = et_Icosahedron - икосаэдр (3 точки), \n - solidType = et_Polyhedron - многогранник (3 точки), \n - solidType = et_Tetrapipe - тетра-труба (3 точки), \n - solidType = et_Octapipe - окта-труба (3 точки). \n - 2. Создать тело по элементарной поверхности. \n - Допускается только тип поверхности - цилиндр, конус, сфера, тор. \n - \en Create one of the elementary solids according to the specified parameters.\n - 1. Create one of elementary solids from the specified points and type: \n - solidType = et_Sphere - a sphere (3 points), \n - solidType = et_Torus - a torus (3 points), \n - solidType = et_Cylinder - a cylinder (3 points), \n - solidType = et_Cone - a cone (3 points), in the case of non-frustum cone, - (4 points), in the case of frustum cone, \n - solidType = et_Block - a block (4 points), \n - solidType = et_Wedge - a wedge (4 points), \n - solidType = et_Prism - a prism (points count is equal to the base vertices count + 1), \n - solidType = et_Pyramid - a pyramid (points count is equal to the base vertices count + 1), \n - solidType = et_Plate - a plate (4 points), \n - solidType = et_Icosahedron - an icosahedron (3 points), \n - solidType = et_Polyhedron - a polyhedron (3 points), \n - solidType = et_Tetrapipe - a tetra-pipe (3 points), \n - solidType = et_Octapipe - an octa-pipe (3 points). \n \~ - 2. Create a solid from an elementary surface. \n - The only acceptable surface types are cylinder, cone, sphere, torus. \~ - \param[in] params - \ru Параметры операции. - \en Parameters of operation. ~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( ElementarySolid with 'MbElementarySolidResults' argument ) -MATH_FUNC (MbResultType) ElementarySolid( const MbElementarySolidParams & params, - c3d::SolidSPtr & result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать элементарное тело. \en Create an elementary solid. \~ @@ -545,74 +492,6 @@ MATH_FUNC (MbResultType) RevolutionSolid( const MbSweptData & sweptDat MbSolid *& result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать кинематическое тело. - \en Create a sweeping solid. \~ - \details \ru Создать кинематическое тело путем движения образующей кривой вдоль направляющей кривой. \n - \en Create a sweeping solid by moving the generating curve along the guide curve. \n \~ - \param[in] sweptData - \ru Данные об образующей. - \en The generating curve data. \~ - \param[in] spine - \ru Направляющая кривая. - \en The spine curve. \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contoursNames - \ru Именователь контуров образующей. - \en An object defining the names of generating curve contours. \~ - \param[in] spineNames - \ru Именователь направляющей. - \en An object defining the name of a guide curve. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( EvolutionShell with 'MbEvolutionShellParams' argument ) -MATH_FUNC (MbResultType) EvolutionSolid( const MbSweptData & sweptData, - const MbCurve3D & spine, - const EvolutionValues & params, - const MbSNameMaker & operNames, - const RPArray & contoursNames, - const MbSNameMaker & spineNames, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать кинематическое тело. - \en Create a sweeping solid. \~ - \details \ru Создать кинематическое тело путем движения образующей кривой вдоль направляющей кривой c дополнительной информацией. \n - \en Create a sweeping solid by moving the generating curve along the guide curve with additional data. \n \~ - \param[in] sweptData - \ru Данные об образующей. - \en The generating curve data. \~ - \param[in] spine - \ru Направляющая кривая c дополнительной информацией. - \en The spine curve with additional data. \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contoursNames - \ru Именователь контуров образующей. - \en An object defining the names of generating curve contours. \~ - \param[in] spineNames - \ru Именователь направляющей. - \en An object defining the name of a guide curve. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( EvolutionShell with 'MbEvolutionShellParams' argument ) -MATH_FUNC (MbResultType) EvolutionSolid( const MbSweptData & sweptData, - const MbSpine & spine, - const EvolutionValues & params, - const MbSNameMaker & operNames, - const RPArray & contoursNames, - const MbSNameMaker & spineNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать кинематическое тело. \en Create a sweeping solid. \~ @@ -649,129 +528,6 @@ MATH_FUNC( MbResultType ) LoftedSolid( const MbLoftedSolidParams & loftSolParams c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по плоским сечениям. - \en Create a solid from a planar sections. \~ - \details \ru Создать тело по плоским сечениям c направляющей линией. \n - \en Create a solid from a planar sections with a guide curve. \n \~ - \param[in] places - \ru Множество систем координат образующих контуров. - \en An array of generating contours coordinate systems. \~ - \param[in] planeConours - \ru Множество образующих контуров. - \en An array of generating contours. \~ - \param[in] spine - \ru Направляющая кривая (может быть nullptr). - \en A guide curve (can be nullptr). \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] guidePoints - \ru Множество точек на образующих контурах, задающий их начальные точки. - \en A point array on the generating contours which determines the start points of the contours. \~ - \param[in] operName - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contourNames - \ru Именователи образующих контуров. - \en The objects defining the names of generating contours. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #LoftedSolid с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #LoftedSolid with the parameter list #MbLoftedSolidParams. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LoftedSolid with 'MbLoftedSolidParams' argument ) -MATH_FUNC( MbResultType ) LoftedSolid( SArray & places, - RPArray & planeConours, - const MbCurve3D * spine, - const LoftedValues & params, - SArray * guidePoints, - const MbSNameMaker & operName, - RPArray & contourNames, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по пространственным сечениям. - \en Create a solid from a space sections. \~ - \details \ru Создать тело по пространственным сечениям c направляющей линией. \n - \en Create a solid from a space sections with a guide curve. \n \~ - \param[in] places - \ru Множество систем координат образующих контуров. - \en An array of generating contours coordinate systems. \~ - \param[in] planeConours - \ru Множество образующих контуров. - \en An array of generating contours. \~ - \param[in] spine - \ru Осевая кривая (может быть nullptr). - \en A guide curve (can be nullptr). \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров. - \en An array of the guide curves that determines the trajectories of the corresponding points of the contours. \~ - \param[in] guidePoints - \ru Множество точек на образующих контурах, задающее соответствующие точки (цепочки точек). - \en A point array on the generating contours which determines the corresponding points of the contours (chains of points). \~ - \param[in] operName - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contourNames - \ru Именователи образующих контуров. - \en The objects defining the names of generating contours. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #LoftedSolid с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #LoftedSolid with the parameter list #MbLoftedSolidParams. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LoftedSolid with 'MbLoftedSolidParams' argument ) -MATH_FUNC( MbResultType ) LoftedSolid( SArray & places, - RPArray & planeConours, - const MbCurve3D * spine, // осевая линия может быть nullptr - const LoftedValues & params, - RPArray * guideCurves, - SArray * guidePoints, - const MbSNameMaker & operName, - RPArray & contourNames, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по пространственным сечениям. - \en Create a solid from a space sections. \~ - \details \ru Создать тело по пространственным сечениям c направляющей линией. \n - \en Create a solid from a space sections with a guide curve. \n \~ - \param[in] surfaces - \ru Множество поверхностей образующих контуров. - \en An array of surfaces of generating contours. \~ - \param[in] planeConours - \ru Множество образующих контуров. - \en An array of generating contours. \~ - \param[in] spine - \ru Осевая кривая (может быть nullptr). - \en A guide curve (can be nullptr). \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров. - \en An array of the guide curves that determines the trajectories of the corresponding points of the contours. \~ - \param[in] guidePoints - \ru Множество точек на образующих контурах, задающее соответствующие точки (цепочки точек). - \en A point array on the generating contours which determines the corresponding points of the contours (chains of points). \~ - \param[in] operName - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contourNames - \ru Именователи образующих контуров. - \en The objects defining the names of generating contours. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #LoftedSolid с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #LoftedSolid with the parameter list #MbLoftedSolidParams. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LoftedSolid with 'MbLoftedSolidParams' argument ) -MATH_FUNC( MbResultType ) LoftedSolid( RPArray & surfaces, - RPArray & planeConours, - const MbCurve3D * spine, // осевая линия может быть nullptr - const LoftedValues & params, - RPArray * guideCurves, - SArray * guidePoints, - const MbSNameMaker & operName, - RPArray & contourNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать тело выдавливания и выполнить булеву операцию. \en Create an extrusion solid and perform a boolean operation. \~ @@ -930,57 +686,6 @@ MATH_FUNC (MbCurve3D *) TrimClosedSpine( const MbCurve3D & curve, double t ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать кинематическое тело и выполнить булеву операцию. - \en Create an evolution solid and perform a boolean operation. \~ - \details \ru Создать кинематическое тело и выполнить булеву операцию типа oType с телом solid. - Принимаемые значения OperationType для тел: \n - bo_Union - объединение, \n - bo_Intersect - пересечение, \n - bo_Difference - вычитание. - \en Create an evolution solid and perform a boolean operation of type oType with solid 'solid'. - The possible values of 'OperationType' for solids: \n - bo_Union - union, \n - bo_Intersect - intersection, \n - bo_Difference - subtraction. \~ - \param[in] solid - \ru Первое тело для булевой операции. - \en The first solid for a boolean operation. \~ - \param[in] sameShell - \ru Режим копирования тела. - \en Whether to copy the solid. \~ - \param[in] sweptData - \ru Данные об образующей. - \en The generating curve data. \~ - \param[in] spine - \ru Направляющая кривая. - \en The spine curve. \~ - \param[in] params - \ru Параметры кинематической операции. - \en Parameters of the sweeping operation. \~ - \param[in] oType - \ru Тип булевой операции. - \en A boolean operation type. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] contoursNames - \ru Именователь контуров образующей. - \en An object defining the names of generating curve contours. \~ - \param[in] spineNames - \ru Именователь направляющей. - \en An object defining the name of a guide curve. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( EvolutionResult with 'MbEvolutionShellParams' argument ) -MATH_FUNC(MbResultType) EvolutionResult( MbSolid & solid, - MbeCopyMode sameShell, - const MbSweptData & sweptData, - const MbCurve3D & spine, - const EvolutionValues & params, - OperationType oType, - const MbSNameMaker & operNames, - const RPArray & contoursNames, - const MbSNameMaker & spineNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать кинематическое тело и выполнить булеву операцию. \en Create an evolution solid and perform a boolean operation. \~ @@ -1048,121 +753,6 @@ MATH_FUNC( MbResultType ) LoftedResult( const c3d::SolidSPtr & srcSolid, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по плоским сечениям и выполнить булеву операцию. - \en Create a solid from the planar sections and perform a boolean operation. \~ - \details \ru Создать тело по плоским сечениям и выполнить булеву операцию типа oType с телом solid. - Принимаемые значения OperationType для тел: \n - bo_Union - объединение, \n - bo_Intersect - пересечение, \n - bo_Difference - вычитание. - \en Create a solid from a planar sections and perform a boolean operation of type oType with solid 'solid'. - The possible values of 'OperationType' for solids: \n - bo_Union - union, \n - bo_Intersect - intersection, \n - bo_Difference - subtraction. \~ - \param[in] srcSolid - \ru Первое тело для булевой операции. - \en The first solid for a boolean operation. \~ - \param[in] copyMode - \ru Режим копирования тела. - \en Whether to copy the solid. \~ - \param[in] places - \ru Множество систем координат образующих контуров. - \en An array of generating contours coordinate systems. \~ - \param[in] planeConours - \ru Множество образующих контуров. - \en An array of generating contours. \~ - \param[in] spine - \ru Направляющая кривая (может быть nullptr). - \en A guide curve (can be nullptr). \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] oType - \ru Тип булевой операции. - \en A boolean operation type. \~ - \param[in] guidePoints - \ru Множество точек на образующих контурах, задающий их начальные точки. - \en A point array on the generating contours which determines the start points of the contours. \~ - \param[in] operName - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contourNames - \ru Именователи образующих контуров. - \en The objects defining the names of generating contours. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #LoftedResult с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #LoftedResult with the parameter list #MbLoftedSolidParams. \~ -\ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LoftedResult with 'MbLoftedSolidParams' argument ) -MATH_FUNC( MbResultType ) LoftedResult( MbSolid & srcSolid, - MbeCopyMode copyMode, - SArray & places, - RPArray & planeConours, - const MbCurve3D * spine, - const LoftedValues & params, - OperationType oType, - SArray * guidePoints, - const MbSNameMaker & operName, - RPArray & contourNames, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по пространственным сечениям и выполнить булеву операцию. - \en Create a solid from the space sections and perform a boolean operation. \~ - \details \ru Создать тело по пространственным сечениям и выполнить булеву операцию типа oType с телом solid. - Принимаемые значения OperationType для тел: \n - bo_Union - объединение, \n - bo_Intersect - пересечение, \n - bo_Difference - вычитание. - \en Create a solid from a space sections and perform a boolean operation of type oType with solid 'solid'. - The possible values of 'OperationType' for solids: \n - bo_Union - union, \n - bo_Intersect - intersection, \n - bo_Difference - subtraction. \~ - \param[in] srcSolid - \ru Первое тело для булевой операции. - \en The first solid for a boolean operation. \~ - \param[in] copyMode - \ru Режим копирования тела. - \en Whether to copy the solid. \~ - \param[in] surfaces - \ru Множество поверхностей контуров. - \en An array of generating contours surfaces. \~ - \param[in] planeConours - \ru Множество образующих контуров. - \en An array of generating contours. \~ - \param[in] spine - \ru Осевая кривая (может быть nullptr). - \en A guide curve (can be nullptr). \~ - \param[in] params - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] oType - \ru Тип булевой операции. - \en A boolean operation type. \~ - \param[in] guideCurves - \ru Массив направляющих кривых. - \en An array of the guide curves. \~ - \param[in] guidePoints - \ru Множество точек на образующих контурах, задающий их начальные точки. - \en A point array on the generating contours which determines the start points of the contours. \~ - \param[in] operName - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] contourNames - \ru Именователи образующих контуров. - \en The objects defining the names of generating contours. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \deprecated \ru Функция устарела, взамен использовать #LoftedResult с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #LoftedResult with the parameter list #MbLoftedSolidParams. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( LoftedResult with 'MbLoftedSolidParams' argument ) -MATH_FUNC( MbResultType ) LoftedResult( MbSolid & srcSolid, - MbeCopyMode copyMode, - RPArray & surfaces, - RPArray & planeConours, - const MbCurve3D * spine, - const LoftedValues & params, - OperationType oType, - RPArray * guideCurves, - SArray * guidePoints, - const MbSNameMaker & operName, - RPArray & contourNames, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Выполнить булеву операцию. \en Perform a Boolean operation. \~ @@ -1248,48 +838,6 @@ MATH_FUNC (MbResultType) SymmetrySolid( MbSolid & solid, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело с ребром жёсткости. - \en Create a solid with a rib. \~ - \details \ru Создать тело с ребром жёсткости. \n - По заданному контуру функция строит ребро жёсткости и объединяет его с исходным телом. - Сегмент контура с указанным номером устанавливает вектор уклона. \n - \en Create a solid with a rib. \n - The function creates a rib from a given contour and unites it with the source solid. - The segment of the contour with the given number determines the slope vector. \n \~ - \deprecated \ru Функция устарела, взамен использовать #RibSolid с набором параметров #MbRibSolidParameters. - \en The function is deprecated, instead use #RibSolid with the parameter list #MbRibSolidParameters. \~ - \param[in] solid - \ru Исходное тело. - \en The source solid. \~ - \param[in] sameShell - \ru Режим копирования входного тела. - \en Whether to copy the input solid. \~ - \param[in] place - \ru Система координат образующего контура. - \en The generating contour coordinate system. \~ - \param[in] contour - \ru Формообразующий контур на плоскости XY системы координат place. - \en The generating contour on XY-plane of coordinate system 'place'. \~ - \param[in] index - \ru Номер сегмента в контуре. - \en The segment number in the contour. \~ - \param[in] pars - \ru Параметры ребра жёсткости. - \en Parameters of a rib. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ // --- -DEPRECATE_DECLARE_REPLACE( RibSolid with MbRibSolidParameters ) -MATH_FUNC (MbResultType) RibSolid( MbSolid & solid, - MbeCopyMode sameShell, - const MbPlacement3D & place, - const MbContour & contour, - size_t index, - const RibValues & pars, - const MbSNameMaker & names, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать тело с ребром жёсткости. \en Create a solid with a rib. \~ @@ -1317,41 +865,6 @@ MATH_FUNC (MbResultType) RibSolid( MbSolid & solid, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать отдельное ребро жёсткости. - \en Create a separate rib. \~ - \details \ru Создать отдельное ребро жёсткости для исходного тела без приклеивания. \n - \en Create a separate rib for source solid without gluing. \n \~ - \deprecated \ru Функция устарела, взамен использовать #RibElement с набором параметров #MbRibSolidParameters. - \en The function is deprecated, instead use #RibElement with the parameter list #MbRibSolidParameters. \~ - \param[in] solid - \ru Исходное тело. - \en The source solid. \~ - \param[in] place - \ru Система координат образующего контура. - \en The generating contour coordinate system. \~ - \param[in] contour - \ru Образующий контур. - \en The generating contour. \~ - \param[in] index - \ru Номер сегмента в контуре. - \en The segment number in the contour. \~ - \param[in] pars - \ru Параметры ребра жёсткости. - \en Parameters of a rib. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ // --- -DEPRECATE_DECLARE_REPLACE( RibElement with MbRibSolidParameters ) -MATH_FUNC (MbResultType) RibElement( const MbSolid & solid, - const MbPlacement3D & place, - MbContour & contour, - size_t index, - const RibValues & pars, - const MbSNameMaker & names, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать отдельное ребро жёсткости. \en Create a separate rib. \~ @@ -1665,71 +1178,6 @@ MATH_FUNC (MbResultType) SplitSolid( MbSolid & solid, MbSolid *& result ); -//------------------------------------------------------------------------------ -/** \brief \ru Уклонить указанные грани тела. - \en Slope the specified faces of the solid. \~ - \details \ru Уклонить указанные грани тела от нейтральной изоплоскости на заданный угол. \n - \en Slope the specified faces of the solid at the specified angle relative to the neutral isoplane. \n \~ - \param[in] solid - \ru Исходное тело. - \en The source solid. \~ - \param[in] sameShell - \ru Режим копирования входного тела. - \en Whether to copy the input solid. \~ - \param[in] neutralPlace - \ru Нейтральная плоскость. - \en The neutral plane. \~ - \param[in] angle - \ru Угол уклона. - \en The slope angle. \~ - \param[in] faces - \ru Уклоняемые грани во входном теле. - \en The faces of input solid to be sloped. \~ - \param[in] fp - \ru Признак захвата граней, гладко стыкующихся с уклоняемыми гранями. - \en Whether to capture the faces smoothly connected with the faces being sloped. \~ - \param[in] reverse - \ru Флаг обратного направления уклона. - \en Whether to slope in the reverse direction. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( DraftSolid with 'MbDraftSolidParams' argument ) -MATH_FUNC (MbResultType) DraftSolid( MbSolid & solid, - MbeCopyMode sameShell, - const MbPlacement3D & neutralPlace, - double angle, - const RPArray & faces, - MbeFacePropagation fp, - bool reverse, - const MbSNameMaker & names, - MbSolid *& result ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Уклонить указанные грани тела. - \en Slope the specified faces of the solid. \~ - \details \ru Уклонить указанные грани тела от нейтральной изоплоскости или нейтральных ребер на заданный угол. \n - \en Slope the specified faces of the solid at the specified angle relative to the neutral isoplane or neutral edges. \n \~ - \param[in] solid - \ru Исходное тело. - \en The source solid. \~ - \param[in] sameShell - \ru Режим копирования входного тела. - \en Whether to copy the input solid. \~ - \param[in] draftParams - \ru Параметры уклона. - \en Draft parameters. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( DraftSolid with 'MbDraftSolidResult' argument ) -MATH_FUNC (MbResultType) DraftSolid( MbSolid & solid, - MbeCopyMode sameShell, - const MbDraftSolidParams & draftParams, - c3d::SolidSPtr & result ); - - //------------------------------------------------------------------------------ /** \brief \ru Уклонить указанные грани тела. \en Slope the specified faces of the solid. \~ @@ -2236,41 +1684,6 @@ MATH_FUNC (MbResultType) HoleSolid( const c3d::SolidSPtr & solid, c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Выделить в отдельное тело указанную часть распадающегося на части тела. - \en Extract the specified part of decomposing solid to a separate solid. \~ - \details \ru Создать тело, из указанной части тела, распадающегося на части. - Исходное тело должно состоять из отдельных частей. \n - \en Create a solid from the specified part of decomposing solid. - The source solid should consist of separate parts. \n \~ - \deprecated \ru Функция устарела, взамен использовать #ShellPart с набором параметров #MbShellPartParams. - \en The function is deprecated, instead use #ShellPart with the parameter list #MbShellPartParams. \~ - \param[in] solid - \ru Разделяемое на части тело. - \en A decomposing solid. \~ - \param[in] id - \ru Номер выбранной части тела - \en The number of selected part of the solid. \~ - \param[in] path - \ru Идентификатор для выбранной части. - \en An identifier for the selected part. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in,out] partIndices - \ru Индексы частей тела. - \en Indices of the parts of the solid. \~ - \param[out] result - \ru Построенная оболочка (тело). - \en The resultant shell (solid). \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( ShellPart with MbShellPartParams ) -MATH_FUNC (MbResultType) ShellPart( const MbSolid & solid, - size_t id, - const MbPath & path, - const MbSNameMaker & names, - MbPartSolidIndices & partIndices, - MbSolid *& result ); - - //------------------------------------------------------------------------------ /** \brief \ru Выделить в отдельное тело указанную часть тела. \en Extract the specified part of a decomposing solid. \~ @@ -2315,37 +1728,6 @@ MATH_FUNC (MbResultType) DuplicationSolid( const MbSolid & soli c3d::SolidSPtr & result ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать одно тело слиток из присланных объектов. - \en Create an ingot solid from the specified objects. \~ - \details \ru Создать одно тело слиток из присланных объектов. \n - Среди присланных объектов используются тела, вставки тел и сборки тел, из которых строится одно тело, - которое по внешности совпадает с присланными телами и служит их упрощенным заменителем по внешним параметрам. \n - \en Create an ingot solid from the specified solids without the modification of the given solids. \n - Among the objects sent using the body, insert bodies and assembling bodies of which is built the same body, - which in appearance coincides with the bodies had been sent and serves as a substitute for their simplistic external parameters. \n \~ - \deprecated \ru Метод устарел. Взамен использовать #IngotSolid с набором параметров #MbIngotSolidParams. - \en The method is deprecated. Use instead #IngotSolid with the parameters #MbIngotSolidParams.\~ - \param[in] solids - \ru Множество тел. - \en An array of solids. \~ - \param[in] names - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] makeCopy - \ru Флаг копирования тел перед использованием: true - копировать, false - не копировать. - \en The flag of the copying solid before using: true - copy solid, false - not copy. \~ - \param[out] result - \ru Построенное тело. - \en The resultant solid. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE(IngotSolid with MbIngotSolidParams) -MATH_FUNC (MbResultType) IngotSolid( RPArray & solids, - bool makeCopy, - const MbSNameMaker & names, - MbSolid *& ingotResult ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать тело-слиток из присланных объектов. \en Create an ingot solid from the specified objects. \~ diff --git a/C3d/Include/action_surface_curve.h b/C3d/Include/action_surface_curve.h index 1266a09..b482414 100644 --- a/C3d/Include/action_surface_curve.h +++ b/C3d/Include/action_surface_curve.h @@ -1208,86 +1208,6 @@ MATH_FUNC (MbResultType) CreateContourFillets( const MbContour3D & contour, const MbeConnectingType type ); -//------------------------------------------------------------------------------- -/** \brief \ru Построить кривые, оборачивающие поверхность. - \en Construct curves that wrap the surface. \~ - \details \ru Построить кривые, оборачивающие поверхность. \n - \en Construction of curves that wrap the surface. \n \~ - \param[in] parameters - \ru Параметры #MbCurvesWrappingParams для переноса копий двумерных кривых на другой носитель. - \en Parameters #MbCurvesWrappingParams for transferring copies of two-dimensional curves on another medium. \~ - \param[out] surfaceCurves - \ru Построенные 2д-кривые. - \en Constructed 2d-curves. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( WrapCurve with MbCurvesWrappingResults ) -MATH_FUNC (MbResultType) CurvesWrapping( const MbCurvesWrappingParams & parameters, - c3d::PlaneCurvesSPtrVector & surfaceCurves ); - - -//------------------------------------------------------------------------------- -/** \brief \ru Построить кривые, оборачивающие поверхность. - \en Construct curves that wrap the surface. \~ - \details \ru Построить кривые, оборачивающие поверхность. \n - \en Construction of curves that wrap the surface. \n \~ - \param[in] parameters - \ru Параметры #MbCurvesWrappingParams для переноса копий двумерных кривых на другой носитель. - \en Parameters #MbCurvesWrappingParams for transferring copies of two-dimensional curves on another medium. \~ - \param[out] resultCurves - \ru Построенные 3д-кривые на присланной поверхности. - \en Constructed 3d-curves based on the input surface. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( WrapCurve with MbCurvesWrappingResults ) -MATH_FUNC (MbResultType) CurvesWrapping( const MbCurvesWrappingParams & parameters, - c3d::SpaceCurvesSPtrVector & resultCurves ); - - -//------------------------------------------------------------------------------- -/** \brief \ru Построить развертку кривой/контура на плоскость. - \en Construct a unwrapping curve/contour. \~ - \details \ru Построение развертки кривой/контура на плоскость. \n - \en Construction unwrapping of the curve/contour on a plane. \n \~ - \param[in] params - \ru Параметры разворачивания #MbCurvesWrappingParams. - \en Unwrapping parameters #MbCurvesWrappingParams. \~ - \param[in] resultCurves - \ru Развёрнутые 2д-кривые. - \en Unwrapped 2d-curves. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( UnwrapCurve with MbCurvesWrappingResults ) -MATH_FUNC (MbResultType) CurvesUnwrapping( const MbCurvesWrappingParams & params, - c3d::PlaneCurvesSPtrVector & surfaceCurves ); - - -//------------------------------------------------------------------------------- -/** \brief \ru Построить развертку кривой/контура на плоскость. - \en Construct a unwrapping curve/contour. \~ - \details \ru Построение развертки кривой/контура на плоскость. \n - \en Construction unwrapping of the curve/contour on a plane. \n \~ - \param[in] params - \ru Параметры разворачивания #MbCurvesWrappingParams. - \en Unwrapping parameters #MbCurvesWrappingParams. \~ - \param[in] resultCurves - \ru Развёрнутые 3д-кривые на присланной плоскости. - \en Unwrapped 3d-curves on the input plane. \~ - \return \ru Возвращает код результата операции. - \en Returns operation result code. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( UnwrapCurve with MbCurvesWrappingResults ) -MATH_FUNC (MbResultType) CurvesUnwrapping( const MbCurvesWrappingParams & parameters, - c3d::SpaceCurvesSPtrVector & resultCurves ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать кривую или контур на поверхности грани по заданным рёбрам. \en Construct a curve or contour on the surface of a face along the specified edges. \~ diff --git a/C3d/Include/attribute_container.h b/C3d/Include/attribute_container.h index 75538f4..72ab42c 100644 --- a/C3d/Include/attribute_container.h +++ b/C3d/Include/attribute_container.h @@ -122,7 +122,7 @@ public: \param[in] forcedAssign - \ru Если флаг равен false, то обобщенный атрибут не будет добавлен, если в настройках его поведения есть запрет на размножение. \en If the flag is false, then the generic attribute will not be added if its behavior settings prohibit replication. \~ */ - void AttributesAssign( const MbAttributeContainer & src, bool forcedAssign = true ); + void AttributesAssign( const MbAttributeContainer & src, bool forcedAssign = false ); /// \ru Выдать количество объектов. \en Get the number of objects. size_t AttributesCount() const { return attributes.Count(); } /// \ru Удалить все атрибуты из контейнера. \en Delete all attributes from container. @@ -145,7 +145,7 @@ public: \return \ru Возвращает указатель на добавленный атрибут или нулевой указатель. \en Returns a pointer to the added attribute or null pointer. \~ */ - MbAttribute * AddAttribute( MbAttribute * attr, bool checkSame = true, bool forcedAssign = true ); + MbAttribute * AddAttribute( MbAttribute * attr, bool checkSame = true, bool forcedAssign = false ); /** \brief \ru Добавить атрибут в контейнер (добавляет копию атрибута, если его можно добавить). \en Add attribute in container (adds a copy of the attribute if it can be added). \~ @@ -162,7 +162,7 @@ public: \return \ru Возвращает указатель на добавленный атрибут или нулевой указатель. \en Returns a pointer to the added attribute or null pointer. \~ */ - MbAttribute * AddAttribute( const MbAttribute & attr, bool checkSame = true, bool forcedAssign = true ); + MbAttribute * AddAttribute( const MbAttribute & attr, bool checkSame = true, bool forcedAssign = false ); /** \brief \ru Выдать атрибуты заданного типа или семейства. \en Get attributes of a given type or family. \~ diff --git a/C3d/Include/cdet_data.h b/C3d/Include/cdet_data.h index aec9679..e4f57f5 100644 --- a/C3d/Include/cdet_data.h +++ b/C3d/Include/cdet_data.h @@ -466,10 +466,27 @@ public: const CdCollisionFace & FaceTwo() const { return m_face2; } void SetFacePair( const MbFace &, const MbFace & ); void SetFacePair( const MbFace *, cdet_item, const MbFace *, cdet_item ); + /// \ru Сбросить результат измерения в неопределенное состояние. \en Reset the measured result to the undefined state. + CdProximityParameters & Reset(double _upperDistance = MB_MAXDOUBLE); protected: CdProximityParameters(const MbFace&, const MbFace&, const MbCartPoint& uv1, const MbCartPoint& uv2, double dist); }; +//---------------------------------------------------------------------------------------- +// \ru Сбросить результат измерения в неопределенное состояние. \en Reset the measured result to the undefined state. +//--- +inline CdProximityParameters& CdProximityParameters::Reset(double _upperDistance) +{ + m_face1.SetFace(nullptr, CDET_NULL); + m_face2.SetFace(nullptr, CDET_NULL); + fstPnt = sndPnt = MbCartPoint3D::origin; + thePar1 = thePar2 = MbCartPoint::origin; + theDistance = -1.0; + upperDist = _upperDistance; + return *this; +} + + // deprecated typenames. using MbHRepSolid = CdSceneItem; using MbCollisionFace = CdCollisionFace; diff --git a/C3d/Include/cdet_utility.h b/C3d/Include/cdet_utility.h index 5dbce48..0690daf 100644 --- a/C3d/Include/cdet_utility.h +++ b/C3d/Include/cdet_utility.h @@ -189,8 +189,6 @@ public: /* void SetCallback( CDM_exam_func ); // Use AppItem() insead this /*DEPRECATE_DECLARE*/ cdet_app_item Component(size_t solIdx) const; // It in use yet. - // The func is deprecated. Instead, use CheckCollisions - DEPRECATE_DECLARE cdet_result InterferenceDetect( void * formalPar = nullptr ) const; // The func is deprecated. Use SetDistanceTracking instead. void SetDistanceComputationObjects( const MbLumpAndFaces &, const MbLumpAndFaces & ); // The func is deprecated. Use AddSolid/AddItem instead. diff --git a/C3d/Include/cr_boolean_solid.h b/C3d/Include/cr_boolean_solid.h index af6a453..1c8b232 100644 --- a/C3d/Include/cr_boolean_solid.h +++ b/C3d/Include/cr_boolean_solid.h @@ -131,59 +131,6 @@ private : IMPL_PERSISTENT_OPS( MbBooleanSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку булевой операции. - \en Create the shell of Boolean operation. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateBoolean с набором параметров #MbBooleanOperationParams. - \en The function is deprecated, instead use #CreateBoolean with the parameter list #MbBooleanOperationParams. \~ - \details \ru Для указанных оболочек построить оболочку как результат булевой операции над оболочками тел. - Одновременно с построением оболочки функция создаёт её строитель. \n - \en Create a shell as a result of Boolean operation on the given shells of solids. - The function simultaneously constructs the shell and creates its constructor. \n \~ - \param[in] shell1 - \ru Набор граней первого тела. - \en The set of faces of the first solid. \~ - \param[in] sameShell1 - \ru Способ копирования граней первого тела. - \en Method of copying the faces of the first solid. \~ - \param[in] shell2 - \ru Набор граней второго тела. - \en The second solid face set. \~ - \param[in] sameShell2 - \ru Способ копирования граней второго тела. - \en Method of copying the faces of the second solid. \~ - \param[in] creators - \ru Набор строителей первого и второго набора граней. - \en The set of creators of the first and the second face sets. \~ - \param[in] sharedCount - \ru Количество общих строителей обоих наборов граней. - \en The number of shared creators of the both face sets. \~ - \param[in] firstCount - \ru Количество строителей первого набора граней. - \en The number of creators of the first face set. \~ - \param[in] oType - \ru Тип булевой операции. - \en A Boolean operation type. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[in] flags - \ru Управляющие флаги булевой операции. - \en Control flags of the Boolean operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель, если операция была выполнена успешно. - \en Returns the constructor if the operation has been successfully performed. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateBoolean with MbBooleanOperationParams ) -MATH_FUNC (MbCreator *) CreateBoolean( MbFaceShell * shell1, - MbeCopyMode sameShell1, - MbFaceShell * shell2, - MbeCopyMode sameShell2, - const RPArray & creators, - size_t & sharedCount, - size_t & firstCount, - OperationType oType, - const MbSNameMaker & operNames, - const MbBooleanFlags & flags, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать оболочку булевой операции. \en Create the shell of Boolean operation. \~ diff --git a/C3d/Include/cr_draft_solid.h b/C3d/Include/cr_draft_solid.h index 3544ea5..19acfa9 100644 --- a/C3d/Include/cr_draft_solid.h +++ b/C3d/Include/cr_draft_solid.h @@ -172,51 +172,6 @@ private : IMPL_PERSISTENT_OPS( MbDraftSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку с уклоном граней. - \en Create a shell with drafted faces. \~ - \details \ru Для исходной оболочки построить оболочку с уклоном граней от нейтральной изоплоскости для создания литейных уклонов. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en For the source shell create a shell with faces drafted from the neutral isoplane for pattern tapers creation. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] np - \ru Локальная система координат, плоскость XY которой является нейтральной плоскостью ( neutral plane ). - \en The local coordinate system XY plane of which is a neutral plane. \~ - \param[in] angle - \ru Угол уклона. - \en Draft angle. \~ - \param[in] faces - \ru Уклоняемые грани. - \en The faces to draft. \~ - \param[in] fp - \ru Признак захвата граней ( face propagation ). - \en Flag of face propagation. \~ - \param[in] reverse - \ru Флаг для обратного направления тяги. - \en Flag for reverse pull direction. \~ - \param[in] names - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции выдавливания. - \en The extrusion operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateDraft with 'MbDraftSolidParams' argument ) -MATH_FUNC (MbCreator *) CreateDraft( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbPlacement3D & np, - double angle, - const RPArray & faces, - MbeFacePropagation fp, - bool reverse, - const MbSNameMaker & names, - MbResultType & res, - MbFaceShell *& resShell ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку с уклоном граней. \en Create a shell with drafted faces. \~ diff --git a/C3d/Include/cr_elementary_solid.h b/C3d/Include/cr_elementary_solid.h index ae34fe7..adce326 100644 --- a/C3d/Include/cr_elementary_solid.h +++ b/C3d/Include/cr_elementary_solid.h @@ -184,28 +184,4 @@ MbElementarySolid::MbElementarySolid( const PointsVector & pnts, ElementaryShell SetParameters(); } - -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку элементарного тела. - \en Create a shell of an elementary solid. \~ - \details \ru Создать оболочку элементарного тела.\n - Одновременно с построением оболочки функция создаёт её строитель. \n - \en Create an elementary solid shell.\n - The function simultaneously constructs the shell and creates its constructor. \n \~ - \param[in] params - \ru Параметры операции. - \en Parameters of operation. ~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Оболочка - результат операции. - \en Shell - the result of operation. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Solid_Modeling -*/ -// --- -DEPRECATE_DECLARE -MATH_FUNC (MbCreator *) CreateElementary( const MbElementarySolidParams & params, - MbResultType & res, - c3d::ShellSPtr & shell ); - #endif // __CR_ELEMENTARY_SOLID_H diff --git a/C3d/Include/cr_evolution_solid.h b/C3d/Include/cr_evolution_solid.h index 847cdd1..2d94231 100644 --- a/C3d/Include/cr_evolution_solid.h +++ b/C3d/Include/cr_evolution_solid.h @@ -323,103 +323,4 @@ MATH_FUNC (c3d::CreatorSPtr) CreateCurveEvolution( c3d::ShellSPtr & c3d::ShellSPtr & resShell ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку кинематического тела. - \en Create a shell of evolution solid. \~ - \details \ru Построить оболочку путём движения образующей кривой по направляющей кривой - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a shell by moving the generating curve along the spine curve - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Набор граней, к которым дополняется построение. - \en Face set the construction is complemented with respect to. \~ - \param[in] sameShell - \ru Способ копирования граней. - \en The method of copying faces. \~ - \param[in] sweptData - \ru Данные об образующей. - \en The generating curve data. \~ - \param[in] spine - \ru Направляющая кривая. - \en The spine curve. \~ - \param[in] params - \ru Параметры кинематической операции. - \en Parameters of the sweeping operation. \~ - \param[in] oType - \ru Тип операции дополнения построения. - \en Type of operation of construction complement. \~ - \param[in] operNames - \ru Именователь операции. - \en Name-maker with version for a Boolean operation with the source solid. \~ - \param[in] contoursNames - \ru Имена образующей. - \en Names of the generating curve. \~ - \param[in] spineNames - \ru Имена пути. - \en Names of the path. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveEvolution with 'MbEvolutionShellParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveEvolution( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbSweptData & sweptData, - const MbCurve3D & spine, - const EvolutionValues & params, - OperationType oType, - const MbSNameMaker & operNames, - const RPArray & contoursNames, - const MbSNameMaker & spineNames, - MbResultType & res, - MbFaceShell *& shell ); - -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку кинематического тела. - \en Create a shell of evolution solid. \~ - \details \ru Построить оболочку путём движения образующей кривой по направляющей кривой - и выполнить булуву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a shell by moving the generating curve along the spine curve - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Набор граней, к которым дополняется построение. - \en Face set the construction is complemented with respect to. \~ - \param[in] sameShell - \ru Способ копирования граней. - \en The method of copying faces. \~ - \param[in] sweptData - \ru Данные об образующей. - \en The generating curve data. \~ - \param[in] spine - \ru Направляющая кривая c дополнительной информацией. - \en The spine curve with additional data. \~ - \param[in] params - \ru Параметры кинематической операции. - \en Parameters of the sweeping operation. \~ - \param[in] oType - \ru Тип операции дополнения построения. - \en Type of operation of construction complement. \~ - \param[in] operNames - \ru Именователь с версией для булевой с исходным телом. - \en Name-maker with version for a Boolean operation with the source solid. \~ - \param[in] contoursNames - \ru Имена образующей. - \en Names of the generating curve. \~ - \param[in] spineNames - \ru Имена пути. - \en Names of the path. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveEvolution with 'MbEvolutionShellParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveEvolution( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbSweptData & sweptData, - const MbSpine & spine, - const EvolutionValues & params, - OperationType oType, - const MbSNameMaker & operNames, - const RPArray & contoursNames, - const MbSNameMaker & spineNames, - MbResultType & res, - MbFaceShell *& shell ); - - #endif // __CR_EVOLUTION_SOLID_H diff --git a/C3d/Include/cr_extending_curve.h b/C3d/Include/cr_extending_curve.h index 764a3f6..09a28bd 100644 --- a/C3d/Include/cr_extending_curve.h +++ b/C3d/Include/cr_extending_curve.h @@ -61,7 +61,6 @@ public: /** \} */ - DEPRECATE_DECLARE_REPLACE( CreateWireFrame with 'c3d::WireFrameSPtr' argument ) bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray * ) override; // \ru Построить кривую по журналу построения. \en Create a curve from the history tree. \~ bool CreateWireFrame( c3d::WireFrameSPtr & result ); // \ru Построить кривую по журналу построения. \en Create a curve from the history tree. \~ diff --git a/C3d/Include/cr_extension_shell.h b/C3d/Include/cr_extension_shell.h index 40c3d54..3f6853e 100644 --- a/C3d/Include/cr_extension_shell.h +++ b/C3d/Include/cr_extension_shell.h @@ -76,50 +76,6 @@ public : IMPL_PERSISTENT_OPS( MbExtensionShell ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить удлинённую грань оболочки. - \en Construct the extended face of a shell. \~ - \details \ru Построить удлинённую грань оболочки. Удлинение может быть выполнено следующими способами. - Может быть удлинена на заданное расстояние указанная грань. - К указанной грани может быть добавлена гладко стыкующаяся с ней грань. - К указанной грани может быть добавлена грань, полученная выдавливанием крайнего ребра в заданном направлении. - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Construct the extended face of a shell. An extension can be performed in the following ways: - The specified faces can be extended on the given distance. - A smoothly connected face can be added to the given face. - A face obtained by extrusion of a boundary edge in the given direction can be added to the specified face. - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Исходная оболочка. - \en The initial shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the initial shell. \~ - \param[in] edges - \ru Множество краевых ребер, через которые выполняется продление. - \en An array of boundary edges through which to extend the face. \~ - \param[in] parameters - \ru Параметры построения. - \en Parameters of a shell creation. \~ - \param[in] operNames - \ru Именователь граней. - \en An object for naming faces. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateExtensionShell с набором параметров #MbExtensionShellParams. - \en The function is deprecated, instead use #ExtensionShellShell with the parameter list #MbExtensionShellParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( ExtensionShellShell with MbExtensionShellParams ) -MATH_FUNC (MbCreator *) CreateExtensionShell( MbFaceShell * solid, - MbeCopyMode sameShell, - const RPArray & edges, - const ExtensionValues & parameters, - const MbSNameMaker & operNames, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить удлинённую грань оболочки. \en Construct the extended face of a shell. \~ diff --git a/C3d/Include/cr_hole_solid.h b/C3d/Include/cr_hole_solid.h index 0118d9a..d14e333 100644 --- a/C3d/Include/cr_hole_solid.h +++ b/C3d/Include/cr_hole_solid.h @@ -104,44 +104,6 @@ private : IMPL_PERSISTENT_OPS( MbHoleSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку с отверстием, карманом, или фигурным пазом. - \en Create a shell with a hole, a pocket or a groove. \~ - \details \ru Для указанной оболочки построить оболочку с отверстием, карманом, или фигурным пазом. \n - Одновременно с построением оболочки функция создаёт её строитель. \n - \en For a given shell construct a shell with a hole, a pocket or a groove. \n - The function simultaneously constructs the shell and creates its constructor. \n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateHole с набором параметров #MbHoleSolidParams. - \en The function is deprecated, instead use #CreateHole with the parameter list #MbHoleSolidParams. \~ - \param[in] solid - \ru Набор граней, к которым дополняется построение. - \en Face set the construction is complemented with respect to. \~ - \param[in] sameShell - \ru Способ копирования граней. - \en The method of copying faces. \~ - \param[in] place - \ru Локальная система координат. - \en A local coordinate system. \~ - \param[in] par - \ru Параметры. - \en Parameters. \~ - \param[in] ns - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции выдавливания. - \en The extrusion operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateHole with MbHoleSolidParams ) -MATH_FUNC (MbCreator *) CreateHole( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbPlacement3D & place, - const HoleValues & par, - const MbSNameMaker & ns, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать оболочку с отверстием, карманом, или фигурным пазом. \en Create a shell with a hole, a pocket or a groove. \~ diff --git a/C3d/Include/cr_join_shell.h b/C3d/Include/cr_join_shell.h index 403de29..e3a9513 100644 --- a/C3d/Include/cr_join_shell.h +++ b/C3d/Include/cr_join_shell.h @@ -155,93 +155,6 @@ MbFaceShell * MakeJoinShell( const MbSurfaceCurve & curve1, MbResultType & res ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку соединения. - \en Construct a join shell. \~ - \details \ru Построить оболочку, соединяющую две грани по двум кривым на них. - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Construct a shell joining two faces by two curves on them. - The function simultaneously creates the shell and its constructor.\n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateJoinShell с набором параметров #MbJoinShellParams. - \en The function is deprecated, instead use #CreateJoinShell with the parameter list #MbJoinShellParams. \~ - \param[in] curve1 - \ru Кривая на первой соединяемой поверхности. - \en A curve on the first surface to join. \~ - \param[in] curve2 - \ru Кривая на второй соединяемой поверхности. - \en A curve on the second surface to join. \~ - \param[in] parameters - \ru Параметры построения. - \en Parameters of a shell creation. \~ - \param[in] names - \ru Именователь граней. - \en An object for naming faces. \~ - \param[out] res - \ru Код результата построения. - \en Construction result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateJoinShell with MbJoinShellParams ) -MATH_FUNC (MbCreator *) CreateJoinShell( MbSurfaceCurve & curve1, - MbSurfaceCurve & curve2, - JoinSurfaceValues & parameters, - const MbSNameMaker & names, - MbResultType & res, - MbFaceShell *& shell ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку соединения. - \en Construct a join shell. \~ - \details \ru Построить оболочку соединения по двум наборам ребер. - Рёбра двух наборов определяют набор граней соединения, каждая из которых побстроена по двум кривым. - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Construct a shell of join given two sets of edges. - Edges of two sets define a set of join faces each of which is constructed by two curves. - The function simultaneously creates the shell and its constructor.\n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateJoinShell с набором параметров #MbJoinShellParams. - \en The function is deprecated, instead use #CreateJoinShell with the parameter list #MbJoinShellParams. \~ - \param[in] edges1 - \ru Первый набор ребер. - \en The first set of edges. \~ - \param[in] orients1 - \ru Ориентация рёбер первого набора. - \en Orientation of edges from the first set. \~ - \param[in] edges2 - \ru Второй набор ребер. - \en The second set of edges. \~ - \param[in] orients2 - \ru Ориентация рёбер второго набора. - \en Orientation of edges of the second set. \~ - \param[in] matr1 - \ru Матрица преобразования рёбер первого набора. - \en Transformation matrix of edges from the first set. \~ - \param[in] matr2 - \ru Матрица преобразования рёбер второго набора. - \en Transformation matrix of edges from the second set. \~ - \param[in] parameters - \ru Параметры построения. - \en Parameters of a shell creation. \~ - \param[in] names - \ru Именователь граней. - \en An object for naming faces. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateJoinShell with MbJoinShellParams ) -MATH_FUNC (MbCreator *) CreateJoinShell( const RPArray & edges1, - const SArray & orients1, - const RPArray & edges2, - const SArray & orients2, - const MbMatrix3D & matr1, - const MbMatrix3D & matr2, - JoinSurfaceValues & parameters, - const MbSNameMaker & names, - MbResultType & res, - MbFaceShell *& shell, - bool isPhantom ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку соединения по параметрам. \en Create a joint shell from parameters. \~ diff --git a/C3d/Include/cr_lofted_solid.h b/C3d/Include/cr_lofted_solid.h index 283bae9..8cc5e9d 100644 --- a/C3d/Include/cr_lofted_solid.h +++ b/C3d/Include/cr_lofted_solid.h @@ -135,128 +135,5 @@ MATH_FUNC (c3d::CreatorSPtr) CreateCurveLofted( c3d::ShellSPtr & srcS c3d::ShellSPtr & resShell ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по плоским сечениям. - \en Create a solid from a planar sections. \~ - \details \ru Построить оболочку тела, проходящую по заданным сечениям - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a solid's shell passing through the given sections - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateCurveLofted с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #CreateCurveLofted with the parameter list #MbLoftedSolidParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveLofted with 'MbLoftedSolidParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveLofted( MbFaceShell * solid, - MbeCopyMode sameShell, - SArray & places, - RPArray & planeConours, - const LoftedValues & params, - OperationType oType, - const MbSNameMaker & operName, - RPArray & contourNames, - SArray * guidePoints, - MbResultType & res, - MbFaceShell *& resShell ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по пространственным сечениям. - \en Create a solid from sections on surfaces. \~ - \details \ru Построить оболочку тела, проходящую по заданным сечениям - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a solid's shell passing through the given sections - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateCurveLofted с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #CreateCurveLofted with the parameter list #MbLoftedSolidParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveLofted with 'MbLoftedSolidParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveLofted( MbFaceShell * solid, - MbeCopyMode sameShell, - RPArray & surfaces, - RPArray & planeConours, - const LoftedValues & params, - OperationType oType, - const MbSNameMaker & operName, - RPArray & contourNames, - RPArray * guideCurves, - SArray * guidePoints, - MbResultType & res, - MbFaceShell *& resShell ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по плоским сечениям. - \en Create a solid from a planar sections. \~ - \details \ru Построить оболочку тела, проходящую по заданным сечениям вдоль заданной направляющей - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a solid's shell passing through the given sections along the specified spine curve - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateCurveLofted с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #CreateCurveLofted with the parameter list #MbLoftedSolidParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveLofted with 'MbLoftedSolidParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveLofted( MbFaceShell * solid, - MbeCopyMode sameShell, - SArray & places, - RPArray & planeConours, - const MbCurve3D & centre_line, - const LoftedValues & params, - OperationType oType, - const MbSNameMaker & operName, - RPArray & contourNames, - SArray * guidePoints, - MbResultType & res, - MbFaceShell *& resShell ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Создать тело по пространственным сечениям. - \en Create a solid from a space sections. \~ - \details \ru Построить оболочку тела, проходящую по заданным сечениям вдоль заданной осевой линии и направляющих - и выполнить булеву операцию с оболочкой, если последняя задана. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a solid's shell passing through the given sections along the specified spine curve and guide curves - and perform the Boolean operation with the shell if it is specified. \n - The function simultaneously creates the shell and its constructor.\n \~ - \result \ru Возвращает строитель. - \en Returns the constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateCurveLofted с набором параметров #MbLoftedSolidParams. - \en The function is deprecated, instead use #CreateCurveLofted with the parameter list #MbLoftedSolidParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateCurveLofted with 'MbLoftedSolidParams' argument ) -MATH_FUNC (MbCreator *) CreateCurveLofted( MbFaceShell * solid, - MbeCopyMode sameShell, - RPArray & surfaces, - RPArray & planeConours, - const MbCurve3D & centre_line, - const LoftedValues & params, - OperationType oType, - const MbSNameMaker & operName, - RPArray & contourNames, - RPArray * guideCurves, - SArray * guidePoints, - MbResultType & res, - MbFaceShell *& resShell ); - #endif // __CR_LOFTED_SOLID_H diff --git a/C3d/Include/cr_mesh_shell.h b/C3d/Include/cr_mesh_shell.h index 11b82dd..cbc289e 100644 --- a/C3d/Include/cr_mesh_shell.h +++ b/C3d/Include/cr_mesh_shell.h @@ -73,38 +73,6 @@ public: IMPL_PERSISTENT_OPS( MbMeshShell ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку на сетке кривых. - \en Construct a shell from a mesh of curves. \~ - \details \ru Построить оболочку на сетке кривых, образованной двумя сечействами кривых. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Create a shell from a mesh of curves formed by two sets of curves. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] parameters - \ru Параметры построения. - \en Parameters of a shell creation. \~ - \param[in] operNames - \ru Именователь граней. - \en An object for naming faces. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateMeshShell с набором параметров #MbMeshShellParameters. - \en The function is deprecated, instead use #CreateMeshShell with the parameter list #MbMeshShellParameters. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateMeshShell with MbMeshShellParameters ) -MATH_FUNC (MbCreator *) CreateMeshShell( MeshSurfaceValues & parameters, - const MbSNameMaker & operNames, - bool isPhantom, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку на сетке кривых. \en Construct a shell from a mesh of curves. \~ diff --git a/C3d/Include/cr_nurbs_surfaces_solid.h b/C3d/Include/cr_nurbs_surfaces_solid.h index 83cb342..6bf0ab7 100644 --- a/C3d/Include/cr_nurbs_surfaces_solid.h +++ b/C3d/Include/cr_nurbs_surfaces_solid.h @@ -82,41 +82,6 @@ public: IMPL_PERSISTENT_OPS( MbNurbsSurfacesSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку из NURBS-поверхностей. - \en Construct a shell from NURBS-surfaces. \~ - \details \ru Построить оболочку из NURBS-поверхностей MbSplineSurface. - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Construct a shell from NURBS-surfaces MbSplineSurface. - The function simultaneously creates the shell and its constructor.\n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateNurbsShell с набором параметров #MbNurbsSurfacesShellParams. - \en The function is deprecated, instead use #CreateNurbsShell with the parameter list #MbNurbsSurfacesShellParams. \~ - \param[in, out] parameters - \ru Параметры построения. - \en Parameters of a shell creation. \~ - \param[in] operNames - \ru Именователь граней. - \en An object for naming faces. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \param[in, out] indicator - \ru Индикатор хода построения. - \en Construction process indicator. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateNurbsShell with MbNurbsSurfacesShellParams ) -MATH_FUNC (MbCreator *) CreateNurbsShell( NurbsSurfaceValues & parameters, - const MbSNameMaker & operNames, - bool isPhantom, - MbResultType & res, - MbFaceShell *& shell, - IProgressIndicator * indicator = nullptr ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку из NURBS-поверхностей. \en Construct a shell from NURBS-surfaces. \~ diff --git a/C3d/Include/cr_rib_solid.h b/C3d/Include/cr_rib_solid.h index 92f10ec..87ea2e8 100644 --- a/C3d/Include/cr_rib_solid.h +++ b/C3d/Include/cr_rib_solid.h @@ -80,50 +80,6 @@ private : IMPL_PERSISTENT_OPS( MbRibSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку с ребром жёсткости. - \en Create a shell with a rib. \~ - \details \ru Для указанной оболочки построить оболочку с ребром жёсткости, форма которого задана плоским контуром.\n - Одновременно с построением оболочки функция создаёт её строитель. \n - \en For a specified shell create a shell with a rib which shape is given by the planar contour.\n - The function simultaneously constructs the shell and creates its constructor. \n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateRib с набором параметров #MbRibSolidParameters. - \en The function is deprecated, instead use #CreateRib with the parameter list #MbRibSolidParameters. \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Способ копирования граней исходной оболочки. - \en Method of copying the source shell faces. \~ - \param[in] place - \ru Локальная система координат, в плоскости XY которай расположен двумерный контур. - \en A local coordinate system the two-dimensional contour is located in XY plane of. \~ - \param[in] contour - \ru Двумерный контур ребра жесткости расположен в плоскости XY локальной системы координат. - \en Two-dimensional contour of a rib located in XY plane of the local coordinate system. \~ - \param[in] index - \ru Индекс сегмента в контуре, от которого будет установлено направление уклона. - \en Index of a segment in the contour at which the inclination direction will be set. \~ - \param[in] parameters - \ru Правметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель, если операция была выполнена успешно. - \en Returns the constructor if the operation has been successfully performed. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateRib with MbRibSolidParameters ) -MATH_FUNC (MbCreator *) CreateRib( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbPlacement3D & place, - const MbContour & contour, - size_t index, - const RibValues & parameters, - const MbSNameMaker & operNames, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать оболочку с ребром жёсткости. \en Create a shell with a rib. \~ @@ -153,47 +109,6 @@ MATH_FUNC (MbCreator *) CreateRib( c3d::ShellSPtr & solid, c3d::ShellSPtr & shell ); -//------------------------------------------------------------------------------ -/** \brief \ru Создать отдельное ребро жёсткости. - \en Create a separate rib. \~ - \details \ru Для указанной оболочки построить оболочку в виде отдельного ребра жёсткости. - Одновременно с построением оболочки функция создаёт её строитель. \n - \en For the specified shell create a shell as a separate rib. - The function simultaneously constructs the shell and creates its constructor. \n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateRibElement с набором параметров #MbRibSolidParameters. - \en The function is deprecated, instead use #CreateRibElement with the parameter list #MbRibSolidParameters. \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] place - \ru Локальная система координат, в плоскости XY которай расположен двумерный контур. - \en A local coordinate system the two-dimensional contour is located in XY plane of. \~ - \param[in] contour - \ru Двумерный контур ребра жесткости расположен в плоскости XY локальной системы координат. - \en Two-dimensional contour of a rib located in XY plane of the local coordinate system. \~ - \param[in] index - \ru Индекс сегмента в контуре, от которого будет установлено направление уклона. - \en Index of a segment in the contour at which the inclination direction will be set. \~ - \param[in] parameters - \ru Правметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель, если операция была выполнена успешно. - \en Returns the constructor if the operation has been successfully performed. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateRibElement with MbRibSolidParameters ) -MATH_FUNC (MbCreator *) CreateRibElement( MbFaceShell * solid, - const MbPlacement3D & place, - const MbContour & contour, - size_t index, - const RibValues & parameters, - const MbSNameMaker & operNames, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать отдельное ребро жёсткости. \en Create a separate rib. \~ diff --git a/C3d/Include/cr_ruled_shell.h b/C3d/Include/cr_ruled_shell.h index 058040f..de9cb37 100644 --- a/C3d/Include/cr_ruled_shell.h +++ b/C3d/Include/cr_ruled_shell.h @@ -77,40 +77,6 @@ public: IMPL_PERSISTENT_OPS( MbRuledShell ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить линейчатую оболочку. - \en Construct a ruled shell. \~ - \details \ru Построить линейчатую оболочку по двум кривым. - Кривые могут быть составными. - Одновременно с построением оболочки функция создаёт её строитель.\n - \en Construct a ruled shell from two curves - Curves can be composite. - The function simultaneously creates the shell and its constructor.\n \~ - \param[in,out] parameters - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] isPhantom - \ru Режим создания фантома. - \en Create in the phantom mode. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateRuledShell с набором параметров #MbRuledShellParams. - \en The function is deprecated, instead use #CreateRuledShell with the parameter list #MbRuledShellParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateRuledShell with MbRuledShellParams ) -MATH_FUNC (MbCreator *) CreateRuledShell( RuledSurfaceValues & parameters, - const MbSNameMaker & operNames, - bool isPhantom, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить линейчатую оболочку. \en Construct a ruled shell. \~ diff --git a/C3d/Include/cr_sheet_builder_solid.h b/C3d/Include/cr_sheet_builder_solid.h index dcdf939..d4d94dc 100644 --- a/C3d/Include/cr_sheet_builder_solid.h +++ b/C3d/Include/cr_sheet_builder_solid.h @@ -75,47 +75,6 @@ private: IMPL_PERSISTENT_OPS( MbBuildSheetMetalSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Строитель оболочки из листового материала на основе произвольного тела. - \en Constructor of the sheet metal shell based on an arbitrary solid. \~ - \details \ru На базе исходной произвольной оболочки построить оболочку из листового материала. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source arbitrary shell. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] initFace - \ru Исходная грань для построения листового тела. - \en The initial face for sheet metal solid construction. \~ - \param[in] sense - \ru Признак совпадения направления придания толщины с нормалью исходной грани. - \en Attribute of coincidence of extrusion direction to the normal of the initial face. \~ - \param[in] params - \ru Параметры построения листового тела по произвольному телу. - \en The parameters of sheet metal solid building based on an arbitrary solid. \~ - \param[in] nameMaker - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] res - \ru - Код результата операции. - \en - The operation result code. \~ - \param[out] resultShell - \ru Результирующее тело. - \en The resultant solid. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #ConvertShellToSheetMetall с набором параметров #MbSolidToSheetMetalParams. - \en The function is deprecated, instead use #ConvertShellToSheetMetall with the parameter list #MbSolidToSheetMetalParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( ConvertShellToSheetMetall with 'MbSolidToSheetMetalParams' argument ) -MATH_FUNC (MbCreator *) ConvertShellToSheetMetall( MbFaceShell * initialShell, - const MbeCopyMode sameShell, - const MbFace & initFace, - bool sense, - MbSolidToSheetMetalValues & params, - const MbSNameMaker & nameMaker, - MbResultType & res, - SPtr & resultShell ); - - //------------------------------------------------------------------------------ /** \brief \ru Строитель оболочки из листового материала на основе произвольного тела. \en Constructor of the sheet metal shell based on an arbitrary solid. \~ diff --git a/C3d/Include/cr_sheet_normalize_holes_solid.h b/C3d/Include/cr_sheet_normalize_holes_solid.h index 0d3b9eb..fb6bda7 100644 --- a/C3d/Include/cr_sheet_normalize_holes_solid.h +++ b/C3d/Include/cr_sheet_normalize_holes_solid.h @@ -71,37 +71,6 @@ private: IMPL_PERSISTENT_OPS( MbNormalizeHolesSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Нормализовать вырезы листового тела. - \en Normalize of the holes of sheet solid. \~ - \details \ru Нормализовать вырезы листового тела. \n - \en Normalize of the holes of sheet solid. \n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Флаг удаления оболочки исходного тела. - \en Whether to delete the shell of the source solid. \~ - \param[in] nameMaker - \ru Именователь. - \en An object for naming the new objects. \~ - \param[in] cutOnly - \ru Нормализуется только вырез. - \en Normalize only cut. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Sheet_Metal_Modeling -*/ -// --- -DEPRECATE_DECLARE_REPLACE( NormalizeHolesSides with 'MbNormalizeCutSidesParams' argument ) -MATH_FUNC (MbCreator *) NormalizeHolesSides ( MbFaceShell *& initialShell, - const MbeCopyMode sameShell, - const MbSNameMaker & nameMaker, - bool cutOnly, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Нормализовать вырезы листового тела. \en Normalize of the holes of sheet solid. \~ diff --git a/C3d/Include/cr_stamp_remove_solid.h b/C3d/Include/cr_stamp_remove_solid.h index 279fff0..d25b44b 100644 --- a/C3d/Include/cr_stamp_remove_solid.h +++ b/C3d/Include/cr_stamp_remove_solid.h @@ -37,26 +37,6 @@ public : /// \ru Конструктор по параметрам операции. \en Constructor by operation parameters. MbRemoveOperationSolid( const MbRemoveOperationResultParams & params ); - /** \brief \ru Конструктор. - \en Constructor. \~ - \details \ru Конструктор по главному имени удаляемой операции, типу листовой операции - и именователю. \n - \en Constructor by main name of the operation to delete, type of sheet metal operations - and object defining names generation in the operation. \n \~ - \param[in] removeName - \ru Главное имя удаляемой операции. - \en Main name of the operation to delete. \~ - \param[in] opType - \ru Тип листовой операции. - \en Type of sheet metal operations. \~ - \param[in] names - \ru Именователь. - \en An object defining names generation in the operation. \~ - \deprecated \ru Метод устарел, взамен использовать конструктор с набором параметров #MbRemoveOperationResultParams. - \en The method is deprecated, instead use constructor with the parameter list #MbRemoveOperationResultParams. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbRemoveOperationSolid with MbRemoveOperationResultParams ) - MbRemoveOperationSolid( const SimpleName removeName, - MbeSheetOperationName opType, - const MbSNameMaker & names ); - private: MbRemoveOperationSolid( const MbRemoveOperationSolid &, MbRegDuplicate * iReg ); // \ru Объявление конструктора копирования без реализации, чтобы не было копирования по умолчанию. \en Declaration without implementation of the copy-constructor to prevent copying by default. @@ -127,79 +107,6 @@ MATH_FUNC (MbCreator *) CreateRemovedOperationResult ( MbFaceShell & SPtr & shell ); -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку без указанной операции. - \en Constructs a shell without the specified operation. \~ - \details \ru Построить оболочку без указанной операции. - Удаляет грани с указанным главным именем операции и затягивает образовавшуюся дыру расширением соседних граней. \n - \en Constructs a shell without the specified operation. - It removes faces with specified main name and then mends the hole by stretching the neighbour faces. \n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The initial shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the initial shell. \~ - \param[in] removeName - \ru Главное имя операции которую надо удалить. - \en The main name of the operation to be removed. \~ - \param[in] opType - \ru Тип листовой операции. - \en Type of the sheet operation. \~ - \param[in] names - \ru Именователь граней. - \en An object for naming faces. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateRemovedOperationResult с набором параметров #MbRemoveOperationResultParams. - \en The function is deprecated, instead use #CreateRemovedOperationResult with the parameter list #MbRemoveOperationResultParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateRemovedOperationResult with MbRemoveOperationResultParams ) -MATH_FUNC (MbCreator *) CreateRemovedOperationResult ( MbFaceShell & initialShell, - const MbeCopyMode sameShell, - const SimpleName removeName, - MbeSheetOperationName opType, - const MbSNameMaker & names, - MbResultType & res, - MbFaceShell *& shell ); - - -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку без указанной операции. - \en Constructs a shell without the specified operation. \~ - \details \ru Построить оболочку без указанной операции. - Удаляет грани с указанным главным именем операции и затягивает образовавшуюся дыру расширением соседних граней. \n - \en Constructs a shell without the specified operation. - It removes faces with specified main name and then mends the hole by stretching the neighbour faces. \n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The initial shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the initial shell. \~ - \param[in] removeName - \ru Главное имя операции которую надо удалить. - \en The main name of the operation to be removed. \~ - \param[in] names - \ru Именователь граней. - \en An object for naming faces. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateRemovedOperationResult с набором параметров #MbRemoveOperationResultParams. - \en The function is deprecated, instead use #CreateRemovedOperationResult with the parameter list #MbRemoveOperationResultParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateRemovedOperationResult with MbRemoveOperationResultParams ) -MATH_FUNC (MbCreator *) CreateRemovedOperationResult( MbFaceShell & initialShell, - const MbeCopyMode sameShell, - const SimpleName removeName, - const MbSNameMaker & names, - MbResultType & res, - MbFaceShell *& shell ); - - #endif // __CR_STAMP_REMOVE_SOLID_H diff --git a/C3d/Include/cr_stamp_rib_solid.h b/C3d/Include/cr_stamp_rib_solid.h index 6bbc603..79e73ba 100644 --- a/C3d/Include/cr_stamp_rib_solid.h +++ b/C3d/Include/cr_stamp_rib_solid.h @@ -82,50 +82,6 @@ private : IMPL_PERSISTENT_OPS( MbStampRibSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Создать оболочку с ребром жёсткости. - \en Create a shell with a rib. \~ - \details \ru Для указанной листовой оболочки построить оболочку с ребром жёсткости, форма которого задана плоским контуром.\n - Одновременно с построением оболочки функция создаёт её строитель. \n - \en For a specified sheet shell create a shell with a rib which shape is given by the planar contour.\n - The function simultaneously constructs the shell and creates its constructor. \n \~ - \deprecated \ru Функция устарела, взамен использовать #CreateSheetRib с набором параметров #MbSheetRibSolidParams. - \en The function is deprecated, instead use #CreateSheetRib with the parameter list #MbSheetRibSolidParams. \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Способ копирования граней исходной оболочки. - \en Method of copying the source shell faces. \~ - \param[in] place - \ru Локальная система координат, в плоскости XY которай расположен двумерный контур. - \en A local coordinate system the two-dimensional contour is located in XY plane of. \~ - \param[in] contour - \ru Двумерный контур ребра жесткости расположен в плоскости XY локальной системы координат. - \en Two-dimensional contour of a rib located in XY plane of the local coordinate system. \~ - \param[in] index - \ru Индекс сегмента в контуре, от которого будет установлено направление уклона. - \en Index of a segment in the contour at which the inclination direction will be set. \~ - \param[in] parameters - \ru Параметры операции. - \en The operation parameters. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] resultShell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель, если операция была выполнена успешно. - \en Returns the constructor if the operation has been successfully performed. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateSheetRib with MbSheetRibSolidParams ) -MATH_FUNC (MbCreator *) CreateSheetRib( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbPlacement3D & place, - const MbContour & contour, - size_t index, - SheetRibValues & parameters, - const MbSNameMaker & operNames, - MbResultType & res, - MbFaceShell *& resultShell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать оболочку с ребром жёсткости. \en Create a shell with a rib. \~ @@ -155,21 +111,6 @@ MATH_FUNC (c3d::CreatorSPtr) CreateSheetRib( const c3d::ShellSPtr & solid c3d::ShellSPtr & shell ); -//------------------------------------------------------------------------------ -// Построение элементов ребра жёсткости. -// --- -DEPRECATE_DECLARE_REPLACE( CreateSheetRibParts with MbSheetRibSolidParams ) -MATH_FUNC (MbResultType) CreateSheetRibParts( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbPlacement3D & place, - const MbContour & contour, - const size_t index, - const SheetRibValues & pars, - const MbSNameMaker & names, - MbFaceShell *& shellToAdd, - MbFaceShell *& shellToSubtract ); - - //------------------------------------------------------------------------------ /** \brief \ru Создание элементов оболочки с ребром жесткости. \en Create rib parts of a shell. \~ diff --git a/C3d/Include/cr_stamp_solid.h b/C3d/Include/cr_stamp_solid.h index 469b502..9e9fdfd 100644 --- a/C3d/Include/cr_stamp_solid.h +++ b/C3d/Include/cr_stamp_solid.h @@ -102,52 +102,6 @@ private: IMPL_PERSISTENT_OPS( MbStampSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку из листового материала штамповкой. - \en Construct a shell form sheet material by stamping. \~ - \details \ru На базе исходной оболочки из листового материала построить оболочку методом закрытой или открытой штамповкой. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source shell by the method of closed or open stamping. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] face - \ru Грань штамповки. - \en The face for stamping. \~ - \param[in] placement - \ru Локальная система координат, в плоскости XY которй расположен контур штамповки. - \en The local coordinate system in the XY plane of which the stamping contour is located. \~ - \param[in] contour - \ru Контур штамповки. - \en The stamping contour. \~ - \param[in] parameters - \ru Параметры штамповки. - \en The parameters of stamping. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции выдавливания. - \en The extrusion operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateStamp с набором параметров #MbStampParams. - \en The function is deprecated, instead use #CreateStamp with the parameter list #MbStampParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateStamp with 'MbStampParams' argument ) -MATH_FUNC (MbCreator *) CreateStamp( SPtr & initialShell, // исходная оболочка - const MbeCopyMode sameShell, // флаг способа использования исходной оболочки - const MbFace * face, // грань штамповки - const MbPlacement3D & placement, // локальная система координат контура - const MbContour & contour, // контур штамповки - const MbStampingValues & params, // параметры штамповки - const double thickness, // толщина листа - const bool add, // создать добавляемую часть - const MbSNameMaker & nameMaker, // именователь - MbResultType & res, // флаг успешности операции - SPtr & resultShell ); // результирующая оболочка - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку из листового материала штамповкой. \en Construct a shell form sheet material by stamping. \~ diff --git a/C3d/Include/cr_stamp_spherical_solid.h b/C3d/Include/cr_stamp_spherical_solid.h index 334965d..d2e8e0a 100644 --- a/C3d/Include/cr_stamp_spherical_solid.h +++ b/C3d/Include/cr_stamp_spherical_solid.h @@ -97,54 +97,6 @@ private: IMPL_PERSISTENT_OPS( MbSphericalStampSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку из листового материала со сферической штамповкой. - \en Construct a shell form sheet material by spherical stamping. \~ - \details \ru На базе исходной оболочки из листового материала построить оболочку методом сферической штамповки или части сферической штамповки без исходного листового тела. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source shell by the method of spherical stamping or parts of spherical stamp without the basis sheet solid. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] face - \ru Грань штамповки. - \en The face for stamping. \~ - \param[in] placement - \ru Локальная система координат, в плоскости XY которй расположен контур штамповки. - \en The local coordinate system in the XY plane of which the stamping contour is located. \~ - \param[in] parameters - \ru Параметры штамповки. - \en The parameters of stamping. \~ - \param[in] thickness - \ru Толщина листа. - \en The thickness of the sheet solid. - \param[in] add - \ru Какую часть сферической штамповки создавать. - \en Which part of the spherical stamp to create. - \param[in] center - \ru Центр штамповки. - \en The center of the stamping. \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции выдавливания. - \en The extrusion operation result code. \~ - \param[out] shell - \ru Построенная оболочка. - \en The resultant shell. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateSphericalStamp with 'MbSphericalStampParams' argument ) -MATH_FUNC (MbCreator *) CreateSphericalStamp( SPtr & solid, - const MbeCopyMode sameShell, - const MbFace * face, - const MbPlacement3D & placement, - const MbStampingValues & parameters, - const double thickness, - const bool add, - const MbCartPoint & center, - const MbSNameMaker & operNames, - MbResultType & res, - SPtr & shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку из листового материала со сферической штамповкой. \en Construct a shell form sheet material by spherical stamping. \~ diff --git a/C3d/Include/cr_stamp_user_solid.h b/C3d/Include/cr_stamp_user_solid.h index 559b218..04d9476 100644 --- a/C3d/Include/cr_stamp_user_solid.h +++ b/C3d/Include/cr_stamp_user_solid.h @@ -92,59 +92,6 @@ private: IMPL_PERSISTENT_OPS( MbUserStampSolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Построить оболочку из листового материала штамповкой телом-инструментом. - \en Construct a shell form sheet material by tool body stamping. \~ - \details \ru На базе исходной оболочки из листового материала построить оболочку методом закрытой или открытой штамповки. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source shell by the method of closed or open stamping. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] targetFace - \ru Грань штамповки. - \en The face for stamping. \~ - \param[in] creatorsTool - \ru Журнал построения инструмента. - \en A creator of the tool. - \param[in] toolShell - \ru Оболочка тела-инструмента. - \en A shell of tool solid. \~ - \param[in] sameShellTool - \ru Режим копирования оболочки тела-инструмента. - \en Mode of copying the tool shell. \~ - \param[in] isPunch - \ru Является тело-инструмент пуансоном или матрицей. - \en Is tool body a punch or a die. \~ - \param[in] pierceFaces - \ru Вскрываемые для вырубки грани инструмента, - \en Pierce faces of tool body. \~ - \param[in] params - \ru Параметры штамповки. - \en The parameters of stamping. \~ - \param[in] nameMaker - \ru Именователь. - \en An object for naming the new objects. \~ - \param[out] res - \ru - Код результата операции. - \en - The operation result code. \~ - \param[out] resultShell - \ru Результирующее тело. - \en The resultant solid. \~ - \result \ru Возвращает строитель оболочки. - \en Returns the shell constructor. \~ - \deprecated \ru Функция устарела, взамен использовать #CreateUserStamp с набором параметров #MbStampWithToolParams. - \en The function is deprecated, instead use #CreateUserStamp with the parameter list #MbStampWithToolParams. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateUserStamp with 'MbStampWithToolParams' argument ) -MATH_FUNC (MbCreator *) CreateUserStamp( MbFaceShell * initialShell, // Исходная оболочка, - const MbeCopyMode sameShell, // флаг способа использования исходной оболочки, - const MbFace & targetFace, // грань штамповки, - const RPArray & creatorsTool, // журнал построения инструмента, - MbFaceShell & toolShell, // оболочка тела-инструмента, - const MbeCopyMode sameShellTool, // флаг способа использования оболочки инструмента, - bool isPunch, // является инструмент пуансоном или матрицей, - const RPArray & pierceFaces, // вскрываемые для вырубки грани инструмента, - const MbToolStampingValues & params, // параметры штамповки, - const MbSNameMaker & nameMaker, // именователь, - MbResultType & res, // флаг успешности операции, - SPtr & resultShell ); // результирующая оболочка - - //------------------------------------------------------------------------------ /** \brief \ru Построить оболочку из листового материала штамповкой телом-инструментом. \en Construct a shell form sheet material by tool body stamping. \~ @@ -181,75 +128,4 @@ MATH_FUNC( c3d::CreatorSPtr ) CreateUserStamp( c3d::ShellSPtr & i c3d::ShellSPtr & resultShell ); // результирующая оболочка -//------------------------------------------------------------------------------ -/** \brief \ru Построение результирующей оболочки. - \en Construction of result shell. \~ - \details \ru На базе исходной оболочки из листового материала построить оболочку методом закрытой или открытой штамповки. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source shell by the method of closed or open stamping. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] targetFace - \ru Грань штамповки. - \en The face for stamping. \~ - \param[in] toolShell - \ru Оболочка тела-инструмента. - \en A shell of tool solid. \~ - \param[in] sameShellTool - \ru Режим копирования оболочки тела-инструмента. - \en Mode of copying the tool shell. \~ - \param[in] isPunch - \ru Является тело-инструмент пуансоном или матрицей. - \en Is tool body a punch or a die. \~ - \param[in] pierceFaces - \ru Вскрываемые для вырубки грани инструмента, - \en Pierce faces of tool body. \~ - \param[in] params - \ru Параметры штамповки. - \en The parameters of stamping. \~ - \param[in] nameMaker - \ru Именователь. - \en An object for naming the new objects. \~ - \result \ru - тело со штамповкой. - \en - The solid with stamping. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( StampWithToolSolid with 'MbStampWithToolPartsParams' argument ) -MbFaceShell * MakeUserStampShellForStampParts ( MbFaceShell * initialShell, // Исходная оболочка, - const MbeCopyMode sameShell, // флаг способа использования исходной оболочки, - const MbFace & targetFace, // грань штамповки, - MbFaceShell & toolShell, // оболочка тела-инструмента, - const MbeCopyMode sameShellTool, // флаг способа использования оболочки инструмента, - bool isPunch, // является инструмент пуансоном или матрицей, - const RPArray & pierceFaces, // вскрываемые для вырубки грани инструмента, - const MbToolStampingValues & params, // параметры штамповки, - const MbSNameMaker & nameMaker ); // именователь, - - -//------------------------------------------------------------------------------ -/** \brief \ru Построение результирующей оболочки. - \en Construction of result shell. \~ - \details \ru На базе исходной оболочки из листового материала построить оболочку методом закрытой или открытой штамповки. \n - Одновременно с построением оболочки функция создаёт её строитель.\n - \en A shell is to be constructed on the basis of the source shell by the method of closed or open stamping. \n - The function simultaneously creates the shell and its constructor.\n \~ - \param[in] initialShell - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Режим копирования исходной оболочки. - \en Mode of copying the source shell. \~ - \param[in] toolShell - \ru Оболочка тела-инструмента. - \en A shell of tool solid. \~ - \param[in] sameShellTool - \ru Режим копирования оболочки тела-инструмента. - \en Mode of copying the tool shell. \~ - \param[in] params - \ru Параметры штамповки. - \en The parameters of stamping. \~ - \result \ru - тело со штамповкой. - \en - The solid with stamping. \~ - \ingroup Model_Creators -*/ -// --- -MbFaceShell * MakeUserStampShellForStampParts ( c3d::ShellSPtr & initialShell, - const MbeCopyMode sameShell, - MbFaceShell & toolShell, - const MbeCopyMode sameShellTool, - const MbStampWithToolPartsParams & params ); - - #endif // __CR_STAMP_USER_SOLID_H diff --git a/C3d/Include/cr_symmetry_solid.h b/C3d/Include/cr_symmetry_solid.h index 86342e7..2375b3e 100644 --- a/C3d/Include/cr_symmetry_solid.h +++ b/C3d/Include/cr_symmetry_solid.h @@ -75,52 +75,6 @@ private : IMPL_PERSISTENT_OPS( MbSymmetrySolid ) -//------------------------------------------------------------------------------ -/** \brief \ru Создать симметричную оболочку. - \en Create a symmetric shell. \~ - \details \ru Для указанной оболочки построить симметричную относительно указанной плоскости оболочку. - Функция разрезает оболочку плоскостью на две части, удаляет одну из них, - для оставшейся части строит симметричную относительно плоскости копию и склеивает её с оставшейся частью. \n - Одновременно с построением оболочки функция создаёт её строитель. \n - \en For a given shell build a shell symmetric relative to the specified plane. - The function cuts the shell by the plane onto two parts, deletes one of them, - for the remained part it builds a copy symmetric relative to the plane and glues it with the remained part. \n - The function simultaneously constructs the shell and creates its constructor. \n \~ - \param[in] solid - \ru Исходная оболочка. - \en The source shell. \~ - \param[in] sameShell - \ru Способ копирования граней исходной оболочки. - \en Method of copying the source shell faces. \~ - \param[in] origin - \ru Точка плоскости симметрии. - \en A point of plane of symmetry. \~ - \param[in] axisX - \ru Первая ось плоскости симметрии. - \en The first axis of symmetry. \~ - \param[in] axisY - \ru Вторая ось плоскости симметрии. - \en The second axis of symmetry. \~ - \param[in] side - \ru Сохраняемая часть исходной оболочки (+1, 0, -1). - \en A part of the source shell to be kept (+1, 0, -1). \~ - \param[in] operNames - \ru Именователь операции. - \en An object defining names generation in the operation. \~ - \param[out] res - \ru Код результата операции выдавливания. - \en The extrusion operation result code. \~ - \param[out] shell - \ru Построенный набор граней. - \en Constructed set of faces. \~ - \result \ru Возвращает строитель, если операция была выполнена успешно. - \en Returns the constructor if the operation has been successfully performed. \~ - \ingroup Model_Creators -*/ -// --- -DEPRECATE_DECLARE_REPLACE( CreateSymmetry with 'MbSymmetrySolidParams' argument ) -MATH_FUNC (MbCreator *) CreateSymmetry( MbFaceShell * solid, - MbeCopyMode sameShell, - const MbCartPoint3D & origin, - const MbVector3D & axisX, - const MbVector3D & axisY, - int side, - const MbSNameMaker & operNames, - MbResultType & res, - MbFaceShell *& shell ); - - //------------------------------------------------------------------------------ /** \brief \ru Создать симметричную оболочку. \en Create a symmetric shell. \~ diff --git a/C3d/Include/cr_unwrap_curve.h b/C3d/Include/cr_unwrap_curve.h index be92cc6..c35a7fa 100644 --- a/C3d/Include/cr_unwrap_curve.h +++ b/C3d/Include/cr_unwrap_curve.h @@ -63,36 +63,4 @@ DECLARE_PERSISTENT_CLASS_NEW_DEL( MbUnwrapCurveCreator ) IMPL_PERSISTENT_OPS( MbUnwrapCurveCreator ) - -//////////////////////////////////////////////////////////////////////////////// -// -// Неклассные функции -// -//////////////////////////////////////////////////////////////////////////////// - - -//------------------------------------------------------------------------------ -/** \brief \ru Создание строителя развёрнутой кривой. - \en Create a constructor of unwrapped curve. \~ - \details \ru Создание строителя развёрнутой кривой. Ожидется, что на вход будет подана одна кривая, или набор связных кривых. - Иначе корректное разворачивание не гарантируется. \n - \en Create a constructor of unwrapped curve. It is expected to receive as input 1 curve or an array of connected curves. - Otherwise the correct unwrapping is not guaranteed. \n \~ - \param[in] parameters - \ru Параметры операции. - \en Parameters of the operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] resWire - \ru Возвращаемая развёрнутая кривая. Может быть nullptr. - \en The unwrapped curve. Can be nullptr. \~ - \result \ru Возвращает строитель. - \en Returns the creator. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( UnWrapCurve with MbCurvesWrappingResults ) -MATH_FUNC( c3d::CreatorSPtr ) CreateUnwrappedCurve( const MbCurvesWrappingParams & parameters, - MbResultType & res, - c3d::WireFrameSPtr & resWire ); - #endif // __CR_UNWRAP_CURVE_H diff --git a/C3d/Include/cr_wrap_curve.h b/C3d/Include/cr_wrap_curve.h index e96c32b..c34f0be 100644 --- a/C3d/Include/cr_wrap_curve.h +++ b/C3d/Include/cr_wrap_curve.h @@ -62,35 +62,4 @@ DECLARE_PERSISTENT_CLASS_NEW_DEL( MbWrapCurveCreator ) }; // MbWrapCurveCreator -//////////////////////////////////////////////////////////////////////////////// -// -// Неклассные функции -// -//////////////////////////////////////////////////////////////////////////////// - - -//------------------------------------------------------------------------------ -/** \brief \ru Создание строителя свёрнутой кривой. - \en Create a constructor of wrapped curve. \~ - \details \ru Создание строителя свёрнутой кривой. Ожидется, что на вход будет подана одна кривая, или набор связных кривых. - Иначе корректное сворачивание не гарантируется. \n - \en Create a constructor of wrapped curve. It is expected to receive as input 1 curve or an array of connected curves. - Otherwise the correct wrapping is not guaranteed. \n \~ - \param[in] parameters - \ru Параметры операции. - \en Parameters of the operation. \~ - \param[out] res - \ru Код результата операции. - \en Operation result code. \~ - \param[out] resWire - \ru Возвращаемый каркас из свёрнутых кривых. Может быть nullptr. - \en Wrapped curves wireframe. Can be nullptr. \~ - \result \ru Возвращает строитель. - \en Returns the creator. \~ - \ingroup Curve3D_Modeling - \deprecated \ru Метод устарел. \en The method is deprecated. \~ -*/ -// --- -DEPRECATE_DECLARE_REPLACE( WrapCurve with MbCurvesWrappingResults ) -MATH_FUNC( c3d::CreatorSPtr ) CreateWrappedCurve( const MbCurvesWrappingParams & parameters, - MbResultType & res, - c3d::WireFrameSPtr & resWire ); - #endif // __CR_WRAP_CURVE_H diff --git a/C3d/Include/cur_arc.h b/C3d/Include/cur_arc.h index 2d142a2..9d59e76 100644 --- a/C3d/Include/cur_arc.h +++ b/C3d/Include/cur_arc.h @@ -222,40 +222,6 @@ public : */ MbArc( const MbCartPoint & pc, const MbCartPoint & p1, const MbCartPoint & p2, int initSense ); // \ru Конструктор дуги \en The arc constructor - /** \brief \ru Конструктор дуги окружности. - \en Constructor of a circular arc. \~ - \details \ru Создается дуга окружности, проходящая через все 3 заданные точки. - Точки p1 и p3 - крайние. Направление движения по дуге определяется так, чтобы точка p2 лежала на дуге. - \en A circular arc is created passing through 3 given points. - Points p1 and p3 are the end points. Direction of moving along the arc is defined so as point p2 lay on the arc. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - \param[in] p1 - \ru Начало дуги. - \en Beginning of the arc. \~ - \param[in] p2 - \ru Точка, лежащая на дуге. - \en A point on the arc. \~ - \param[in] p3 - \ru Конец дуги. - \en End of the arc. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbArc with MbArc::Create ) - MbArc( const MbCartPoint & p1, const MbCartPoint & p2, const MbCartPoint & p3 ); - - /** \brief \ru Конструктор дуги окружности. - \en Constructor of a circular arc. \~ - \details \ru Создается дуга окружности с концами в заданных точках. - Радиус окружности определяется по заданному тангенсу 1/4 угла раствора дуги. - \en An arc is created with ends at the given points. - A circle radius is defined by the given tangent of 1/4 of arc opening angle. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - \param[in] p1 - \ru Начало дуги. - \en Beginning of the arc. \~ - \param[in] p2 - \ru Конец дуги. - \en End of the arc. \~ - \param[in] a4 - \ru Тангенс 1/4 угла раствора дуги. - \en Tangent of 1/4 of the arc opening angle. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbArc with MbArc::Create ) - MbArc( const MbCartPoint & p1, const MbCartPoint & p2, double a4 ); - /** \brief \ru Конструктор дуги эллипса. \en Constructor of an elliptical arc. \~ \details \ru Создается дуга эллипса с заданными полуосями и локальной системой координат. diff --git a/C3d/Include/cur_arc3d.h b/C3d/Include/cur_arc3d.h index dc87b33..7f96fe6 100644 --- a/C3d/Include/cur_arc3d.h +++ b/C3d/Include/cur_arc3d.h @@ -71,7 +71,6 @@ protected: */ MbArc3D(); -public://protected: /** \brief \ru Конструктор эллипса, окружности или их дуг. \en Constructor of an ellipse, a circle or an elliptical or circular arc. \~ \details \ru Создается дуга с центром в точке pc. \n @@ -102,7 +101,6 @@ public://protected: \param[in] initSense - \ru Определяет цельность и направление. initSense == 0 - замкнутая кривая initSense > 0 - движение против часовой стрелки, initSense < 0 - по часовой стрелке. \en Determines the completeness and the direction. initSense == 0 - closed curve initSense > 0 - moving counterclockwise, initSense < 0 - clockwise. \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & pc, const MbCartPoint3D & p1, const MbCartPoint3D & p2, int initSense = 0 ); /** \brief \ru Конструктор окружности или дуги окружности. @@ -127,7 +125,6 @@ public://protected: \param[in] closed - \ru Определяет окружность (true) или дугу (false). \en Specifies a circle (true) or an arc (false). \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & p0, const MbCartPoint3D & p1, const MbCartPoint3D & p2, int n, bool closed ); /** \brief \ru Конструктор окружности или дуги окружности. @@ -163,7 +160,6 @@ public://protected: If initSense < 0, then the orientation is clockwise if you look towards the vector aZ. If initSense = 0, then the circle is building. \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & pc, const MbCartPoint3D & p1, const MbCartPoint3D & p2, const MbVector3D & aZ, int initSense ); @@ -189,7 +185,6 @@ public://protected: \param[in] angle - \ru Угол, определяющий конец дуги. \en An angle specifying the end of the arc. \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & p0, const MbVector3D & vZ, const MbVector3D & vX, double aa, double bb, double angle ); /** \brief \ru Конструктор дуги окружности. @@ -208,7 +203,6 @@ public://protected: \param[in] vZ - \ru Ось дуги. \en Axis of the arc. \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & p1, const MbCartPoint3D & p2, double a_4, MbVector3D & vZ ); /** \brief \ru Конструктор окружности по двум точкам и направлению к центру в одной из них. @@ -225,7 +219,6 @@ public://protected: \param[in] insecond - \ru Направление из первой точки (insecond == true) к центру окружности. \en Direction from the first point (insecond == true) to the circle center. \~ */ - DEPRECATE_DECLARE_REPLACE( MbArc3D with MbArc3D::Create ) MbArc3D( const MbCartPoint3D & p1, const MbCartPoint3D & p2, const MbVector3D & dirInPoint, bool insecond ); public : diff --git a/C3d/Include/cur_contour.h b/C3d/Include/cur_contour.h index 6802abe..bb87903 100644 --- a/C3d/Include/cur_contour.h +++ b/C3d/Include/cur_contour.h @@ -249,8 +249,6 @@ public: MbNurbs * NurbsCurve( const MbCurveIntoNurbsInfo & ) const override; MbContour * NurbsContour() const override; -DEPRECATE_DECLARE_REPLACE( CheckClosed ) - void SetClosed(); ///< \ru Установить признак замкнутости контура. \en Set the closedness attribute of contour. void CheckClosed( double closedEps = Math::LengthEps ); ///< \ru Установить признак замкнутости контура. \en Set the closedness attribute of contour. void InitClosed( bool c ) { closed = c; } ///< \ru Установить признак замкнутости контура. \en Set the closedness attribute of contour. @@ -432,16 +430,8 @@ DEPRECATE_DECLARE_REPLACE( CheckClosed ) bool CheckConnection( double eps = Math::LengthEps ) const; ///< \ru Проверка непрерывности контура \en Check for contour continuity. bool CheckConnection( double xEps, double yEps ) const; ///< \ru Проверка непрерывности контура \en Check for contour continuity. - /// \ru Скругление двух соседних элементов дугой нулевого радиуса. \en Rounding two neighboring elements by arc of zero radius. - /// \deprecated \ru Метод устарел. \en The method is deprecated. - DEPRECATE_DECLARE - void FilletTwoSegmentsZero( ptrdiff_t & index, int defaultSense, bool fullInsert ); /// \ru Скругление контура дугой нулевого радиуса. \en Rounding contour by arc of zero radius. void FilletZero( int defaultSense, bool fullInsert = false ); - /// \ru Вставка фаски между двумя соседними элементами для построения эквидистанты. \en Insertion of chamfer between two neighboring elements for construction of the offset. - /// \deprecated \ru Метод устарел. \en The method is deprecated. - DEPRECATE_DECLARE - void ChamferTwoSegmentsZero( ptrdiff_t & index, double rad ); /// \ru Вставка фаски для построения эквидистанты. \en Insertion of chamfer for construction of the offset. void ChamferZero( double rad ); /// \ru Удаление вырожденных сегментов контура. \en Removal of degenerate contour segments. @@ -744,6 +734,9 @@ private: void FilletTwoSegmentsZeroRadius( ptrdiff_t & index, int defaultSense, bool fullInsert ); // \ru Скругление двух соседних элементов дугой нулевого радиуса. \en Rounding two neighboring elements by arc of zero radius. void ChamferTwoSegmentsZeroRadius( ptrdiff_t & index, double rad ); // \ru Вставка фаски между двумя соседними элементами для построения эквидистанты. \en Insertion of chamfer between two neighboring elements for construction of the offset. + void SetClosed(); ///< \ru Установить признак замкнутости контура. \en Set the closedness attribute of contour. + void CreateNoDegenerateContours( PArray & curves, SimpleName contourName, PArray & contours );///< \ru Создать невырожденные контуры. \en Create nondegenerate contours. + MbContour & operator = ( const MbContour & initContour ); DECLARE_PERSISTENT_CLASS_NEW_DEL( MbContour ) @@ -779,7 +772,6 @@ MbContour::MbContour( const Curves & initCurves, bool same ) CalculateGabarit( rect ); // посчитать габарит CalculateParamLength(); CalculateMetricLength(); -#pragma warning(suppress : 4996) SetClosed(); // установить признак замкнутости контура } @@ -830,7 +822,6 @@ bool MbContour::Init( Curves & curves, bool same ) CalculateGabarit( rect ); // посчитать габарит CalculateParamLength(); CalculateMetricLength(); -#pragma warning( suppress : 4996 ) SetClosed(); // установить признак замкнутости контура res = segments.size() > 0; } @@ -874,7 +865,6 @@ void MbContour::DetachSegments( CurvesVector & segms ) ::DetachItem( segm ); } segments.clear(); -#pragma warning(suppress : 4996) SetClosed(); // установить признак замкнутости контура Clear(); // сбросить контур } diff --git a/C3d/Include/cur_nurbs.h b/C3d/Include/cur_nurbs.h index 452f177..60f11b6 100644 --- a/C3d/Include/cur_nurbs.h +++ b/C3d/Include/cur_nurbs.h @@ -101,6 +101,7 @@ private: public://protected: DEPRECATE_DECLARE MbNurbs(); ///< \deprecated \ru Метод устарел. \en The method is deprecated. protected: + /** \brief \ru Конструктор. \en Constructor. \~ \details \ru Конструктор по порядку, точкам, параметрам и признаку замкнутости. При недопустимых параметрах initDegree и points поведение кривой не определено.\n diff --git a/C3d/Include/cur_silhouette_curve.h b/C3d/Include/cur_silhouette_curve.h index 60b55c4..0749fdb 100644 --- a/C3d/Include/cur_silhouette_curve.h +++ b/C3d/Include/cur_silhouette_curve.h @@ -69,7 +69,7 @@ protected: MbVector3D eye; ///< \ru Вектор взгляда (для параллельной проекции) или радиус-вектор точки наблюдения (для перспективной проекции). \en Vector of view (for parallel projection) or radius-vector of point of view (for perspective projection). MbAxis3D * lathe; ///< \ru Ось кругового проецирования (проекции токарного сечения). \en The axis for rotate projection. MbCurve3D * approxCurve; ///< \ru Пространственное представление линии очерка. \en The spatial representation of isocline curve. - bool approxExact; ///< \ru Точная ли кривая approxCurve. \en Is exact approxCurven. + bool approxExact; ///< \ru Точная ли кривая approxCurve. \en Is exact approxCurve. public : /// \ru Конструктор по поверхности, двумерной кривой, типу кривой, матрице и флагу перспективы. \en Constructor by surface, two-dimensional curve, type of curve, matrix and flag of perspective. diff --git a/C3d/Include/gce_api.h b/C3d/Include/gce_api.h index e12d5fe..787ae94 100644 --- a/C3d/Include/gce_api.h +++ b/C3d/Include/gce_api.h @@ -2215,33 +2215,6 @@ GCE_FUNC(constraint_item) GCE_AddFixVariable( GCE_system, var_item ); //--- GCE_FUNC(constraint_item) GCE_AddIncidence( GCE_system, geom_item, geom_item ); -//---------------------------------------------------------------------------------------- -// The data structure is deprecated. -//--- -struct GCE_CLASS geom_point -{ - geom_item geom; - point_type pntName; - geom_point() : geom( GCE_NULL ), pntName( GCE_IMPROPER_POINT ) {} - geom_point( geom_item g, point_type pnt ) : geom( g ), pntName( pnt ) {} -}; - -//---------------------------------------------------------------------------------------- -/** - \attention - \ru Устаревшая функция. Вызов будет удален в 2023. - Используйте #GCE_PrepareMovingOfPoint( GCE_system gSys, const std::vector & cPntArr, GCE_point curXY ) - взамен. - \en An obsolete function. The call will be removed in 2023. - Use GCE_PrepareDraggingPoint( GCE_system gSys, const std::vector & cPntArr, GCE_point curXY ) instead of this. \~ -*/ -//--- -DEPRECATE_DECLARE -inline GCE_result GCE_PrepareMovingOfPoint( GCE_system, const std::vector &, GCE_point ) -{ - return GCE_RESULT_None; -} - /** \} */ #endif // __GCE_API_H diff --git a/C3d/Include/gce_callback.h b/C3d/Include/gce_callback.h index ce37b7e..3bbce4e 100644 --- a/C3d/Include/gce_callback.h +++ b/C3d/Include/gce_callback.h @@ -26,12 +26,12 @@ const GCE_app_geom GCE_NOGEOM = 0; ///< \en Specifies an undefined object of th /* Callback enquiries */ -typedef void ( *GCE_geom_registered )( GCE_app_geom ag ); ///< Application geom was registered in the solver. -typedef void ( *GCE_geom_unregistered )( GCE_app_geom ag ); -typedef bool ( *GCE_allow_zero_radius )( GCE_app_geom ag ); ///< -typedef bool ( *GCE_allow_zero_length )( GCE_app_geom ag ); ///< -typedef GCE_vec2d ( *GCE_get_lseg_direction )( GCE_app_geom ag ); ///< -typedef bool ( *GCE_abort )(); ///< Query to interrupt calculations +using GCE_geom_registered = void (*)( GCE_app_geom ag); ///< Application geom was registered in the solver. +using GCE_geom_unregistered = void (*)( GCE_app_geom ag); +using GCE_allow_zero_radius = bool (*)( GCE_app_geom ag); ///< \ru Разрешает окружность нулевого радиуса. \en Allow zero radius of a circle. +using GCE_allow_zero_length = bool (*)( GCE_app_geom ag); ///< \ru Разрешает участок кривой или отрезок нулевой длины. \en Allow zero length of a bounded curve or line segments. +using GCE_get_lseg_direction = GCE_vec2d (*)(GCE_app_geom ag); ///< \ru Функция, которая выдет направляющий вектор отрезка. \en Function that returns the direction of a line segment. +using GCE_abort = bool (*)(); ///< Query to interrupt calculations //---------------------------------------------------------------------------------------- /** \brief \ru Структура, объединяющая обратные вызовы двухмерного решателя. diff --git a/C3d/Include/gce_types.h b/C3d/Include/gce_types.h index be2ebb8..df3fd45 100644 --- a/C3d/Include/gce_types.h +++ b/C3d/Include/gce_types.h @@ -723,9 +723,6 @@ struct GCT_CLASS GCT_diagnostic_pars Constraints2D_API */ -DEPRECATE_DECLARE -const GCE_c_status GCE_STATUS_Solved = GCE_STATUS_Undefined; // Deprecated. It will be removed in 2023. - #endif // __GCE_TYPES_H // eof diff --git a/C3d/Include/gcm_api.h b/C3d/Include/gcm_api.h index aed5b88..35ffe8a 100644 --- a/C3d/Include/gcm_api.h +++ b/C3d/Include/gcm_api.h @@ -1201,11 +1201,6 @@ struct GCT_diagnostic_pars; //--- GCM_FUNC(const GCT_diagnostic_pars) GCM_DiagnosticPars( GCM_system gSys ); -//---------------------------------------------------------------------------------------- -// Use GCM_FreezeGeom instead this (2019). -//--- -DEPRECATE_DECLARE GCM_FUNC(void) GCM_FixGeom( GCM_system gSys, GCM_geom g ); - //---------------------------------------------------------------------------------------- // Deprecated (2021). Use GCM_GeometryStatus to query about GCM_G_STATUS_Frozen. //--- diff --git a/C3d/Include/hash32.h b/C3d/Include/hash32.h index 7935138..bd4f0c0 100644 --- a/C3d/Include/hash32.h +++ b/C3d/Include/hash32.h @@ -275,7 +275,15 @@ SimpleName Hash32Ptr( T * k ) { return c3d::Hash32( reinterpret_cast(&k // --- inline SimpleName HashStr( const c3d::string_t & str ) { - return c3d::Hash32( const_cast(reinterpret_cast(str.c_str())), str.length() * sizeof(TCHAR) ); +#ifdef C3D_WINDOWS + return c3d::Hash32( const_cast( reinterpret_cast( str.c_str() ) ), str.length() * sizeof( TCHAR ) ); +#else + uint16 * hashBuf = Ucs4ToUtf16( const_cast( reinterpret_cast( str.c_str() ) ) ); + uint16 * hashBufPointer = hashBuf; + SimpleName hash = c3d::Hash32( reinterpret_cast( hashBufPointer ), _tcslen( str.c_str() ) * 2 ); + delete[] hashBuf; + return hash; +#endif } @@ -307,15 +315,15 @@ inline SimpleName HashStr( const wchar_t * w_str ) { PRECONDITION( w_str ); -#ifndef __MOBILE_VERSION__ - return c3d::Hash32( const_cast(reinterpret_cast(w_str)), wcslen(w_str) * sizeof(wchar_t) ); -#else // __MOBILE_VERSION__ - uint16 * hashBuf = Ucs4ToUtf16(const_cast(reinterpret_cast(w_str))); +#ifdef C3D_WINDOWS + return c3d::Hash32( const_cast( reinterpret_cast( w_str ) ), wcslen( w_str ) * sizeof( wchar_t ) ); +#else // C3D_WINDOWS + uint16 * hashBuf = Ucs4ToUtf16( const_cast( reinterpret_cast( w_str ) ) ); uint16 * hashBufPointer = hashBuf; - SimpleName hash = c3d::Hash32( reinterpret_cast(hashBufPointer), wcslen(w_str) * 2 ); + SimpleName hash = c3d::Hash32( reinterpret_cast( hashBufPointer ), wcslen( w_str ) * 2 ); delete[] hashBuf; return hash; -#endif // __MOBILE_VERSION__ +#endif // C3D_WINDOWS } diff --git a/C3d/Include/math_version.h b/C3d/Include/math_version.h index 552cd2c..d13c6fb 100644 --- a/C3d/Include/math_version.h +++ b/C3d/Include/math_version.h @@ -100,7 +100,9 @@ #define MATH_22_UHF_VERSION 0x16000011L ///< \ru Версия файла - 22.0 UHF (Upper Hot Fix). \en The file version - 22.0 UHF (Upper Hot Fix). \~ \ingroup Base_Tools #define C3D_2023_VERSION 0x16001001L ///< \ru Версия файла - C3D 2023. \en The file version - C3D 2023. \~ \ingroup Base_Tools #define MATH_23_VERSION 0x17000001L ///< \ru Версия файла - 23.0. \en The file version - 23.0. \~ \ingroup Base_Tools +#define MATH_23_HF1_VERSION 0x17000003L ///< \ru Версия файла - 23.0 HF1. \en The file version - 23.0 HF1. \~ \ingroup Base_Tools #define MATH_23_UHF_VERSION 0x17000101L ///< \ru Версия файла - 23.0 UHF (Upper Hot Fix). \en The file version - 23.0 UHF (Upper Hot Fix). \~ \ingroup Base_Tools +#define C3D_2024_VERSION 0x17001002L ///< \ru Версия файла - C3D 2024. \en The file version - C3D 2024. \~ \ingroup Base_Tools //------------------------------------------------------------------------------ /// \ru Является ли версия файла 16-битной. \en Whether there is a 16-bit file version. \~ \ingroup Base_Tools @@ -155,9 +157,10 @@ enum MbeWritableReleaseVersion wrv_MATH_22 = MATH_22_VERSION, ///< \ru Версия файла - 22.0. \en The file version - 22.0. wrv_C3D_2023 = C3D_2023_VERSION, ///< \ru Версия файла - C3D 2023. \en The file version - C3D 2023. wrv_MATH_23 = MATH_23_VERSION, ///< \ru Версия файла - 23.0. \en The file version - 23.0. + wrv_C3D_2024 = C3D_2024_VERSION, ///< \ru Версия файла - C3D 2024. \en The file version - C3D 2024. - wrv_PrevRelease = wrv_C3D_2023, ///< \ru Версия потока предпоследнего релиза. \en The previous release version. - wrv_LastRelease = wrv_MATH_23, ///< \ru Версия потока последнего релиза. \en The last release version. + wrv_PrevRelease = wrv_MATH_23, ///< \ru Версия потока предпоследнего релиза. \en The previous release version. + wrv_LastRelease = wrv_C3D_2024, ///< \ru Версия потока последнего релиза. \en The last release version. wrv_MaxPossible = SYS_MAX_INT32 ///< \ru Использовать последнюю версия потока. \en Use current working version. }; diff --git a/C3d/Include/mb_pmi.h b/C3d/Include/mb_pmi.h index 205bbe7..5e6f7a6 100644 --- a/C3d/Include/mb_pmi.h +++ b/C3d/Include/mb_pmi.h @@ -716,7 +716,7 @@ enum class MbePMIType numericalCharacteristic = 1, ///< \ru Численная характеристика. \en Numerical characteristics. technicalRequiremets = 2, ///< \ru Технические требования. Предназначены для передачи преимущественно текста вне окна модели. \en Technical requirements. Should be used to store mainly text items not to be displaied in the model view. callout = 3, ///< \ru Выносной элемент. \en Callout element. - calloutMarking = 4, ///< \ru Выносной элемент - маркировка. \en Marking callout element. + calloutMarking = 4, ///< \ru Выносной элемент - маркировка базы отсчета. \en Datum marking callout element. calloutDatum = 5, ///< \ru Выносной элемент - база. \en Datum callout element. calloutNote = 6, ///< \ru Выносной элемент - заметка. \en Note callout element. calloutCenterLine = 7, ///< \ru Выносной элемент - центральная линия. \en Center line callout element. diff --git a/C3d/Include/op_curve_parameter.h b/C3d/Include/op_curve_parameter.h index 448cf59..58ad5f2 100644 --- a/C3d/Include/op_curve_parameter.h +++ b/C3d/Include/op_curve_parameter.h @@ -1276,229 +1276,7 @@ private: bool keepLength, double accuracy, bool copySurface ); - public: - /** \brief \ru Конструктор по кривым. - \en Constructor by curves.\~ - \details \ru Конструктор по кривым. - \en Constructor by curves.\~ - \param[in] curves_ - \ru Двумерные кривые, копии которых будут свёрнуты/развёрнуты. - \en 2d curves, copies of which will be wrapped/unwrapped. \~ - \param[in] place_ - \ru Локальная система координат (ЛСК) плоскости. - \en The local coordinate system (LCS) of the plane. \~ - \param[in] xy_ - \ru Точка привязки на плоскости, которая будет привязана к uv-точке на поверхности. - \en The anchor point on the plane that will be aligned with the uv point on the parametric plane of the surface. \~ - \param[in] surface_ - \ru Поверхность для сворачивания/разворачивания. - \en The surface to wrap to/unwrap from. \~ - \param[in] uv_ - \ru Точка привязки на поверхности в параметрической плоскости "UV". Будет привязана к xy-точке на плоскости. - \en The anchor uv point on the parametric plane of the surface that will be aligned with the xy point on the plane.\~ - \param[in] angle_ - \ru Угол поворота плоскости "XY" ЛСК и параметрической плоскости "UV" поверхности. - \en The angle of rotation of the LSC "XY" plane and the parametric "UV" plane of the surface. \~ - \param[in] sense_ - \ru Совпадают ли направления оси "X" ЛСК и оси "U" поверхности. - \en Whether the directions of the "X" axis of the LSC and the "U" axis of the surface coincide? \~ - \param[in] equals_ - \ru Должны ли длины кривых на другом носителе соответствовать оригиналам. - \en Should the lengths of the curves on another medium match the originals?\~ - \param[in] accuracy_ - \ru Точность построения. - \en The accuracy. \~ - \param[in] copyCurves_ - \ru Сохранить ли в этом классе параметров копии кривых. - \en Whether to save the curves copies in this parameter class. \~ - \param[in] copySurface_ - \ru Сохранить ли в классе параметров копию поверхности. - \en Whether to save the surface copy in this parameter class. \~ - \param[in] ver_ - \ru Версия алгоритма. - \en The version. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbCurvesWrappingParams with MbSNameMaker ) - MbCurvesWrappingParams( const c3d::PlaneCurvesSPtrVector & curves_, - const MbPlacement3D & place_, - const MbCartPoint & xy_, - const MbSurface & surface_, - const MbCartPoint & uv_, - double angle_, - bool sense_, - bool equals_, - double accuracy_, - bool copyCurves_, - bool copySurface_, - VERSION ver_ ); - - - /** \brief \ru Конструктор по кривым. - \en Constructor by curves.\~ - \details \ru Конструктор по кривым. - \en Constructor by curves.\~ - \param[in] curves_ - \ru 2d кривые, копии которых будут свёрнуты/развёрнуты. Ожидается, что внутри -- 2д кривые на поверхности. - \en 2d curves, copies of which will be wrapped/unwrapped. It is expected that there are 2d curves on surface inside.\~ - \param[in] place_ - \ru Локальная система координат (ЛСК) плоскости. - \en The local coordinate system (LCS) of the plane. \~ - \param[in] xy_ - \ru Точка привязки на плоскости, которая будет привязана к uv-точке на поверхности. - \en The anchor point on the plane that will be aligned with the uv point on the parametric plane of the surface. \~ - \param[in] surface_ - \ru Поверхность для сворачивания/разворачивания. - \en The surface to wrap to/unwrap from. \~ - \param[in] uv_ - \ru Точка привязки на поверхности в параметрической плоскости "UV". Будет привязана к xy-точке на плоскости. - \en The anchor uv point on the parametric plane of the surface that will be aligned with the xy point on the plane.\~ - \param[in] angle_ - \ru Угол поворота плоскости "XY" ЛСК и параметрической плоскости "UV" поверхности. - \en The angle of rotation of the LSC "XY" plane and the parametric "UV" plane of the surface. \~ - \param[in] sense_ - \ru Совпадают ли направления оси "X" ЛСК и оси "U" поверхности. - \en Whether the directions of the "X" axis of the LSC and the "U" axis of the surface coincide? \~ - \param[in] equals_ - \ru Должны ли длины кривых на другом носителе соответствовать оригиналам. - \en Should the lengths of the curves on another medium match the originals?\~ - \param[in] accuracy_ - \ru Точность построения. - \en The accuracy. \~ - \param[in] copyCurves_ - \ru Сохранить ли в этом классе параметров копии кривых. - \en Whether to save the curves copies in this parameter class. \~ - \param[in] copySurface_ - \ru Сохранить ли в классе параметров копию поверхности. - \en Whether to save the surface copy in this parameter class. \~ - \param[in] ver_ - \ru Версия алгоритма. - \en The version. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbCurvesWrappingParams with MbSNameMaker ) - MbCurvesWrappingParams( const c3d::ConstPlaneCurvesSPtrVector & curves_, - const MbPlacement3D & place_, - const MbCartPoint & xy_, - const MbSurface & surface_, - const MbCartPoint & uv_, - double angle_, - bool sense_, - bool equals_, - double accuracy_, - bool copyCurves_, - bool copySurface_, - VERSION ver_ ); - - /** \brief \ru Конструктор по кривым. - \en Constructor by curves.\~ - \details \ru Конструктор по кривым. - \en Constructor by curves.\~ - \param[in] curves_ - \ru 3д кривые, копии которых будут свёрнуты/развёрнуты. Ожидается, что внутри -- 2д кривые на поверхности. - \en 3d curves, copies of which will be wrapped/unwrapped. It is expected that there are 2d curves on surface inside.\~ - \param[in] place_ - \ru Локальная система координат (ЛСК) плоскости. - \en The local coordinate system (LCS) of the plane. \~ - \param[in] xy_ - \ru Точка привязки на плоскости, которая будет привязана к uv-точке на поверхности. - \en The anchor point on the plane that will be aligned with the uv point on the parametric plane of the surface. \~ - \param[in] surface_ - \ru Поверхность для сворачивания/разворачивания. - \en The surface to wrap to/unwrap from. \~ - \param[in] uv_ - \ru Точка привязки на поверхности в параметрической плоскости "UV". Будет привязана к xy-точке на плоскости. - \en The anchor uv point on the parametric plane of the surface that will be aligned with the xy point on the plane.\~ - \param[in] angle_ - \ru Угол поворота плоскости "XY" ЛСК и параметрической плоскости "UV" поверхности. - \en The angle of rotation of the LSC "XY" plane and the parametric "UV" plane of the surface. \~ - \param[in] sense_ - \ru Совпадают ли направления оси "X" ЛСК и оси "U" поверхности. - \en Whether the directions of the "X" axis of the LSC and the "U" axis of the surface coincide? \~ - \param[in] equals_ - \ru Должны ли длины кривых на другом носителе соответствовать оригиналам. - \en Should the lengths of the curves on another medium match the originals?\~ - \param[in] accuracy_ - \ru Точность построения. - \en The accuracy. \~ - \param[in] copyCurves_ - \ru Сохранить ли в этом классе параметров копии кривых. - \en Whether to save the curves copies in this parameter class. \~ - \param[in] copySurface_ - \ru Сохранить ли в классе параметров копию поверхности. - \en Whether to save the surface copy in this parameter class. \~ - \param[in] ver_ - \ru Версия алгоритма. - \en The version. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbCurvesWrappingParams with MbSNameMaker ) - MbCurvesWrappingParams( const c3d::ConstSpaceCurvesSPtrVector & curves_, - const MbPlacement3D & place_, - const MbCartPoint & xy_, - const MbSurface & surface_, - const MbCartPoint & uv_, - double angle_, - bool sense_, - bool equals_, - double accuracy_, - bool copyCurves_, - bool copySurface_, - VERSION ver_ ); - - /** \brief \ru Конструктор по 1 кривой. - \en Constructor by 1 curve.\~ - \details \ru Конструктор по 1 кривой. - \en Constructor by 1 curve.\~ - \param[in] curve_ - \ru 2д кривая, копия которой будет свёрнута/развёрнута. - \en 2d curve, which copy will be wrapped/unwrapped. \~ - \param[in] place_ - \ru Локальная система координат (ЛСК) плоскости. - \en The local coordinate system (LCS) of the plane. \~ - \param[in] xy_ - \ru Точка привязки на плоскости, которая будет привязана к uv-точке на поверхности. - \en The anchor point on the plane that will be aligned with the uv point on the parametric plane of the surface. \~ - \param[in] surface_ - \ru Поверхность для сворачивания/разворачивания. - \en The surface to wrap to/unwrap from. \~ - \param[in] uv_ - \ru Точка привязки на поверхности в параметрической плоскости "UV". Будет привязана к xy-точке на плоскости. - \en The anchor uv point on the parametric plane of the surface that will be aligned with the xy point on the plane.\~ - \param[in] angle_ - \ru Угол поворота плоскости "XY" ЛСК и параметрической плоскости "UV" поверхности. - \en The angle of rotation of the LSC "XY" plane and the parametric "UV" plane of the surface. \~ - \param[in] sense_ - \ru Совпадают ли направления оси "X" ЛСК и оси "U" поверхности. - \en Whether the directions of the "X" axis of the LSC and the "U" axis of the surface coincide? \~ - \param[in] equals_ - \ru Должны ли длины кривых на другом носителе соответствовать оригиналам. - \en Should the lengths of the curves on another medium match the originals?\~ - \param[in] accuracy_ - \ru Точность построения. - \en The accuracy. \~ - \param[in] copyCurve_ - \ru Сохранить ли в этом классе параметров копию кривой. - \en Whether to save the curve copy in this parameter class. \~ - \param[in] copySurface_ - \ru Сохранить ли в классе параметров копию поверхности. - \en Whether to save the surface copy in this parameter class. \~ - \param[in] ver_ - \ru Версия алгоритма. - \en The version. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbCurvesWrappingParams with MbSNameMaker ) - MbCurvesWrappingParams( const c3d::ConstPlaneCurveSPtr & curve_, - const MbPlacement3D & place_, - const MbCartPoint & xy_, - const MbSurface & surface_, - const MbCartPoint & uv_, - double angle_, - bool sense_, - bool equals_, - double accuracy_, - bool copyCurve_, - bool copySurface_, - VERSION ver_ ); - - /** \brief \ru Конструктор по 1 кривой. - \en Constructor by 1 curve.\~ - \details \ru Конструктор по 1 кривой. - \en Constructor by 1 curve.\~ - \param[in] curve_ - \ru 3д кривая, копия которой будет свёрнута/развёрнута. Ожидается, что внутри -- 2д кривая на поверхности. - \en 3d curve, which copy will be wrapped/unwrapped. It is expected that there is 2d curve on surface inside.\~ - \param[in] place_ - \ru Локальная система координат (ЛСК) плоскости. - \en The local coordinate system (LCS) of the plane. \~ - \param[in] xy_ - \ru Точка привязки на плоскости, которая будет привязана к uv-точке на поверхности. - \en The anchor point on the plane that will be aligned with the uv point on the parametric plane of the surface. \~ - \param[in] surface_ - \ru Поверхность для сворачивания/разворачивания. - \en The surface to wrap to/unwrap from. \~ - \param[in] uv_ - \ru Точка привязки на поверхности в параметрической плоскости "UV". Будет привязана к xy-точке на плоскости. - \en The anchor uv point on the parametric plane of the surface that will be aligned with the xy point on the plane.\~ - \param[in] angle_ - \ru Угол поворота плоскости "XY" ЛСК и параметрической плоскости "UV" поверхности. - \en The angle of rotation of the LSC "XY" plane and the parametric "UV" plane of the surface. \~ - \param[in] sense_ - \ru Совпадают ли направления оси "X" ЛСК и оси "U" поверхности. - \en Whether the directions of the "X" axis of the LSC and the "U" axis of the surface coincide? \~ - \param[in] equals_ - \ru Должны ли длины кривых на другом носителе соответствовать оригиналам. - \en Should the lengths of the curves on another medium match the originals?\~ - \param[in] accuracy_ - \ru Точность построения. - \en The accuracy. \~ - \param[in] copyCurves_ - \ru Сохранить ли в этом классе параметров копии кривых. - \en Whether to save the curves copies in this parameter class. \~ - \param[in] copySurface_ - \ru Сохранить ли в классе параметров копию поверхности. - \en Whether to save the surface copy in this parameter class. \~ - \param[in] ver_ - \ru Версия алгоритма. - \en The version. \~ - \deprecated \ru Метод устарел. \en The method is deprecated. \~ - */ - DEPRECATE_DECLARE_REPLACE( MbCurvesWrappingParams with MbSNameMaker ) - MbCurvesWrappingParams( const c3d::ConstSpaceCurveSPtr & curve_, - const MbPlacement3D & place_, - const MbCartPoint & xy_, - const MbSurface & surface_, - const MbCartPoint & uv_, - double angle_, - bool sense_, - bool equals_, - double accuracy_, - bool copyCurves_, - bool copySurface_, - VERSION ver_ ); - /** \brief \ru Конструктор по двумерным кривым. \en Constructor by two-dimension curves.\~ \details \ru Конструктор по двумерным кривым. diff --git a/C3d/Include/surf_mesh_surface.h b/C3d/Include/surf_mesh_surface.h index cb43eb7..cbf1cdb 100644 --- a/C3d/Include/surf_mesh_surface.h +++ b/C3d/Include/surf_mesh_surface.h @@ -142,7 +142,7 @@ private: // \ru Последовательность точек пересечения кривых: \en Sequence of intersection points of curves: // \ru uCurves[0] и vCurves[0], uCurves[0] и vCurves[1], ... \en UCurves[0] and vCurves[0], uCurves[0] and vCurves[1], ... // \ru uCurves[1] и vCurves[0], uCurves[1] и vCurves[1], ... \en UCurves[1] and vCurves[0], uCurves[1] and vCurves[1], ... - SArray boundTwists[4];///< \ru Для границ сопряжения трансверсальные вектора и их прозводные, выраженные в СК связанной с границей. + SArray boundTwists[4];///< \ru Для границ сопряжения трансверсальные вектора и их производные, выраженные в СК связанной с границей. ///<\ ru For conjugation boundaries, transverse vectors and their derivatives, expressed in the coordinate system associated with the boundary. SArray cornerTwists; ///< \ru Множество смешанных производных (сначала по u, потом по v) в угловых узлах сетки. \en Set of mixed derivatives (at first by v, then by u) at corner grid nodes. SArray cornerRegular;///< \ru Регулярность в углах поверхности. \en Regularity in the surface corners. diff --git a/C3d/Lib/x32/Debug/c3d.lib b/C3d/Lib/x32/Debug/c3d.lib index c120e03..8ef5183 100644 Binary files a/C3d/Lib/x32/Debug/c3d.lib and b/C3d/Lib/x32/Debug/c3d.lib differ diff --git a/C3d/Lib/x32/Release/c3d.lib b/C3d/Lib/x32/Release/c3d.lib index 8c91217..cb75167 100644 Binary files a/C3d/Lib/x32/Release/c3d.lib and b/C3d/Lib/x32/Release/c3d.lib differ diff --git a/C3d/Lib/x64/Debug/c3d.lib b/C3d/Lib/x64/Debug/c3d.lib index 2018565..1d90f06 100644 Binary files a/C3d/Lib/x64/Debug/c3d.lib and b/C3d/Lib/x64/Debug/c3d.lib differ diff --git a/C3d/Lib/x64/Release/c3d.lib b/C3d/Lib/x64/Release/c3d.lib index 1d1483c..e6e716a 100644 Binary files a/C3d/Lib/x64/Release/c3d.lib and b/C3d/Lib/x64/Release/c3d.lib differ