Extern :
- C3d aggiornamento delle librerie.
This commit is contained in:
+19
-34
@@ -77,7 +77,7 @@ MATH_FUNC (bool) IsMultiShell( const MbFaceShell * shell, bool checkNesting = tr
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & parts, bool sort, c3d::IndicesVector * partIndices = C3D_NULL_PTR );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -102,7 +102,7 @@ MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & par
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts, bool sort, c3d::IndicesVector * partIndices = C3D_NULL_PTR );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -127,7 +127,7 @@ MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts,
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsSPtrVector & parts, bool sort, c3d::IndicesVector * partIndices = C3D_NULL_PTR );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsSPtrVector & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -151,15 +151,15 @@ MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsSPtrVector & pa
|
||||
template <class ShellsVector>
|
||||
size_t CreateShells( const MbFaceShell & shell, ShellsVector & parts, bool sort = true )
|
||||
{
|
||||
c3d::ShellSPtr outer( new MbFaceShell( shell ) ); // new shell on the same faces (новая оболочка с теми же гранями)
|
||||
|
||||
c3d::IndicesVector * partIndices = C3D_NULL_PTR;
|
||||
|
||||
if ( ::DetachShells( *outer, parts, sort, partIndices ) > 0 ) {
|
||||
parts.push_back( outer );
|
||||
::DetachItem( outer );
|
||||
}
|
||||
|
||||
c3d::ShellSPtr outer( new MbFaceShell( shell ) ); // new shell on the same faces (новая оболочка с теми же гранями)
|
||||
|
||||
c3d::IndicesVector * partIndices = c3d_null;
|
||||
|
||||
if ( ::DetachShells( *outer, parts, sort, partIndices ) > 0 ) {
|
||||
parts.push_back( outer );
|
||||
::DetachItem( outer );
|
||||
}
|
||||
|
||||
return parts.size();
|
||||
}
|
||||
|
||||
@@ -251,21 +251,6 @@ MATH_FUNC (bool) UnifyOwnComplanarFaces( MbFaceShell & shell,
|
||||
bool checkBaseSurfaces );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Найти и устранить общие поверхности-подложки в гранях.
|
||||
\en Find and eliminate common underlying surfaces of faces \~
|
||||
\details \ru Найти и устранить общие поверхности-подложки в гранях оболочки. \n
|
||||
\en Find and eliminate common underlying surfaces of a shell faces. \n \~
|
||||
\param[in] shell - \ru Модифицируемая оболочка.
|
||||
\en A shell to be modified. \~
|
||||
\return \ru Возвращает true, если оболочка была изменена.
|
||||
\en Returns 'true' if the shell has been modified. \~
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (bool) CheckIdenticalBaseSufaces( MbFaceShell & shell );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Захватить грани одним из способов.
|
||||
\en Capture the faces in one of proposed methods. \~
|
||||
@@ -1254,9 +1239,9 @@ MATH_FUNC (bool) FindTouchedFaces( const MbSolid & solid1,
|
||||
\en To find contacted faces of bodies. \~
|
||||
\details \ru Разбить контактирующие грани тел, выделив общие области с конечной площадью перекрытия в отдельные грани. \~
|
||||
\en To find contacted faces of bodies and build a finite overlap contacted area as faces. \~
|
||||
\param[in/out] solid1 - \ru Первое тело.
|
||||
\param[in,out] solid1 - \ru Первое тело.
|
||||
\en The first solid. \~
|
||||
\param[in/out] solid2 - \ru Второе тело.
|
||||
\param[in,out] solid2 - \ru Второе тело.
|
||||
\en The second solid. \~
|
||||
\param[in] precision - \ru Точность операции.
|
||||
\en The precision of operation. \~
|
||||
@@ -1344,13 +1329,13 @@ c3d::SolidSPtr GetTransformedSolid( c3d::SolidSPtr & solid, MbeCopyMode & copyMo
|
||||
{
|
||||
c3d::SolidSPtr resSolid( solid );
|
||||
|
||||
if ( (resSolid != NULL) && !matr.IsSingle() ) {
|
||||
if ( (resSolid != c3d_null) && !matr.IsSingle() ) {
|
||||
MbSNameMaker n( transformedMainName, MbSNameMaker::i_SideNone, 0 );
|
||||
|
||||
MbSolid * resSolidPtr = NULL;
|
||||
MbSolid * resSolidPtr = c3d_null;
|
||||
TransformValues tv( matr );
|
||||
::TransformedSolid( *solid, cm_Copy, tv, n, resSolidPtr );
|
||||
if ( resSolidPtr != NULL ) {
|
||||
if ( resSolidPtr != c3d_null ) {
|
||||
resSolid = resSolidPtr;
|
||||
copyMode = cm_Same;
|
||||
}
|
||||
@@ -1374,10 +1359,10 @@ c3d::SolidSPtr GetTransformedSolid( c3d::SolidSPtr & solid, MbeCopyMode & copyMo
|
||||
*/
|
||||
// ---
|
||||
template <class Item>
|
||||
SPtr<Item> GetTransformedItem( SPtr<Item> & item, const MbMatrix3D & matr, MbRegDuplicate * iDupReg = NULL, MbRegTransform * iTransReg = NULL )
|
||||
SPtr<Item> GetTransformedItem( SPtr<Item> & item, const MbMatrix3D & matr, MbRegDuplicate * iDupReg = c3d_null, MbRegTransform * iTransReg = c3d_null )
|
||||
{
|
||||
SPtr<Item> resItem( item );
|
||||
if ( (resItem != NULL) && !matr.IsSingle() ) {
|
||||
if ( (resItem != c3d_null) && !matr.IsSingle() ) {
|
||||
resItem = static_cast<Item *>( &item->Duplicate( iDupReg ) );
|
||||
resItem->Transform( matr, iTransReg );
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ typedef void( *SurfaceFunction )( const MbSurface & surf, // Поверхно
|
||||
MATH_FUNC( void ) MinSurfaceCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -80,7 +80,7 @@ MATH_FUNC( void ) MinSurfaceCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) MaxSurfaceCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -101,7 +101,7 @@ MATH_FUNC( void ) MaxSurfaceCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) GaussCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -122,7 +122,7 @@ MATH_FUNC( void ) GaussCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) MeanCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -143,7 +143,7 @@ MATH_FUNC( void ) MeanCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) UNormalCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -164,7 +164,7 @@ MATH_FUNC( void ) UNormalCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) VNormalCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = NULL );
|
||||
MbVector * der = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -172,8 +172,8 @@ MATH_FUNC( void ) VNormalCurvature( const MbSurface & surf,
|
||||
\en Find the points of the surface at which the selected curvature takes the largest in modulus values. \~
|
||||
\details \ru Ищутся точки, в которых выбранная кривизна принимает на поверхности наибольшее положительное и наименьшее отрицательное значение.
|
||||
\en Looks for points at which the selected curvature takes on the surface the greatest positive and least negative value. \~
|
||||
\param[in] surf - \ru Исследуемая поверхность.
|
||||
\en Test surface. \~
|
||||
\param[in] surface - \ru Исследуемая поверхность.
|
||||
\en Test surface. \~
|
||||
\param[in] func - \ru Функция расчета кривизны в точке.
|
||||
\en The function of calculating the curvature at a point. \~
|
||||
\param[out] maxNegCurv - \ru Наибольшее по модулю отрицательное значение кривизны (0, если нет такого).
|
||||
@@ -241,8 +241,8 @@ MATH_FUNC( void ) FacesMinMaxCurvature( const RPArray<MbFace> & faces,
|
||||
\en Find the points on the surface at which the major normal curvatures take the largest values in the module. \~
|
||||
\details \ru Ищутся точки на поверхности, в которых главные нормальные кривизны принимают наибольшее положительное и наименьшее отрицательное значение.
|
||||
\en Looks for points on the surface at which the major normal curvatures take the largest positive and smallest negative values. \~
|
||||
\param[in] surf - \ru Исследуемая поверхность.
|
||||
\en Test surface. \~
|
||||
\param[in] surface - \ru Исследуемая поверхность.
|
||||
\en Test surface. \~
|
||||
\param[out] maxNegCurv - \ru Наибольшее по модулю отрицательное значение кривизны (0, если нет такого).
|
||||
\en The largest in modulus value negative curvature (0, if there is no such). \~
|
||||
\param[out] maxNegLoc - \ru Точка, в которой кривизна принимает наибольшее по модулю отрицательное значение.
|
||||
@@ -321,7 +321,7 @@ MATH_FUNC( void ) FacesMinMaxCurvature( const RPArray<MbFace> & faces,
|
||||
*/
|
||||
MATH_FUNC( double ) CurveOrientedCurvature( const MbCurve3D & curve,
|
||||
double & param,
|
||||
const MbVector3D * planeNorm = NULL );
|
||||
const MbVector3D * planeNorm = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -358,10 +358,10 @@ MATH_FUNC( void ) CurveMinMaxCurvature( const MbCurve3D & curve,
|
||||
double & maxParam,
|
||||
double & minCurv,
|
||||
double & minParam,
|
||||
c3d::DoubleVector * bendPoints = NULL,
|
||||
c3d::DoubleVector * maxPoints = NULL,
|
||||
c3d::DoubleVector * minPoints = NULL,
|
||||
c3d::DoublePairsVector * rapPoints = NULL );
|
||||
c3d::DoubleVector * bendPoints = c3d_null,
|
||||
c3d::DoubleVector * maxPoints = c3d_null,
|
||||
c3d::DoubleVector * minPoints = c3d_null,
|
||||
c3d::DoublePairsVector * rapPoints = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -341,8 +341,8 @@ public:
|
||||
To fit surface use corresponding methods SegmentMesh or FitSurfaceToSegment. \n \~
|
||||
\param[in] idxSegment - \ru Индекс сегмента полигональной сетки.
|
||||
\en Index of a mesh segment. \~
|
||||
\return \ru Возвращает указатель на поверхность для сегмента, если поверхность определена, иначе - NULL.
|
||||
\en Returns pointer to segment surface if it exists, else - NULL. \~
|
||||
\return \ru Возвращает указатель на поверхность для сегмента, если поверхность определена, иначе - c3d_null.
|
||||
\en Returns pointer to segment surface if it exists, else - c3d_null. \~
|
||||
\ingroup Polygonal_Objects
|
||||
*/
|
||||
virtual const MbSurface * GetSegmentSurface( size_t idxSegment ) const = 0;
|
||||
|
||||
+12
-10
@@ -430,7 +430,7 @@ MATH_FUNC (MbCurve *) DuplicateCurve( const MbCurve & curve );
|
||||
// ---
|
||||
MATH_FUNC (MbContour *) DuplicateContour( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
MbSNameMaker * names = NULL );
|
||||
MbSNameMaker * names = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -694,12 +694,12 @@ MATH_FUNC (MbResultType) SurfaceBoundContour( const MbSurface & surface,
|
||||
or for contour pt_Contour if its first segment is of one of the listed types. \~
|
||||
\param[in] segment - \ru Изменяемая кривая.
|
||||
\en The modified curve. \~
|
||||
\param[in] p1 - \ru Новая начальная точка.
|
||||
\en A new start point. \~
|
||||
\param[in] p - \ru Новая начальная точка.
|
||||
\en A new start point. \~
|
||||
\ingroup Algorithms_2D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (bool) ChangeFirstPoint( MbCurve * segment, const MbCartPoint & p1 );
|
||||
MATH_FUNC (bool) ChangeFirstPoint( MbCurve * segment, const MbCartPoint & p );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -717,23 +717,25 @@ MATH_FUNC (bool) ChangeFirstPoint( MbCurve * segment, const MbCartPoint & p1 );
|
||||
or for contour pt_Contour if its last segment is of one of the listed types. \~
|
||||
\param[in] segment - \ru Изменяемая кривая.
|
||||
\en The modified curve. \~
|
||||
\param[in] p1 - \ru Новая начальная точка.
|
||||
\en A new start point. \~
|
||||
\param[in] p - \ru Новая начальная точка.
|
||||
\en A new start point. \~
|
||||
\ingroup Algorithms_2D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (bool) ChangeLastPoint( MbCurve * segment, const MbCartPoint & p2 );
|
||||
MATH_FUNC (bool) ChangeLastPoint( MbCurve * segment, const MbCartPoint & p );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Является ли кривая прямолинейной независимо от ее параметризации.
|
||||
\en Whether the curve is like straight-line regardless of its parameterisation. \~
|
||||
\en Whether the curve is like straight-line regardless of its parameterization. \~
|
||||
\details \ru Является ли кривая прямолинейной независимо от ее параметризации.\n
|
||||
\en Whether the curve is like straight-line regardless of its parameterisation. \~
|
||||
\en Whether the curve is like straight-line regardless of its parameterization. \~
|
||||
\param[in] curve - \ru Кривая.
|
||||
\en Curve. \~
|
||||
\param[in] eps - \ru Точность.
|
||||
\en Accuracy. \~
|
||||
\return \ru Возвращает true, если кривая геометрически прямолинейна.
|
||||
\en Returns true, if a curve is geometrically straight. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -758,7 +760,7 @@ MATH_FUNC (bool) IsLikeStraightLine( const MbCurve & curve, double eps );
|
||||
// ---
|
||||
MATH_FUNC( MbContour * ) DeleteDegenerateSegments( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
MbSNameMaker * names = NULL );
|
||||
MbSNameMaker * names = c3d_null );
|
||||
|
||||
|
||||
#endif // __ACTION_CURVE_H
|
||||
|
||||
@@ -279,11 +279,11 @@ MATH_FUNC (MbResultType) SpiralCurve( const MbPlacement3D & place,
|
||||
\details \ru Создать спираль. \n
|
||||
Если spiralAxis == true, то lawCurve - определяет плоскую ось спирали. \n
|
||||
Если spiralAxis == false, то lawCurve - определяет закон изменения радиуса спирали. \n
|
||||
Если lawCurve == NULL, то строится коническая спираль с углом конусности angle. \n
|
||||
Если lawCurve == c3d_null, то строится коническая спираль с углом конусности angle. \n
|
||||
\en Create a spiral. \n
|
||||
If 'spiralAxis' == true, 'lawCurve' determines the axis of a spiral. \n
|
||||
If spiralAxis == false, then 'lawCurve' - determines a radius law. \n
|
||||
If lawCurve == NULL, a conical spiral is created with the specified taper angle. \n \~
|
||||
If lawCurve == c3d_null, a conical spiral is created with the specified taper angle. \n \~
|
||||
\param[in] point0 - \ru Начало локальной системы координат (ЛСК).
|
||||
\en The origin of local coordinate system (LCS). \~
|
||||
\param[in] point1 - \ru Точка на оси Z ЛСК.
|
||||
@@ -640,7 +640,7 @@ MATH_FUNC (MbResultType) CreatePolyArcCurve3D( const MbCurve3D & curve,
|
||||
MATH_FUNC (bool) GetSpaceCurve( const MbItem & item,
|
||||
bool keepPlacement,
|
||||
SPtr<MbCurve3D> & curve0,
|
||||
std::vector< SPtr<MbCurve3D> > * curves = NULL );
|
||||
std::vector< SPtr<MbCurve3D> > * curves = c3d_null );
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
@@ -662,9 +662,9 @@ MATH_FUNC (bool) GetSpaceCurve( const MbItem & item,
|
||||
\param[in] deviationAngle - \ru Параметру точности.
|
||||
\en The parameter of accuracy. \~
|
||||
\return \ru Возвращает указатель на построенную кривую с нулевум счетчиком ссылок \n
|
||||
или NULL, если не удалось построить развертку для заданных параметров.
|
||||
или c3d_null, если не удалось построить развертку для заданных параметров.
|
||||
\en The pointer to the constructed curve with zero counter of references\n
|
||||
return NULL, if unwrap curve can't be construvted for this parameters
|
||||
return c3d_null, if unwrap curve can't be construvted for this parameters
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -719,6 +719,8 @@ MATH_FUNC (MbResultType) EvolutionSection( const MbSweptData & generCurves,
|
||||
\en Curve. \~
|
||||
\param[in] eps - \ru Точность.
|
||||
\en Accuracy. \~
|
||||
\return \ru Возвращает true, если кривая геометрически прямолинейна.
|
||||
\en Returns true, if a curve is geometrically straight. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -1256,11 +1258,14 @@ MATH_FUNC( MbResultType ) AddKnotNurbs( MbNurbs3D * curve,
|
||||
\en Insert a knot into the onesegmented NURBS curve.\n
|
||||
The output parameter of the method is a NURBS curve of first segment. \~
|
||||
|
||||
\param[in] curve - \ru NURBS кривая в произвольном формате. \en NURBS curve in any format. \~
|
||||
\param[in] data - \ru Данные построения кривой. \en The curve construction data. \~
|
||||
\param[out] result - \ru NURBS Кривая. \en NURBS curve. \~
|
||||
\return \ru Возвращает значение результата операции. \en Returns operation result value.
|
||||
|
||||
\param[in] curve - \ru NURBS кривая в произвольном формате.
|
||||
\en NURBS curve in any format. \~
|
||||
\param[in] data - \ru Данные построения кривой.
|
||||
\en The curve construction data. \~
|
||||
\param[out] resCurve - \ru NURBS Кривая.
|
||||
\en NURBS curve. \~
|
||||
\return \ru Возвращает значение результата операции.
|
||||
\en Returns operation result value.
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
MATH_FUNC( MbResultType ) ExtractExtrapolFromSegment( MbNurbs3D * curve,
|
||||
@@ -1310,7 +1315,7 @@ MATH_FUNC(MbResultType) ConicNurbs( MbNurbs3D * curve,
|
||||
\en The curve length evaluation. \~
|
||||
\param[in] accuracy - \ru Относительная точность рассчёта длины кривой.
|
||||
\en Relative accuracy calculate the length of a curve. \~
|
||||
\param[in/out] maxCurvatre - \ru Максимально допустимая кривизна кривой.
|
||||
\param[in,out] maxCurvatre - \ru Максимально допустимая кривизна кривой.
|
||||
\en The maximum curvature of the resulting curve. \~
|
||||
\param[out] result - \ru Построенная кривая.
|
||||
\en The resulting curve. \~
|
||||
|
||||
@@ -61,8 +61,8 @@ MATH_FUNC (void) CalculatePolygon( const MbCurve & curve,
|
||||
локальной системы координат.
|
||||
\en Create a polygonal object for two-dimensional object in the XOY-plane
|
||||
of the local coordinate system. \~
|
||||
\param[in] obj - \ru Двумерный объект (если NULL, то объект не создаётся).
|
||||
\en Two-dimensional object (if NULL, object isn't created). \~
|
||||
\param[in] obj - \ru Двумерный объект (если c3d_null, то объект не создаётся).
|
||||
\en Two-dimensional object (if c3d_null, object isn't created). \~
|
||||
\param[in] plane - \ru Локальная система координат.
|
||||
\en A local coordinate system. \~
|
||||
\param[in] sag - \ru Максимальное отклонение полигонального объекта от оригинала по прогибу.
|
||||
|
||||
@@ -184,7 +184,7 @@ MATH_FUNC (MbResultType) OffsetPhantom( const MbSolid & solid,
|
||||
const SweptValues & params,
|
||||
const MbSNameMaker & operNames,
|
||||
MbFaceShell *& result,
|
||||
size_t * hpShellFaceInd = NULL ); // \ru Номер грани в исходной оболочки для построения хот-точки); \en The face number in the initial shell for a hot-point creation);
|
||||
size_t * hpShellFaceInd = c3d_null ); // \ru Номер грани в исходной оболочки для построения хот-точки); \en The face number in the initial shell for a hot-point creation);
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -261,7 +261,7 @@ MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & sol
|
||||
const SmoothValues & params,
|
||||
RPArray<MbPositionData> & result,
|
||||
double edgeParam = 0.5,
|
||||
const MbCurveEdge * dimensionEdge = NULL );
|
||||
const MbCurveEdge * dimensionEdge = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -293,7 +293,7 @@ MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & sol
|
||||
const SmoothValues & params,
|
||||
RPArray<MbPositionData> & result,
|
||||
double edgeParam = 0.5,
|
||||
const MbCurveEdge * dimensionEdge = NULL );
|
||||
const MbCurveEdge * dimensionEdge = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -303,15 +303,18 @@ MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & sol
|
||||
\en A function creation for behavior of selected curve coordinate with curve parameter. \n
|
||||
\param[in] curve - \ru Кривая.
|
||||
\en The curve. \~
|
||||
\param[in] coordinate - \ru Номер координаты пространства.
|
||||
\en The number of curve coordinate. \~
|
||||
\param[in] place - \ru Локальная система координат, в которой используется кривая.
|
||||
\en The local coordinate system that uses the curve. \~
|
||||
\param[in] coordinate - \ru Номер (0,1,2) координаты кривой в локальной системе координат для построения функции.
|
||||
\en The number (0,1,2) of the curve coordinate in the local coordinate system for constructing the function. \~
|
||||
\return \ru Возвращает построенную функцию.
|
||||
\en Returns the created function. \~
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbFunction *) CreateFunction( const MbCurve3D & curve,
|
||||
size_t coordinate );
|
||||
const MbPlacement3D & place,
|
||||
size_t coordinate );
|
||||
|
||||
|
||||
#endif // __ACTION_PHANTOM_H
|
||||
|
||||
@@ -39,8 +39,8 @@ class MATH_CLASS MbFaceShell;
|
||||
\en Number of elements in the array. \~
|
||||
\param[out] res - \ru Результат операции.
|
||||
\en The operation result. \~
|
||||
\return \ru Возвращает массив элементов, если он создан, или NULL в противном случае.
|
||||
\en Returns an array of elements if it has been created, otherwise returns NULL. \~
|
||||
\return \ru Возвращает массив элементов, если он создан, или c3d_null в противном случае.
|
||||
\en Returns an array of elements if it has been created, otherwise returns c3d_null. \~
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
@@ -48,11 +48,11 @@ template <class Type>
|
||||
inline SArray<Type> * CreateArray( size_t cnt, MbResultType & res )
|
||||
{
|
||||
SArray<Type> * arr = new SArray<Type> ( cnt, 1 );
|
||||
if ( arr != NULL && arr->GetAddr() == NULL ) {
|
||||
if ( arr != c3d_null && arr->GetAddr() == c3d_null ) {
|
||||
delete arr;
|
||||
arr = NULL;
|
||||
arr = c3d_null;
|
||||
}
|
||||
if ( arr == NULL )
|
||||
if ( arr == c3d_null )
|
||||
res = rt_TooManyPoints;
|
||||
|
||||
return arr;
|
||||
@@ -79,7 +79,7 @@ template <class Type>
|
||||
inline bool ReserveArray( SArray<Type> & arr, size_t n, MbResultType & res )
|
||||
{
|
||||
arr.Reserve( n );
|
||||
if ( arr.GetAddr() == NULL ) {
|
||||
if ( arr.GetAddr() == c3d_null ) {
|
||||
res = rt_TooManyPoints;
|
||||
return false;
|
||||
}
|
||||
@@ -107,7 +107,7 @@ template <class Type>
|
||||
inline bool AddItem( SArray<Type> & arr, const Type & item, MbResultType & res )
|
||||
{
|
||||
arr.Add( item );
|
||||
if ( arr.GetAddr() == NULL ) {
|
||||
if ( arr.GetAddr() == c3d_null ) {
|
||||
res = rt_TooManyPoints;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -613,7 +613,7 @@ MATH_FUNC (MbResultType) UnbendSheetSolid( MbSolid & sol
|
||||
const MbCartPoint & fixedPoint,
|
||||
const MbSNameMaker & nameMaker,
|
||||
MbSolid *& result,
|
||||
RPArray<MbContour3D> * ribContours = NULL );
|
||||
RPArray<MbContour3D> * ribContours = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -958,6 +958,51 @@ MATH_FUNC (MbResultType) CreateStampParts( const MbPlacement3D & placement,
|
||||
MbSolid *& partToSubtract );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создание составляющих частей штамповки одного тела другим телом.
|
||||
\en Stamping with a tool solid (punch or die). \~
|
||||
\details \ru Штамповка строится на основе произвольного тела-инструмента и заданной плоской листовой грани.
|
||||
Штамповка подрезается границами листовой грани, которую пересекает тело.\n
|
||||
\en The stamping is created based on a tool body and a flat sheet face.
|
||||
The stamping is trimmed by the boundary of the sheet face which contains the sketch.\n \~
|
||||
\param[in] solid - \ru Исходное листовое тело.
|
||||
\en The source sheet solid. \~
|
||||
\param[in] sameShell - \ru Флаг удаления оболочки исходного тела.
|
||||
\en Whether to delete the shell of the source solid. \~
|
||||
\param[in] targetFace - \ru Грань штамповки.
|
||||
\en The face for stamping. \~
|
||||
\param[in] toolSolid - \ru Оболочка тела-инструмента.
|
||||
\en A shell of tool solid. \~
|
||||
\param[in] sameShellTool - \ru Флаг удаления оболочки тела-инструмента.
|
||||
\en Whether to delete the shell of the tool solid. \~
|
||||
\param[in] punch - \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] partToAdd - \ru Добавляемая часть штамповки.
|
||||
\en Added part of the stamp. \~
|
||||
\param[out] partToSubtract - \ru Вычитаемая часть штамповки.
|
||||
\en Deductible part of the stamp. \~
|
||||
\ingroup Sheet_Metal_Modeling
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC(MbResultType) CreateStampWithToolSolidParts( MbSolid & solid,
|
||||
MbeCopyMode sameShell,
|
||||
const MbFace & targetFace,
|
||||
MbSolid & toolSolid,
|
||||
MbeCopyMode sameShellTool,
|
||||
bool punch,
|
||||
const RPArray<MbFace>& pierceFaces,
|
||||
const MbToolStampingValues & params,
|
||||
const MbSNameMaker & nameMaker,
|
||||
MbSolid *& partToAdd,
|
||||
MbSolid *& partToSubtract );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Штамповка.
|
||||
\en Stamping. \~
|
||||
@@ -1176,6 +1221,7 @@ MATH_FUNC (MbResultType) CreateBeadParts( const MbFace * face,
|
||||
//------------------------------------------------------------------------------
|
||||
// устаревшая
|
||||
// ---
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC (MbResultType) CreateBeadParts( const MbPlacement3D & placement,
|
||||
const RPArray<MbContour> & contours,
|
||||
const SArray<MbCartPoint> & centers,
|
||||
@@ -1230,6 +1276,7 @@ MATH_FUNC (MbResultType) CreateBead( MbSolid & solid,
|
||||
|
||||
|
||||
// устаревшая
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC (MbResultType) CreateBead( MbSolid & solid,
|
||||
MbeCopyMode sameShell,
|
||||
const MbFace & face,
|
||||
@@ -1281,6 +1328,7 @@ MATH_FUNC (MbResultType) CreateJalousieParts( const MbFace * fac
|
||||
//------------------------------------------------------------------------------
|
||||
// устаревшая
|
||||
// ---
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC (MbResultType) CreateJalousieParts( const MbPlacement3D & placement,
|
||||
const RPArray<MbLineSegment> & segments,
|
||||
const MbJalousieValues & params,
|
||||
@@ -2369,7 +2417,7 @@ MATH_FUNC (MbResultType) RemoveOperationResult( MbSolid & solid,
|
||||
\en The initial face for sheet metall solid building. \~
|
||||
\param[in] sense - \ru Направление придания толщины относительно нормали исходной грани.
|
||||
\en Direction of sheet metal building relative to initial face normal. \~
|
||||
\param[in/out] parameters - \ru Параметры операции.
|
||||
\param[in,out] parameters - \ru Параметры операции.
|
||||
\en Operation parameters. \~
|
||||
\param[in] nameMaker - \ru Именователь.
|
||||
\en An object for naming the new objects. \~
|
||||
|
||||
+14
-14
@@ -263,17 +263,17 @@ MATH_FUNC (MbResultType) MeshShell( MeshSurfaceValues & pars,
|
||||
\ingroup Shell_Modeling
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) TruncateShell( MbSolid & initSolid,
|
||||
SArray<size_t> & selIndices,
|
||||
MATH_FUNC (MbResultType) TruncateShell( MbSolid & initSolid,
|
||||
SArray<size_t> & selIndices,
|
||||
MbeCopyMode initCopyMode,
|
||||
const MbSNameMaker & operNames,
|
||||
const MbSNameMaker & operNames,
|
||||
RPArray<MbSpaceItem> & truncatingItems,
|
||||
SArray<bool> & truncatingOrients,
|
||||
SArray<bool> & truncatingOrients,
|
||||
bool truncatingSplitMode,
|
||||
MbeCopyMode truncatingCopyMode,
|
||||
const MbMergingFlags & mergeFlags,
|
||||
MbSolid *& result,
|
||||
MbPlacement3D *& resultPlace );
|
||||
const MbMergingFlags & mergeFlags,
|
||||
MbSolid *& result,
|
||||
MbPlacement3D *& resultPlace );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -652,11 +652,11 @@ MATH_FUNC (MbResultType) SurfaceShell( const MbSurface & surface,
|
||||
/** \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] shell - \ru Исходное тело.
|
||||
\en The solid\~
|
||||
\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 \~
|
||||
\en Methods of transferring data while copying shells. \~
|
||||
\param[in] eye - \ru Направление взгляда.
|
||||
\en Eye's direction. \~
|
||||
\param[in] operNames - \ru Именователь с версией.
|
||||
@@ -859,9 +859,9 @@ MATH_FUNC (MbResultType) RectifyFace( const MbFace & face,
|
||||
\ingroup Shell_Modeling
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) OctaLattice( const MbCartPoint3D & point_0,
|
||||
const MbCartPoint3D & point_1,
|
||||
const MbCartPoint3D & point_2,
|
||||
MATH_FUNC (MbResultType) OctaLattice( const MbCartPoint3D & point0,
|
||||
const MbCartPoint3D & point1,
|
||||
const MbCartPoint3D & point2,
|
||||
double xRadius,
|
||||
double yRadius,
|
||||
double zRadius,
|
||||
|
||||
+19
-19
@@ -180,7 +180,7 @@ MATH_FUNC (MbResultType) MeshSolid( const MbMesh & mesh,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * prog = NULL );
|
||||
IProgressIndicator * prog = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -202,7 +202,7 @@ MATH_FUNC (MbResultType) MeshSolid( const MbMesh & mesh,
|
||||
MATH_FUNC (MbResultType) GridSolid( const MbGrid & grid,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * prog = NULL );
|
||||
IProgressIndicator * prog = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -224,7 +224,7 @@ MATH_FUNC (MbResultType) GridSolid( const MbGrid & grid,
|
||||
MATH_FUNC (MbResultType) CollectionSolid( const MbCollection & grid,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * progBar = NULL );
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -611,8 +611,8 @@ MATH_FUNC (MbResultType) EvolutionSolid( const MbSweptData & sweptData
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть NULL).
|
||||
\en A guide curve (can be NULL). \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] ps - \ru Множество точек на образующих контурах, задающий их начальные точки.
|
||||
@@ -647,8 +647,8 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть NULL).
|
||||
\en A guide curve (can be NULL). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров.
|
||||
@@ -668,7 +668,7 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
RPArray<MbContour> & c,
|
||||
const MbCurve3D * spine, // осевая линия может быть NULL
|
||||
const MbCurve3D * spine, // осевая линия может быть c3d_null
|
||||
const LoftedValues & params,
|
||||
RPArray<MbCurve3D> * guideCurves,
|
||||
SArray<MbCartPoint3D> * ps,
|
||||
@@ -686,8 +686,8 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
\en An array of surfaces of generating contours. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть NULL).
|
||||
\en A guide curve (can be NULL). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров.
|
||||
@@ -707,7 +707,7 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) LoftedSolid( RPArray<MbSurface> & surfs,
|
||||
RPArray<MbContour> & c,
|
||||
const MbCurve3D * spine, // осевая линия может быть NULL
|
||||
const MbCurve3D * spine, // осевая линия может быть c3d_null
|
||||
const LoftedValues & params,
|
||||
RPArray<MbCurve3D> * guideCurves,
|
||||
SArray<MbCartPoint3D> * ps,
|
||||
@@ -942,8 +942,8 @@ MATH_FUNC(MbResultType) EvolutionResult( MbSolid & solid,
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть NULL).
|
||||
\en A guide curve (can be NULL). \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] oType - \ru Тип булевой операции.
|
||||
@@ -995,8 +995,8 @@ MATH_FUNC(MbResultType) LoftedResult( MbSolid & solid,
|
||||
\en An array of generating contours surfaces. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть NULL).
|
||||
\en A guide curve (can be NULL). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] oType - \ru Тип булевой операции.
|
||||
@@ -1962,7 +1962,7 @@ MATH_FUNC (MbResultType) UnionResult( MbSolid * solid,
|
||||
const MbSNameMaker & names,
|
||||
bool isArray,
|
||||
MbSolid *& result,
|
||||
RPArray<MbSolid> * notGluedSolids = NULL );
|
||||
RPArray<MbSolid> * notGluedSolids = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -2005,7 +2005,7 @@ MATH_FUNC (MbResultType) UnionSolid( RPArray<MbSolid> & solids,
|
||||
const MbSNameMaker & names,
|
||||
bool isArray,
|
||||
MbSolid *& result,
|
||||
RPArray<MbSolid> * notGluedSolids = NULL );
|
||||
RPArray<MbSolid> * notGluedSolids = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -2365,8 +2365,8 @@ MATH_FUNC (MbResultType) ThinSolid( const MbSurface & surface,
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать отверстие, карман, фигурный паз в теле.
|
||||
\en Create a hole, a pocket, a groove in the solid. \~
|
||||
\details \ru Cоздать отверстие, карман, фигурный паз в теле или создать cверло, бобышку, если solid==NULL. \n
|
||||
\en Create a hole, a pocket, a groove in the solid or create a drill, a boss if 'solid' == NULL. \n \~
|
||||
\details \ru Cоздать отверстие, карман, фигурный паз в теле или создать cверло, бобышку, если solid==c3d_null. \n
|
||||
\en Create a hole, a pocket, a groove in the solid or create a drill, a boss if 'solid' == c3d_null. \n \~
|
||||
\param[in] solid - \ru Исходное тело.
|
||||
\en The source solid. \~
|
||||
\param[in] sameShell - \ru Режим копирования тела.
|
||||
|
||||
@@ -784,8 +784,8 @@ MATH_FUNC (MbResultType) MiddlePlaces( const MbCurve3D & curve1
|
||||
\en The first guide curve. \~
|
||||
\param[in] g2 - \ru Вторая направляющая кривая (g1==g2 совпадает с первой при cs_Round).
|
||||
\en The second guide curve (g1==g2 the same first guide for st_Round). \~
|
||||
\param[in] c0 - \ru Дополнительная направляющая кривая (может быть NULL).
|
||||
\en The additional guide curve (may be NULL). \~
|
||||
\param[in] c0 - \ru Дополнительная направляющая кривая (может быть c3d_null).
|
||||
\en The additional guide curve (may be c3d_null). \~
|
||||
\param[in] form - \ru Форма сечения поверхности (0, 1, 2, 3).
|
||||
\en The form of the surface section (0, 1, 2, 3). \~
|
||||
\param[in] sense - \ru Направление нормали поверхности направляющей кривой (для guide1==guide2).
|
||||
|
||||
@@ -172,8 +172,8 @@ MATH_FUNC (MbResultType) OffsetCurve( const MbCurve3D & curve,
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать проекцию кривой на поверхность.
|
||||
\en Create a curve projection onto the surface. \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть NULL). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be NULL). \n \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть c3d_null). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be c3d_null). \n \~
|
||||
\param[in] surface - \ru Поверхность для проецирования.
|
||||
\en The surface to project onto. \~
|
||||
\param[in] curve - \ru Проецируемая кривая.
|
||||
@@ -402,7 +402,7 @@ MATH_FUNC (MbResultType) SilhouetteCurve( const MbFace & face,
|
||||
\en The axis of lathe section. \~
|
||||
\param[in] removeOnSurfaceBounds - \ru Удалить линии очерка, совпадающие с границами поверхности.
|
||||
\en Remove the isocline curves coincident with the surface bounds. \~
|
||||
\param[out] result - \ru Выходной массив линий очерка.
|
||||
\param[out] curves - \ru Выходной массив линий очерка.
|
||||
\en The output array of isocline curves. \~
|
||||
\param[in] version - \ru Версия построения.
|
||||
\en The version. \~
|
||||
@@ -686,13 +686,13 @@ MATH_FUNC( MbResultType ) IntersectionCurve( const MbSurface & surf1, bool ext1,
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
//---
|
||||
MATH_FUNC (MbResultType) SpaceSplineThrough( const SArray<MbCartPoint3D> & points,
|
||||
MbeSplineParamType paramType,
|
||||
size_t degree,
|
||||
bool closed,
|
||||
RPArray< MbPntMatingData<MbVector3D> > & transitions,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbWireFrame *& result );
|
||||
MATH_FUNC (MbResultType) SpaceSplineThrough( const SArray<MbCartPoint3D> & points,
|
||||
MbeSplineParamType paramType,
|
||||
size_t degree,
|
||||
bool closed,
|
||||
RPArray<c3d::PntMatingData3D> & transitions,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbWireFrame *& result );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -724,14 +724,14 @@ MATH_FUNC (MbResultType) SpaceSplineThrough( const SArray<MbCartPoint3D> & point
|
||||
*/
|
||||
//---
|
||||
MATH_FUNC (MbResultType) SpaceSplineBy( const SArray<MbCartPoint3D> & points,
|
||||
size_t degree,
|
||||
bool closed,
|
||||
size_t degree,
|
||||
bool closed,
|
||||
const SArray<double> * weights,
|
||||
const SArray<double> * knots,
|
||||
MbPntMatingData<MbVector3D> * begData,
|
||||
MbPntMatingData<MbVector3D> * endData,
|
||||
c3d::PntMatingData3D * begData,
|
||||
c3d::PntMatingData3D * endData,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbWireFrame *& result );
|
||||
MbWireFrame *& result );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -776,14 +776,14 @@ MATH_FUNC (MbResultType) SpaceSplineBy( const SArray<MbCartPoint3D> & points,
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
//---
|
||||
MATH_FUNC (MbResultType) SurfaceSpline( const MbSurface & surface,
|
||||
bool throughPoints,
|
||||
SArray<MbCartPoint> & paramPnts,
|
||||
SArray<double> & paramWts,
|
||||
bool paramClosed,
|
||||
RPArray< MbPntMatingData<MbVector3D> > & spaceTransitions,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbWireFrame *& result );
|
||||
MATH_FUNC (MbResultType) SurfaceSpline( const MbSurface & surface,
|
||||
bool throughPoints,
|
||||
SArray<MbCartPoint> & paramPnts,
|
||||
SArray<double> & paramWts,
|
||||
bool paramClosed,
|
||||
RPArray<c3d::PntMatingData3D> & spaceTransitions,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbWireFrame *& result );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -936,7 +936,7 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
что начало кривой сопряжения будет находится в точке с параметором t1,
|
||||
t1 и t2 - параметры кривых curve1 и curve2, в соответствующих точках которых начинается и заканчивается скругление. \n
|
||||
Параметр sense - прямое или обратное направление кривой скругления. \n
|
||||
Кривая filletCurve - это кривая сопряжения, дуга (когда surface == NULL) или кривая на поверхности цилиндра surface. \n
|
||||
Кривая filletCurve - это кривая сопряжения, дуга (когда surface == c3d_null) или кривая на поверхности цилиндра surface. \n
|
||||
Поверхность surface - это цилиндрическая поверхность, на которой строится кривая сопряжения в общем случае.
|
||||
Для управления жизненным циклом поверхномти следует миспользовать методы ::AddRefItem(surface) и ::ReleaseItem(surface). \n
|
||||
\en Create a fillet curve for curves. \n
|
||||
@@ -952,22 +952,22 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
that the fillet curve start is at the point with parameter t1,
|
||||
t1 and t2 are parameters of curves 'curve1' and 'curve2' which correspond to the start point and the end point of the fillet. \n
|
||||
Parameter 'sense' determines forward or backward orientation of the fillet curve. \n
|
||||
Curve filletCurve is a fillet curve, an arc (when 'surface' == NULL) or a curve on a cylindric surface 'surface'. \n
|
||||
Curve filletCurve is a fillet curve, an arc (when 'surface' == c3d_null) or a curve on a cylindric surface 'surface'. \n
|
||||
Surface 'surface' is a cylindric surface on which the fillet curve is constructed in general case.
|
||||
Use ::AddRefItem(surface) and ::ReleaseItem(surface) methods to manage the surface lifecycle. \n \~
|
||||
\param[in] curve1 - \ru Соединяемая кривая 1.
|
||||
\en A curve 1 to be connected. \~
|
||||
\param[in/out] t1 - \ru Параметр точки на кривой 1 соединения с кривой соединения.
|
||||
\param[in,out] t1 - \ru Параметр точки на кривой 1 соединения с кривой соединения.
|
||||
\en A point parameter on curve 1 of connection with fillet curve. \~
|
||||
\param[out] w1 - \ru Параметр края на кривой 1.
|
||||
\en The parameter of curve 1 end point. \~
|
||||
\param[in] curve2 - \ru Соединяемая кривая 2.
|
||||
\en A curve 2 to be connected. \~
|
||||
\param[in/out] t2 - \ru Параметр точки на кривой 2 соединения с кривой соединения.
|
||||
\param[in,out] t2 - \ru Параметр точки на кривой 2 соединения с кривой соединения.
|
||||
\en A point parameter on curve 2 of connection with fillet curve. \~
|
||||
\param[out] w2 - \ru Параметр края на кривой 2.
|
||||
\en The parameter of curve 2 end point. \~
|
||||
\param[in/out] radius - \ru Радиус дуги или цилиндра.
|
||||
\param[in,out] radius - \ru Радиус дуги или цилиндра.
|
||||
\en The radius of an arc or a cylinder. \~
|
||||
\param[in] sense - \ru Прямое (true) или обратное (false) направление кривой скругления.
|
||||
\en The forward (true) or the backward (false) direction of the fillet curve. \~
|
||||
@@ -977,8 +977,8 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
\en The fillet type. \~
|
||||
\param[in] names - \ru Именователь кривых каркаса.
|
||||
\en An object defining the frame curves names. \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён NULL).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be NULL). \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён c3d_null).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be c3d_null). \~
|
||||
\param[out] result - \ru Каркас с построенными кривыми.
|
||||
\en The frame with the constructed curves. \~
|
||||
\return \ru Возвращает код результата операции.
|
||||
|
||||
@@ -464,7 +464,7 @@ bool IsMonotonic( const TypeVector & items, bool isAscending, bool allowEqual =
|
||||
isOk = true;
|
||||
|
||||
if ( allowEqual ) {
|
||||
for ( size_t k = 1; k < cnt; k++ ) {
|
||||
for ( size_t k = 1; k < cnt; ++k ) {
|
||||
if ( isAscending && items[k] < items[k-1] ) {
|
||||
isOk = false;
|
||||
break;
|
||||
@@ -476,7 +476,7 @@ bool IsMonotonic( const TypeVector & items, bool isAscending, bool allowEqual =
|
||||
}
|
||||
}
|
||||
else {
|
||||
for ( size_t k = 1; k < cnt; k++ ) {
|
||||
for ( size_t k = 1; k < cnt; ++k ) {
|
||||
if ( isAscending && items[k] <= items[k-1] ) {
|
||||
isOk = false;
|
||||
break;
|
||||
@@ -614,7 +614,7 @@ bool IsPlanar( const SpacePointsVector & pnts, MbPlacement3D * place, double mEp
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( isPlanar && place != NULL )
|
||||
if ( isPlanar && place != c3d_null )
|
||||
place->Init( wrkPlace );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,8 +92,8 @@ MATH_FUNC (MbeState) DeleteCurvePart( const MbCartPoint & p1,
|
||||
\en The point indicating the piece of a curve to be kept. \~
|
||||
\param[in, out] curve - \ru Изменяемая кривая.
|
||||
\en The curve to be modified. \~
|
||||
\param[in, out] part2 - \ru Всегда NULL.
|
||||
\en This value is always NULL. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after its modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -124,8 +124,8 @@ MATH_FUNC (MbeState) TrimmCurvePart( List<MbCurve> & curveList,
|
||||
\en The point indicating the piece of a closed curve to be kept \~
|
||||
\param[in, out] curve - \ru Изменяемая кривая.
|
||||
\en The curve to be modified. \~
|
||||
\param[in, out] part2 - \ru Всегда NULL.
|
||||
\en This value is always NULL. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after its modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -155,8 +155,8 @@ MATH_FUNC (MbeState) TrimmCurvePart( const MbCartPoint & p1,
|
||||
\en Boundary curve for justification. \~
|
||||
\param[in] pnt - \ru Точка для выбора нужной части кривой.
|
||||
\en The point for selecting the piece of a curve. \~
|
||||
\param[in, out] part2 - \ru Всегда NULL.
|
||||
\en This value is always NULL. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -222,8 +222,8 @@ MATH_FUNC (MbeState) BreakByClosedCurves( MbCurve & curve,
|
||||
const RPArray<const MbCurve> & limits,
|
||||
bool inside,
|
||||
PArray<MbCurve> & part2,
|
||||
SArray<MbCrossPoint> * cross = NULL,
|
||||
bool * isEqualCurve = NULL,
|
||||
SArray<MbCrossPoint> * cross = c3d_null,
|
||||
bool * isEqualCurve = c3d_null,
|
||||
bool cutOnCurve = false );
|
||||
|
||||
|
||||
|
||||
@@ -440,7 +440,7 @@ MATH_FUNC (MbeProcessState) MinMaxDistances( const MbSurface & surface1,
|
||||
MbMinMaxSurfDists & allResults,
|
||||
MbMinMaxSurfDists & minResults,
|
||||
MbMinMaxSurfDists & maxResults,
|
||||
IProgressIndicator * indicator = NULL );
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
#endif // __ALG_DIMENSION_H
|
||||
|
||||
@@ -1028,7 +1028,7 @@ void DrawVertexEdges( const Vertex * vertex, int vR, int vG, int vB,
|
||||
MbStepData stepData( ist_SpaceStep, Math::visualSag );
|
||||
MbFormNote note(true, false);
|
||||
for ( size_t k = 0, cnt = edges.size(); k < cnt; ++k ) {
|
||||
if ( edges[k] != NULL ) {
|
||||
if ( edges[k] != c3d_null ) {
|
||||
edges[k]->GetCurve().CalculateMesh( stepData, note, edgeMesh );
|
||||
DrawGI::DrawMesh( &edgeMesh, TRGB_WHITE );
|
||||
DrawGI::DrawMesh( &edgeMesh, eR, eG, eB );
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#define EMPTY_STR StrData<const TCHAR *>( NULL ) ///< \ru Создание пустой строки \en Creation of an empty string
|
||||
#define EMPTY_STR StrData<const TCHAR *>( c3d_null ) ///< \ru Создание пустой строки \en Creation of an empty string
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -279,14 +279,14 @@ MATH_FUNC (ProgressBarWrapper *) CreateProgressBar( IProgressIndicator * progInd
|
||||
\en The wrapper of the execution progress indicator. \~
|
||||
\param[in] msg - \ru Данные о строке.
|
||||
\en Data of a string \~
|
||||
\return \ru true, если progBar != NULL и удалось задать имя процесса.
|
||||
\return \ru true, если progBar != c3d_null и удалось задать имя процесса.
|
||||
\en true if 'progBar' is not null and the process name is successfully set. \~
|
||||
\ingroup Base_Items
|
||||
*/
|
||||
// ---
|
||||
inline bool SetProgressBarName( ProgressBarWrapper * progBar, IStrData & msg )
|
||||
{
|
||||
if ( progBar != NULL )
|
||||
if ( progBar != c3d_null )
|
||||
return progBar->SetName( msg );
|
||||
return false;
|
||||
}
|
||||
@@ -308,7 +308,7 @@ inline bool SetProgressBarName( ProgressBarWrapper * progBar, IStrData & msg )
|
||||
// ---
|
||||
inline bool SetProgressBarValue( ProgressBarWrapper * progBar, size_t v )
|
||||
{
|
||||
if ( progBar != NULL && !progBar->IsCancel() )
|
||||
if ( progBar != c3d_null && !progBar->IsCancel() )
|
||||
return progBar->SetProgress( v );
|
||||
return false;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ inline bool SetProgressBarValue( ProgressBarWrapper * progBar, size_t v )
|
||||
// ---
|
||||
inline void FinishProgressBar( ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != NULL ) {
|
||||
if ( progBar != c3d_null ) {
|
||||
if ( progBar->IsCancel() ) progBar->Stop();
|
||||
else progBar->Success();
|
||||
}
|
||||
@@ -347,7 +347,7 @@ inline void FinishProgressBar( ProgressBarWrapper * progBar )
|
||||
// ---
|
||||
inline bool StopProgressBar( ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != NULL && progBar->IsCancel() ) {
|
||||
if ( progBar != c3d_null && progBar->IsCancel() ) {
|
||||
progBar->Stop();
|
||||
return true;
|
||||
}
|
||||
@@ -362,14 +362,14 @@ inline bool StopProgressBar( ProgressBarWrapper * progBar )
|
||||
\en The wrapper of the execution progress indicator. \~
|
||||
\param[in] useParentName - \ru Флаг использования имени родителя.
|
||||
\en The flag of using the parent name. \~
|
||||
\return \ru true, если progBar != NULL.
|
||||
\return \ru true, если progBar != c3d_null.
|
||||
\en true if 'progBar' is not null. \~
|
||||
\ingroup Base_Items
|
||||
*/
|
||||
// ---
|
||||
inline bool UseParentName( ProgressBarWrapper * progBar, bool useParentName )
|
||||
{
|
||||
if ( progBar != NULL ) {
|
||||
if ( progBar != c3d_null ) {
|
||||
progBar->UseParentName( useParentName );
|
||||
return true;
|
||||
}
|
||||
@@ -389,7 +389,7 @@ inline bool UseParentName( ProgressBarWrapper * progBar, bool useParentName )
|
||||
// ---
|
||||
inline bool IsParentNameUsed( const ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != NULL )
|
||||
if ( progBar != c3d_null )
|
||||
return progBar->IsParentNameUsed();
|
||||
|
||||
return false;
|
||||
|
||||
@@ -76,7 +76,7 @@ MbFaceShell * ConvertGridToShell( const MbGrid & grid,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * progBar = NULL );
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -86,7 +86,7 @@ MbFaceShell * ConvertMeshToShell( const MbMesh & mesh,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * progBar = NULL );
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -57,9 +57,9 @@ class MbVector3D;
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось построить конику для заданных параметров.
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for a given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for a given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -87,9 +87,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_1( const MbCartPoint3D & mbPoint0, const Mb
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось построить конику для заданных параметров.
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for a given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for a given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -113,9 +113,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_1( const MbCartPoint & mbPoint0, const MbCart
|
||||
\param[in] mbVertex - \ru Координаты вершины угла, в который надо вписать конику.
|
||||
\en Coordinates of the vertex of angle which should be inscribed into the conic. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -138,9 +138,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_2( std::vector<MbCartPoint3D> & vmbConicPoi
|
||||
\param[in] mbVertex - \ru Координаты вершины угла, в который надо вписать конику.
|
||||
\en Coordinates of the vertex of angle which should be inscribed into the conic. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -165,9 +165,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_2( std::vector<MbCartPoint> & vmbConicPoints,
|
||||
\param[in] mbTangent2 - \ru Наклон в конце кривой.
|
||||
\en Inclination at end of a curve. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -193,9 +193,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_3( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\param[in] mbTangent2 - \ru Наклон в конце кривой.
|
||||
\en Inclination at end of a curve. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -224,9 +224,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_3( const std::vector<MbCartPoint> & vmbConicP
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось построить конику для заданных параметров.
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -256,9 +256,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_4( const MbCartPoint3D & mbPoint1, const Mb
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось построить конику для заданных параметров.
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -288,9 +288,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_4( const MbCartPoint & mbPoint1, const MbCart
|
||||
\param[in] tanPntNb - \ru Номер точке, в которой задан наклон.
|
||||
\en Point number at which the inclination is specified. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -319,9 +319,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_5( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\param[in] tanPntNb - \ru Номер точке, в которой задан наклон.
|
||||
\en Point number at which the inclination is specified. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -342,9 +342,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_5( const std::vector<MbCartPoint> & vmbConicP
|
||||
\en The container for points of a conic: the first point is start point, the last point is end point.
|
||||
there should be exactly 5 points. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -365,9 +365,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_6( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\en The container for points of a conic: the first point is start point, the last point is end point.
|
||||
there should be exactly 5 points. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
NULL, если не удалось постороить конику для заданных параметров.
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is NULL if a try to construct a conic for given parameters has failed. \~
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
|
||||
@@ -43,14 +43,14 @@ class MATH_CLASS MbCubicSpline3D;
|
||||
радиус скругления в этой точке. При создании заполняются поля m_lineSeg и m_arcSeg.
|
||||
m_lineSeg - это прямолинейный сегмент из этой точки в следующую. Для последней точки
|
||||
и замкнутой ломаной - из последней в первую. m_arcSeg - дуга скругления в данной точке.
|
||||
Если какой-то сегмент был полностью удален или не создан, то его указатель должен быть NULL.
|
||||
Если какой-то сегмент был полностью удален или не создан, то его указатель должен быть c3d_null.
|
||||
Объектами m_lineSeg и m_arcSeg не владеет, поэтому и не удаляет их. Объекты из полилинии.
|
||||
\en Some points may be deleted while the construction, therefore the old index is entered,
|
||||
it is filled and used in a model. Parameters of a point are its coordinates and
|
||||
fillet radius in this point. In a time of creation the fields 'm_lineSeg' and 'm_lineSeg' are being filled.
|
||||
'm_lineSeg' is the straight-line segment from this point to the next point. For the last point
|
||||
and a closed polyline - from the last point to the first point. 'm_arcSeg'is the arc of a fillet in the given point.
|
||||
If a segment has been fully deleted or it was not created then the pointer should be NULL.
|
||||
If a segment has been fully deleted or it was not created then the pointer should be c3d_null.
|
||||
Object 'm_lineSeg' and 'm_arcSeg' are not owned, therefore they are not deleted. Objects from a polyline. \~
|
||||
\ingroup Data_Structures
|
||||
*/
|
||||
@@ -69,8 +69,8 @@ public:
|
||||
: m_oldIndex( SYS_MAX_T )
|
||||
, m_point ()
|
||||
, m_radius ( 0.0 )
|
||||
, m_lineSeg ( NULL )
|
||||
, m_arcSeg ( NULL )
|
||||
, m_lineSeg ( c3d_null )
|
||||
, m_arcSeg ( c3d_null )
|
||||
{}
|
||||
/// \ru Конструктор копирования. \en Copy constructor.
|
||||
Polyline3DPoint( const Polyline3DPoint & other )
|
||||
@@ -250,9 +250,9 @@ MATH_FUNC (void) CreateSmoothFromBezier( const MbBezier & bez, RPArray<MbCurve>
|
||||
/** \brief \ru Создать кривую заданного типа базе NURBS-кривой.
|
||||
\en Create a curve of a given type as NURBS-curve. \~
|
||||
\details \ru Работает для двух типов: pt_LineSegment и pt_Arc. Если не удалось
|
||||
аппроксимировать с заданной точностью функция вернет NULL.
|
||||
аппроксимировать с заданной точностью функция вернет c3d_null.
|
||||
\en It works for the two types: 'pt_LineSegment' and 'pt_Arc'. If approximation with the given tolerance has failed
|
||||
then the function returns NULL. \~
|
||||
then the function returns c3d_null. \~
|
||||
\param[in] nurbs - \ru Исходная NURBS-кривая.
|
||||
\en The initial NURBS-curve. \~
|
||||
\param[in] type - \ru Тип кривой, которую требуется создать.
|
||||
@@ -288,7 +288,7 @@ MATH_FUNC (MbCurve *) ConvertNurbsToCurveOfType( const MbNurbs & nurbs, MbePlane
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbCurve *) GetFlatCurve( const MbCurve3D & curve3D, const MbMatrix3D & into,
|
||||
MbRect1D * pRgn = NULL, VERSION version = Math::DefaultMathVersion() );
|
||||
MbRect1D * pRgn = c3d_null, VERSION version = Math::DefaultMathVersion() );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+11
-11
@@ -94,10 +94,10 @@ public:
|
||||
// \ru Общие функции геометрического объекта \en Common functions of a geometric object
|
||||
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en An object type.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * iReg = NULL ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * iReg = NULL ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * iReg = NULL ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * iReg = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * iReg = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * iReg = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame( const MbSpaceItem & other, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Are the objects equal?
|
||||
virtual bool IsSimilar( const MbSpaceItem & ) const; // \ru Являются ли объекты подобными? \en Are the objects similar?
|
||||
virtual bool SetEqual ( const MbSpaceItem & ); // \ru Сделать объекты равным \en Make the objects equal
|
||||
@@ -151,11 +151,11 @@ public:
|
||||
virtual const MbItem * GetItemByName( SimpleName n, MbPath & path, MbMatrix3D & from ) const;
|
||||
|
||||
// \ru Преобразовать согласно матрице c использованием регистратора селектированные содержимые объекты. \en Transform selected objects according to the matrix using the registrator.
|
||||
virtual void TransformSelected( const MbMatrix3D & matr, MbRegTransform * iReg = NULL );
|
||||
virtual void TransformSelected( const MbMatrix3D & matr, MbRegTransform * iReg = c3d_null );
|
||||
// \ru Сдвинуть вдоль вектора с использованием регистратора селектированные содержимые объекты. \en Move selected objects along the vector using the registrator.
|
||||
virtual void MoveSelected( const MbVector3D & to, MbRegTransform * iReg = NULL );
|
||||
virtual void MoveSelected( const MbVector3D & to, MbRegTransform * iReg = c3d_null );
|
||||
// \ru Повернуть вокруг оси на заданный угол с использованием регистратора селектированные содержимые объекты. \en Rotate selected objects about the axis by the given angle using the registrator.
|
||||
virtual void RotateSelected( const MbAxis3D & axis, double angle, MbRegTransform * iReg = NULL );
|
||||
virtual void RotateSelected( const MbAxis3D & axis, double angle, MbRegTransform * iReg = c3d_null );
|
||||
/// \ru Отдать селектированные содержимые объекты. \en Get selected objects.
|
||||
bool DetachSelected( RPArray<MbItem> & items, SArray<MbMatrix3D> & matrs, bool selected = true );
|
||||
/// \ru Отцепить все видимые или невидимые объекты. \en Detach all visible or invisible objects. \~
|
||||
@@ -310,8 +310,8 @@ template <class ItemsVector>
|
||||
MbAssembly::MbAssembly( const ItemsVector & items )
|
||||
: MbItem()
|
||||
, assemblyItems()
|
||||
, constraintSystem( NULL )
|
||||
, m_reactor( NULL )
|
||||
, constraintSystem( c3d_null )
|
||||
, m_reactor( c3d_null )
|
||||
{
|
||||
#ifdef C3D_DEBUG
|
||||
// Check a condition of the single owner.
|
||||
@@ -336,7 +336,7 @@ MbAssembly::MbAssembly( const ItemsVector & items )
|
||||
template <class ItemsVector>
|
||||
void MbAssembly::_Init( const ItemsVector & items )
|
||||
{
|
||||
C3D_ASSERT( assemblyItems.empty() && (constraintSystem == NULL) );
|
||||
C3D_ASSERT( assemblyItems.empty() && (constraintSystem == c3d_null) );
|
||||
SimpleName idCounter = 0;
|
||||
|
||||
for ( size_t i = 0, iCount = items.size(); i < iCount; ++i )
|
||||
@@ -383,7 +383,7 @@ void MbAssembly::GetFacesSet( FacesVector & faces ) const
|
||||
template <class FacesVector>
|
||||
void MbInstance::GetFacesSet( FacesVector & faces ) const
|
||||
{
|
||||
if ( item != NULL ) {
|
||||
if ( item != c3d_null ) {
|
||||
if ( item->IsA() == st_Solid )
|
||||
static_cast<const MbSolid &>( *item ).GetFacesSet( faces );
|
||||
else if ( item->IsA() == st_Assembly )
|
||||
|
||||
@@ -51,10 +51,10 @@ public :
|
||||
|
||||
// \ru Общие функции геометрического объекта. \en Common functions of a geometric object.
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en An object type.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame ( const MbSpaceItem & other, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Whether the objects are equal?
|
||||
virtual bool IsSimilar( const MbSpaceItem & init ) const; // \ru Являются ли объекты подобными? \en Whether the objects are similar?
|
||||
virtual bool SetEqual ( const MbSpaceItem & init ); // \ru Сделать объекты равным. \en Make the objects equal.
|
||||
|
||||
@@ -182,7 +182,7 @@ public :
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -231,7 +231,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -277,7 +277,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -330,7 +330,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -411,7 +411,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ protected :
|
||||
public :
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Выдать тип атрибута. \en Get attribute type.
|
||||
virtual MbeAttributeType AttributeType() const = 0; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -46,13 +46,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца. \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging he owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -173,7 +173,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -243,7 +243,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -280,7 +280,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
|
||||
@@ -38,7 +38,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -86,7 +86,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -137,7 +137,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
public :
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Тип атрибута \en Type of an attribute
|
||||
virtual MbeAttributeType AttributeType() const = 0; // \ru Выдать подтип атрибута \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const = 0; // \ru Сделать копию элемента \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным \en Initialize data.
|
||||
|
||||
@@ -39,13 +39,13 @@ public :
|
||||
// \ru Действия при конвертации владельца. \en Actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
/// \ru Действия при трансформировании владельца. \en Actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Действия при перемещении владельца. \en Actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Действия при вращении владельца. \en Actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Действия при копировании владельца. \en Actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Действия при объединении владельца. \en Actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Действия при замене владельца. \en Actions when replacing the owner.
|
||||
|
||||
@@ -43,20 +43,20 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -52,19 +52,19 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -92,7 +92,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -159,7 +159,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -221,7 +221,7 @@ public :
|
||||
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Дать тип атрибута. \en Get type of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -233,13 +233,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -289,7 +289,7 @@ public:
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по атрибуту. \en Initialize by attribute.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
|
||||
@@ -37,7 +37,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const = 0;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const = 0;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) = 0;
|
||||
@@ -49,13 +49,13 @@ public :
|
||||
// Действия при конвертации владельца.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// Действия при трансформировании владельца.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// Действия при перемещении владельца.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// Действия при вращении владельца.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// Действия при копировании владельца.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// Действия при объединении владельца.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// Действия при замене владельца.
|
||||
@@ -100,7 +100,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // Определить, являются ли объекты равными.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) ;
|
||||
@@ -319,7 +319,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const ;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const ;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // Определить, являются ли объекты равными.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) ;
|
||||
|
||||
@@ -37,7 +37,7 @@ public :
|
||||
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -83,7 +83,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -129,7 +129,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
|
||||
@@ -49,20 +49,20 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
/// \ru Выдать подтип пользовательского атрибута по пользовательскому типу. \en Get subtype of an user attribute by user-defined type.
|
||||
static MbeAttributeType AttributeType( const MbUserAttribType & userType );
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -117,13 +117,13 @@ public:
|
||||
// \ru Выполнить действия при конвертации владельца \en Perform actions when converting the owner
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца \en Perform actions when transforming the owner
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -197,7 +197,7 @@ public :
|
||||
/// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbUserAttribType AttrTypeEx() const = 0;
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = NULL ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -206,13 +206,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца. \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
/// \ru Выдать идентификатор атрибута. \en Get attribute identifier.
|
||||
const MbUserAttribType & GetUserAttrId() const { return userAttrId; }
|
||||
/// \ru Выдать атрибуты. \en Get attributes.
|
||||
const MbAttribute * GetAttribute( size_t k ) const { return ((k < attributes.size()) ? attributes[k] : NULL); }
|
||||
const MbAttribute * GetAttribute( size_t k ) const { return ((k < attributes.size()) ? attributes[k] : c3d_null); }
|
||||
// \ru Выдать количество атрибутов. \en Get the number of attributes.
|
||||
size_t AttributesCount() const { return attributes.size(); }
|
||||
|
||||
@@ -300,7 +300,7 @@ MbUserAttribute * UserAttrDefinition<AttrClass>::ReduceUserAttrib( const MbExter
|
||||
MbUserAttribute * resAttr = new MbUserAttribute( _T("AttrClass"), attrId );
|
||||
resAttr->InitActions( source );
|
||||
{
|
||||
const char * charBuf = NULL;
|
||||
const char * charBuf = c3d_null;
|
||||
size_t memLen = 0;
|
||||
{
|
||||
membuf memBuf;
|
||||
@@ -330,7 +330,7 @@ MbUserAttribute * UserAttrDefinition<AttrClass>::ReduceUserAttrib( const MbExter
|
||||
template <typename AttrClass>
|
||||
MbExternalAttribute * UserAttrDefinition<AttrClass>::AdvanceUserAttrib( const MbUserAttribute & source )
|
||||
{
|
||||
AttrClass * resAttr = NULL;
|
||||
AttrClass * resAttr = c3d_null;
|
||||
MbUserAttribType attrId;
|
||||
source.GetUserAttribId( attrId );
|
||||
{
|
||||
@@ -360,7 +360,7 @@ MbExternalAttribute * UserAttrDefinition<AttrClass>::AdvanceUserAttrib( const Mb
|
||||
// ---
|
||||
template <typename AttrClass>
|
||||
MbFixAttrSet * UserAttrDefinition<AttrClass>::DisassembleUserAttrib( const MbExternalAttribute & /*source*/ ) {
|
||||
return NULL;
|
||||
return c3d_null;
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ bool UserAttrDefinition<AttrClass>::ReassembleUserAttrib( const MbFixAttrSet & /
|
||||
template <typename AttrDefClass>
|
||||
UserAttrDefinitionInstance<AttrDefClass>::UserAttrDefinitionInstance( const MbUserAttribType & type )
|
||||
: AttrDefInstance( type )
|
||||
, attrDef( NULL )
|
||||
, attrDef( c3d_null )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ UserAttrDefinitionInstance<AttrDefClass>::UserAttrDefinitionInstance( const MbUs
|
||||
template <typename AttrDefClass>
|
||||
UserAttrDefinitionInstance<AttrDefClass>::~UserAttrDefinitionInstance()
|
||||
{
|
||||
if ( attrDef != NULL )
|
||||
if ( attrDef != c3d_null )
|
||||
delete attrDef;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ UserAttrDefinitionInstance<AttrDefClass>::~UserAttrDefinitionInstance()
|
||||
template <typename AttrDefClass>
|
||||
IAttrDefinition * UserAttrDefinitionInstance<AttrDefClass>::GetAttrDefinition()
|
||||
{
|
||||
if ( attrDef == NULL ) {
|
||||
if ( attrDef == c3d_null ) {
|
||||
ScopedLock ll( GetLock() );
|
||||
attrDef = new AttrDefClass();
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ public :
|
||||
/// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const = 0;
|
||||
/// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * iReg = NULL ) const = 0;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * iReg = c3d_null ) const = 0;
|
||||
/** \brief \ru Определить, являются ли объекты равными.
|
||||
\en Determine whether objects are equal. \~
|
||||
\details \ru Равными считаются однотипные объекты, все данные которых одинаковы (равны).
|
||||
@@ -335,7 +335,7 @@ public :
|
||||
\en Perform actions when transforming the owner, \n
|
||||
This function is called after transforming the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = NULL ) = 0;
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при перемещении владельца. \n
|
||||
Вызывается после перемещения владеющего объекта при условии GetActionForTransform() == trn_Self.
|
||||
@@ -343,7 +343,7 @@ public :
|
||||
\en Perform actions when moving the owner. \n
|
||||
This function is called after moving the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = NULL ) = 0;
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при вращении владельца. \n
|
||||
Вызывается после вращения владеющего объекта при условии GetActionForTransform() == trn_Self.
|
||||
@@ -351,7 +351,7 @@ public :
|
||||
\en Perform actions when rotating the owner. \n
|
||||
This function is called after rotating the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = NULL ) = 0;
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при копировании владельца. \n
|
||||
Вызывается после копирования владеющего объекта при условии GetActionForCopy() == cpy_Self. \n
|
||||
@@ -359,7 +359,7 @@ public :
|
||||
\en Perform actions when copying the owner. \n
|
||||
This function is called after copying the owning object in a case when GetActionForCopy() == cpy_Self. \n
|
||||
The following objects are passed as input parameters: the owning object copy and registrator of copied objects. \~ */
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = NULL ) = 0;
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при объединении владельца. \n
|
||||
Вызывается перед слиянием владельца при условии GetActionForMerge() == mrg_Self. \n
|
||||
|
||||
@@ -169,13 +169,13 @@ public:
|
||||
/// \ru Выполнить действия при конвертации атрибутов. \en Perform actions when converting the attributes.
|
||||
void AttributesConvert( MbAttributeContainer & other ) const;
|
||||
/// \ru Выполнить действия при трансформировании атрибутов. \en Perform actions when transforming the attributes.
|
||||
void AttributesTransform( const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
void AttributesTransform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
/// \ru Выполнить действия при перемещении атрибутов. \en Perform actions when moving the attributes.
|
||||
void AttributesMove ( const MbVector3D &, MbRegTransform * = NULL );
|
||||
void AttributesMove ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
/// \ru Выполнить действия при вращении атрибутов. \en Perform actions when rotating the attributes.
|
||||
void AttributesRotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
void AttributesRotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
/// \ru Выполнить действия при копировании атрибутов. \en Perform actions when copying the attributes.
|
||||
void AttributesCopy ( MbAttributeContainer & other, MbRegDuplicate * = NULL ) const;
|
||||
void AttributesCopy ( MbAttributeContainer & other, MbRegDuplicate * = c3d_null ) const;
|
||||
/// \ru Выполнить действия при объединении атрибутов. \en Perform actions when merging the attributes.
|
||||
void AttributesMerge ( MbAttributeContainer & other );
|
||||
/// \ru Выполнить действия при замене атрибутов. \en Perform actions when replacing the attributes.
|
||||
@@ -226,7 +226,7 @@ public:
|
||||
\return \ru true если есть такой атрибут \n false в противном случае
|
||||
\en True if there is the attribute MbColor \n otherwise false. \~
|
||||
*/
|
||||
bool IsColored() const { return (GetSimpleAttribute( at_Color ) != NULL); }
|
||||
bool IsColored() const { return (GetSimpleAttribute( at_Color ) != c3d_null); }
|
||||
/// \ru Изменить цвет объекта. \en Change color of the object.
|
||||
void SetColor( uint32 );
|
||||
/// \ru Изменить цвет объекта (0-255). \en Change color of the object (0-255).
|
||||
@@ -317,7 +317,7 @@ MATH_FUNC (bool) GetCommonAttributes( const MbAttributeContainer & attrItem, con
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (bool) AddCommonAttributes( const MbAttributeContainer & srcItem, MbeAttributeType attrType, const c3d::string_t & attrPrompt,
|
||||
MbAttributeContainer & dstItem, c3d::AttrVector * bufAttrs = NULL );
|
||||
MbAttributeContainer & dstItem, c3d::AttrVector * bufAttrs = c3d_null );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Удалить обобщенные атрибуты.
|
||||
|
||||
@@ -45,8 +45,8 @@ typedef const void * cdet_app_item;
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Constants
|
||||
//---
|
||||
const cdet_item CDET_NULL = C3D_NULL_PTR; ///< \ru Пустой объект набора для контроля столкновений. \en Empty object of the collision query set.
|
||||
const cdet_app_item CDET_APP_NULL = C3D_NULL_PTR; ///< \ru "Нулевой" объект модели приложения. \en "Null object" of the client app.
|
||||
const cdet_item CDET_NULL = c3d_null; ///< \ru Пустой объект набора для контроля столкновений. \en Empty object of the collision query set.
|
||||
const cdet_app_item CDET_APP_NULL = c3d_null; ///< \ru "Нулевой" объект модели приложения. \en "Null object" of the client app.
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Base class to implement collision query details
|
||||
@@ -77,8 +77,8 @@ struct cdet_query
|
||||
const MbRefItem * refItem;
|
||||
const MbMatrix3D * wMatrix;
|
||||
geom_element()
|
||||
: appItem( C3D_NULL_PTR )
|
||||
, refItem( C3D_NULL_PTR )
|
||||
: appItem( c3d_null )
|
||||
, refItem( c3d_null )
|
||||
, wMatrix( &MbMatrix3D::identity ) {}
|
||||
};
|
||||
|
||||
@@ -117,7 +117,7 @@ struct cdet_query_result: public cdet_query
|
||||
private:
|
||||
static cback_res QueryFunc( cdet_query * query, message code, cback_data & )
|
||||
{
|
||||
C3D_ASSERT( C3D_NULL_PTR != query );
|
||||
C3D_ASSERT( c3d_null != query );
|
||||
cdet_query_result * q = static_cast<cdet_query_result*>( query );
|
||||
switch( code )
|
||||
{
|
||||
@@ -162,7 +162,7 @@ private:
|
||||
{
|
||||
case CDET_QUERY_STARTED: // The collision query is started for all solids of the set
|
||||
{
|
||||
q->first = q->second = C3D_NULL_PTR;
|
||||
q->first = q->second = c3d_null;
|
||||
return CBACK_VOID;
|
||||
}
|
||||
case CDET_FINISHED: // A pair of solids is finished.
|
||||
@@ -358,7 +358,7 @@ public:
|
||||
MbCollisionFace( const MbFace & f )
|
||||
: item( CDET_NULL )
|
||||
, mathFace( &f )
|
||||
, partFace( C3D_NULL_PTR )
|
||||
, partFace( c3d_null )
|
||||
{}
|
||||
|
||||
const MbFace & Face() const { return *mathFace; }
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
class MtRefItem;
|
||||
class MbItem;
|
||||
class MbSolid;
|
||||
class MbMesh;
|
||||
class MbAssembly;
|
||||
struct MbLumpAndFaces;
|
||||
class MbCollisionDetector;
|
||||
@@ -155,7 +156,7 @@ public: /*
|
||||
// Use AppItem() insead this
|
||||
cdet_app_item Component( size_t solIdx ) const;
|
||||
// The func is deprecated. Instead, use CheckCollisions
|
||||
cdet_result InterferenceDetect( void * formalPar = C3D_NULL_PTR ) const;
|
||||
cdet_result InterferenceDetect( void * formalPar = c3d_null ) const;
|
||||
// The func is deprecated. Use SetDistanceTracking instead.
|
||||
void SetDistanceComputationObjects( const MbLumpAndFaces &, const MbLumpAndFaces & );
|
||||
// The func is deprecated. Use AddSolid/AddItem instead.
|
||||
@@ -166,6 +167,13 @@ public: /*
|
||||
const MtRefItem * _ComputeBVTree( cdet_item );
|
||||
|
||||
private:
|
||||
/**
|
||||
\brief \ru Добавить полигональный объект с заданным положением в набор для контроля столкновений.
|
||||
\en Add a poligonal object with given placement to the collision detection set. \~
|
||||
\return \ru Дескриптор объекта для контроля столкновений. \en Descriptor of object for collision detection. \~
|
||||
*/
|
||||
cdet_item AddMesh( const MbMesh & mesh, const MbPlacement3D & place, cdet_app_item appItem = CDET_APP_NULL );
|
||||
|
||||
/*
|
||||
\brief \ru Добавить объект геометрической модели в набор для контроля столкновений.
|
||||
\en Add an object of geometric model to the set of collision detection control. \~
|
||||
@@ -189,7 +197,7 @@ inline cdet_result MbCollisionDetectionUtility::CheckCollisions()
|
||||
/// \ru Узел дерева объемов. \en A node of the bounding volume tree.
|
||||
typedef const MtRefItem * cdet_bvt_node;
|
||||
/// \ru Пустое дерево объемов. \en An empty bounding volume tree.
|
||||
const cdet_bvt_node CDET_BVT_NULL = C3D_NULL_PTR;
|
||||
const cdet_bvt_node CDET_BVT_NULL = c3d_null;
|
||||
/// \ru Пара ветвей поддерева объемов. \en A pair of branches of the bounding volume subtree.
|
||||
typedef std::pair<cdet_bvt_node,cdet_bvt_node> cdet_bvt_pair;
|
||||
|
||||
|
||||
@@ -70,13 +70,13 @@ public:
|
||||
|
||||
public:
|
||||
/// \ru Пересечение - есть тело. \en Intersection is a solid.
|
||||
bool IsSolid() const { return ((solid != NULL) || (isSolid && !edges.empty())); }
|
||||
bool IsSolid() const { return ((solid != c3d_null) || (isSolid && !edges.empty())); }
|
||||
/// \ru Пересечение касательной областью поверхности. \en Intersection by a tangent region of a surface.
|
||||
bool IsSurface() const { return !isTangentCurve && !edges.empty(); }
|
||||
/// \ru Пересечение вдоль касательной линии. \en Intersection along a tangent line.
|
||||
bool IsCurve() const { return isTangentCurve && !edges.empty(); }
|
||||
/// \ru Пересечение точкой (еще не реализовано). \en Intersection is a point (not implemented yet).
|
||||
bool IsPoint() const { return ((pointFrame != NULL) && (pointFrame->GetVerticesCount() > 0)); }
|
||||
bool IsPoint() const { return ((pointFrame != c3d_null) && (pointFrame->GetVerticesCount() > 0)); }
|
||||
|
||||
/// \ru Установить флаг пересечения вдоль касательной линии. \en Set the flag of intersection along a tangent line.
|
||||
//void SetTangent( bool b ) { isTangentCurve = b; }
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
template <class EdgesVector>
|
||||
void GetCurves( EdgesVector & curves ) const;
|
||||
/// \ru Получить указатель на кривую пересечения по индексу. \en Get a pointer to an intersection curve by the index.
|
||||
const MbCurveEdge * GetCurve( size_t k ) const { return ((k < edges.size()) ? edges[k].get() : NULL); }
|
||||
const MbCurveEdge * GetCurve( size_t k ) const { return ((k < edges.size()) ? edges[k].get() : c3d_null); }
|
||||
/// \ru Получить номера касающихся граней первого/второго тела. \en Get numbers concerning faces of the first/second solid.
|
||||
template <class OutputIndicesVector>
|
||||
void GetFaceNumbers( bool first, OutputIndicesVector & ) const;
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void GetFaceNumbersPairs( OutputIndicesPairsVector & ) const;
|
||||
|
||||
/// \ru Количество точек касания. \en The number of touch points.
|
||||
size_t GetPointsCount() const { return ((pointFrame != NULL) ? pointFrame->GetVerticesCount() : 0); }
|
||||
size_t GetPointsCount() const { return ((pointFrame != c3d_null) ? pointFrame->GetVerticesCount() : 0); }
|
||||
/// \ru Получить набор точек касания. \en Get a set of touch points.
|
||||
const MbPointFrame * GetPointFrame() const { return pointFrame; }
|
||||
|
||||
@@ -117,8 +117,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & initEdge
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( NULL )
|
||||
, pointFrame ( NULL )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( isSolidEgdes )
|
||||
{
|
||||
@@ -127,7 +127,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & initEdge
|
||||
c3d::EdgeSPtr edge;
|
||||
edges.reserve( addCnt );
|
||||
for ( size_t k = 0; k < addCnt; ++k ) {
|
||||
if ( initEdges[k] != NULL ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
edge = const_cast<MbCurveEdge *>( &(*initEdges[k]) );
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -146,8 +146,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & in
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( NULL )
|
||||
, pointFrame ( NULL )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( false )
|
||||
{
|
||||
@@ -157,7 +157,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & in
|
||||
c3d::EdgeSPtr edge;
|
||||
edges.reserve( edgesCnt );
|
||||
for ( size_t k = 0; k < edgesCnt; ++k ) {
|
||||
if ( initEdges[k] != NULL ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
edge = const_cast<MbCurveEdge *>(&(*initEdges[k]));
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -177,8 +177,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector &
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( NULL )
|
||||
, pointFrame ( NULL )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( false )
|
||||
{
|
||||
@@ -189,7 +189,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector &
|
||||
edges.reserve( edgesCnt );
|
||||
size_t k;
|
||||
for ( k = 0; k < edgesCnt; ++k ) {
|
||||
if ( initEdges[k] != NULL ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
edge = const_cast<MbCurveEdge *>(&(*initEdges[k]));
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -340,9 +340,9 @@ bool CheckBoundaryEdges( const Edges & allEdges, Edges * boundaryEdges )
|
||||
|
||||
if ( boundaryEdges != &allEdges ) {
|
||||
for ( size_t i = 0, cnt = allEdges.size(); i < cnt; ++i ) {
|
||||
if ( allEdges[i] != NULL && allEdges[i]->IsBoundaryFace( METRIC_PRECISION ) ) {
|
||||
if ( allEdges[i] != c3d_null && allEdges[i]->IsBoundaryFace( METRIC_PRECISION ) ) {
|
||||
isBoundary = true;
|
||||
if ( boundaryEdges != NULL )
|
||||
if ( boundaryEdges != c3d_null )
|
||||
boundaryEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
@@ -415,9 +415,9 @@ bool CheckInexactVertices( const Vertices & vertArr, double mAcc, Vertices * ine
|
||||
if ( inexactVerts != &vertArr ) {
|
||||
for ( size_t i = 0, icnt = vertArr.size(); i < icnt; ++i ) {
|
||||
MbVertex * v = vertArr[i];
|
||||
if ( v != NULL && v->GetTolerance() > mAcc ) {
|
||||
if ( v != c3d_null && v->GetTolerance() > mAcc ) {
|
||||
isInexactVertex = true;
|
||||
if ( inexactVerts != NULL )
|
||||
if ( inexactVerts != c3d_null )
|
||||
inexactVerts->push_back( v );
|
||||
else
|
||||
break;
|
||||
@@ -480,12 +480,12 @@ bool CheckInexactEdges( const Edges & allEdges, double mAcc, Edges * inexactEdge
|
||||
bool isInexactEdge = false;
|
||||
|
||||
for ( size_t i = 0, icnt = allEdges.size(); i < icnt; ++i ) {
|
||||
if ( allEdges[i] != NULL) {
|
||||
if ( allEdges[i] != c3d_null) {
|
||||
bool isSpaceNear = !::IsInexactEdge( *allEdges[i], mAcc );
|
||||
|
||||
if ( !isSpaceNear ) {
|
||||
isInexactEdge = true;
|
||||
if ( inexactEdges != NULL )
|
||||
if ( inexactEdges != c3d_null )
|
||||
inexactEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
@@ -498,7 +498,7 @@ bool CheckInexactEdges( const Edges & allEdges, double mAcc, Edges * inexactEdge
|
||||
double mLen = allEdges[i]->GetLengthEvaluation();
|
||||
if ( mLen > METRIC_PRECISION && mLen > mTol + METRIC_PRECISION ) {
|
||||
isInexactEdge = true;
|
||||
if ( inexactEdges != NULL )
|
||||
if ( inexactEdges != c3d_null )
|
||||
inexactEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
@@ -797,10 +797,26 @@ MATH_FUNC( bool ) RepairEdges( MbFaceShell & shell, bool updateFacesBounds = tru
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Устранить наличие общих подложек поверхностей.
|
||||
\en Remove common surface substrates. \~
|
||||
\details \ru Устранить наличие общих подложек поверхностей. \n
|
||||
\en Remove common surface substrates. \n \~
|
||||
\param[in] shell - \ru Оболочка.
|
||||
\en A shell. \~
|
||||
\details \ru Найти и устранить общие поверхности-подложки в гранях оболочки. \n
|
||||
\en Find and eliminate common underlying surfaces of a shell faces. \n \~
|
||||
\param[in] shell - \ru Модифицируемая оболочка.
|
||||
\en A shell to be modified. \~
|
||||
\return \ru Возвращает true, если была выполнена модификация оболочки.
|
||||
\en Returns true if the shell modification was performed. \~
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC( bool ) CheckIdenticalBaseSufaces( MbFaceShell & shell );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Устранить наличие общих подложек поверхностей.
|
||||
\en Remove common surface substrates. \~
|
||||
\details \ru Найти и устранить общие поверхности-подложки в гранях оболочки. \n
|
||||
\en Find and eliminate common underlying surfaces of a shell faces. \n \~
|
||||
\param[in] shell - \ru Модифицируемая оболочка.
|
||||
\en A shell to be modified. \~
|
||||
\return \ru Возвращает true, если была выполнена модификация оболочки.
|
||||
\en Returns true if the shell modification was performed. \~
|
||||
\ingroup Algorithms_3D
|
||||
|
||||
@@ -84,10 +84,10 @@ public:
|
||||
// \ru Общие функции геометрического объекта \en Common functions of a geometric object
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en A type of an object.
|
||||
virtual MbeSpaceType Type() const; // \ru Групповой тип объекта. \en Group type of object.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвинуть вдоль вектора. \en Translate along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Translate along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame ( const MbSpaceItem & init, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Are the objects equal?
|
||||
virtual bool SetEqual ( const MbSpaceItem & init ); // \ru Сделать объекты равным. \en Make the objects equal.
|
||||
virtual double DistanceToPoint ( const MbCartPoint3D & ) const; // \ru Вычислить расстояние до точки. \en Calculate the distance to a point.
|
||||
|
||||
@@ -42,8 +42,8 @@ public:
|
||||
public:
|
||||
MtGeomArgument( const MbRefItem * p, const MbItem * h );
|
||||
MtGeomArgument( const MtGeomArgument & );
|
||||
MtGeomArgument() : propItem( NULL ), propName( c3d::UNDEFINED_SNAME )
|
||||
, hash( c3d::UNDEFINED_SNAME ), item( NULL ), root( NULL ) {}
|
||||
MtGeomArgument() : propItem( c3d_null ), propName( c3d::UNDEFINED_SNAME )
|
||||
, hash( c3d::UNDEFINED_SNAME ), item( c3d_null ), root( c3d_null ) {}
|
||||
|
||||
public:
|
||||
/** \brief \ru Получить непосредственный объект сборки, содержащий ссылочный объект.
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
|
||||
public:
|
||||
/// \ru Возвращает true, если ограничение не действительно. \en Return true if the constraint is invalid.
|
||||
bool IsNull() const { return m_cItem == NULL; }
|
||||
bool IsNull() const { return m_cItem == c3d_null; }
|
||||
/// \ru Тип сопряжения (геометрического ограничения). \en Type of geometric constraint.
|
||||
MtMateType ConstraintType() const;
|
||||
/// \ru Текущее значение размера. \en Current value of the dimension.
|
||||
|
||||
+10
-10
@@ -38,8 +38,8 @@ public:
|
||||
/// \ru Конструктор по точке. \en Constructor by point.
|
||||
MpVertex( const MbCartPoint & initP )
|
||||
: point( initP )
|
||||
, begEdge( NULL )
|
||||
, endEdge( NULL )
|
||||
, begEdge( c3d_null )
|
||||
, endEdge( c3d_null )
|
||||
{}
|
||||
|
||||
/// \ru Деструктор. \en Destructor.
|
||||
@@ -398,7 +398,7 @@ public:
|
||||
/// \ru Построить вершины. \en Construct vertices.
|
||||
void CreateVertices();
|
||||
/// \ru Создать контур по циклу. \en Create a contour by the loop.
|
||||
MbContour * MakeContour() const;
|
||||
MbContour * MakeContour( double epsilon = METRIC_ACCURACY ) const;
|
||||
|
||||
/** \} */
|
||||
/**\ru \name Операции преобразования.
|
||||
@@ -737,7 +737,7 @@ IMPL_PERSISTENT_OPS( MpGraph )
|
||||
*/ // ---
|
||||
inline void DeleteVertex( MpVertex *& vertex ) {
|
||||
delete vertex;
|
||||
vertex = NULL;
|
||||
vertex = c3d_null;
|
||||
}
|
||||
|
||||
|
||||
@@ -751,7 +751,7 @@ inline void DeleteVertex( MpVertex *& vertex ) {
|
||||
*/ // ---
|
||||
inline void DeleteEdge( MpEdge *& edge ) {
|
||||
delete edge;
|
||||
edge = NULL;
|
||||
edge = c3d_null;
|
||||
}
|
||||
|
||||
|
||||
@@ -765,7 +765,7 @@ inline void DeleteEdge( MpEdge *& edge ) {
|
||||
*/ // ---
|
||||
inline void DeleteLoop( MpLoop *& loop ) {
|
||||
delete loop;
|
||||
loop = NULL;
|
||||
loop = c3d_null;
|
||||
}
|
||||
|
||||
|
||||
@@ -779,7 +779,7 @@ inline void DeleteLoop( MpLoop *& loop ) {
|
||||
*/ // ---
|
||||
inline void DeleteGraph( MpGraph *& graph ) {
|
||||
delete graph;
|
||||
graph = NULL;
|
||||
graph = c3d_null;
|
||||
}
|
||||
|
||||
|
||||
@@ -848,7 +848,7 @@ MATH_FUNC (MpGraph *) EncloseContoursBuilder( const RPArray<MbCurve> & curveLi
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = NULL );
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -886,7 +886,7 @@ MATH_FUNC (MpGraph *) OuterContoursBuilder( const RPArray<MbCurve> & curveList,
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = NULL );
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Перестроить контуры, построенные ранее вокруг точки.
|
||||
@@ -924,7 +924,7 @@ MATH_FUNC (MpGraph *) ContoursReconstructor( const RPArray<MbCurve> & curveLis
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = NULL );
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
|
||||
|
||||
#endif // __CONTOUR_GRAPH_H
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
/** \brief \ru Прообраз новой интерфейсной функции - получить наполнение.
|
||||
\en Prototype of a new interface function - get the filling. \~
|
||||
*/
|
||||
virtual MbItem * GetContent() /*{ return NULL; }*/ = 0;
|
||||
virtual MbItem * GetContent() /*{ return c3d_null; }*/ = 0;
|
||||
|
||||
/** \brief \ru Создать документ с новой сборкой при импорте.
|
||||
\en Create a document with a new assembly while importing. \~
|
||||
@@ -75,8 +75,8 @@ public:
|
||||
\en Assembly name. \~
|
||||
\param[in] solids - \ru Тела, добавляемые в сборку.
|
||||
\en Solids to add into the assembly. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr CreateAssembly( const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -89,8 +89,8 @@ public:
|
||||
\en Solids to add into a part. \~
|
||||
\param[in] fileName - \ru Имя детали.
|
||||
\en A part name. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of the part if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr CreatePart( const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -98,8 +98,8 @@ public:
|
||||
\en Get an assembly for export. \~
|
||||
\details \ru Увеличить счётчик ссылок результирующей сборки на 1.
|
||||
\en Increase the reference counter of the resultant assembly by 1. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr GetInstanceAssembly( ) = 0;
|
||||
|
||||
@@ -108,8 +108,8 @@ public:
|
||||
\en Get the detail for export. \~
|
||||
\details \ru Увеличить счётчик ссылок результирующей детали на 1.
|
||||
\en Increase the reference counter of the resultant part by 1. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of the part if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr GetInstancePart( ) = 0;
|
||||
|
||||
@@ -334,8 +334,8 @@ public:
|
||||
\en LCS of the assembly in the parent's model. \~
|
||||
\param[in] fileName - \ru Имя сборки.
|
||||
\en Assembly name. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr CreateAssembly( const MbPlacement3D &place, const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -349,23 +349,23 @@ public:
|
||||
\en Solids included in the part. \~
|
||||
\param[in] fileName - \ru Название детали.
|
||||
\en Solid's name. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of the part if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr CreatePart( const MbPlacement3D &place, const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
/** \brief \ru Получить сборку для экспорта.
|
||||
\en Get an assembly for export. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr GetInstanceAssembly( ) = 0;
|
||||
|
||||
|
||||
/** \brief \ru Получить деталь для экспорта.
|
||||
\en Get the detail for export. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, NULL в противном случае.
|
||||
\en Instance of the part if the operation succeeded, NULL - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr GetInstancePart( ) = 0;
|
||||
|
||||
@@ -437,15 +437,15 @@ public:
|
||||
\en Get an empty interface of the insertion for creation of subassembly or a part while importing. \~
|
||||
\details \ru Увеличить счётчик ссылок на 1.
|
||||
\en Increase the reference counter by 1. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или NULL в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and NULL otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and c3d_null otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr PrepareInstance() = 0;
|
||||
|
||||
/** \brief \ru Получить интерфейс следующей вставки для создания подсборки или детали при экспорте.
|
||||
\en Get the interface of the next insertion for creation of a subassembly or a part while exporting. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или NULL в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and NULL otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and c3d_null otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr NextInstance( bool includeInvisible ) = 0;
|
||||
|
||||
@@ -516,15 +516,15 @@ public:
|
||||
\en Get an empty interface of the insertion for creation of subassembly or a part while importing. \~
|
||||
\details \ru Увеличить счётчик ссылок на 1.
|
||||
\en Increase the reference counter by 1. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или NULL в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and NULL otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and c3d_null otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr PrepareInstance() = 0;
|
||||
|
||||
/** \brief \ru Получить интерфейс следующей вставки для создания подсборки или детали при экспорте.
|
||||
\en Get the interface of the next insertion for creation of a subassembly or a part while exporting. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или NULL в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and NULL otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and c3d_null otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr NextInstance( bool includeInvisible ) = 0;
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType) ImportFromFile( MbModel & model,
|
||||
const path_string & fileName,
|
||||
IConvertorProperty3D * prop = C3D_NULL_PTR,
|
||||
IProgressIndicator * indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D * prop = c3d_null,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
/** \brief \ru Прочитать файл обменного формата в элемент.
|
||||
@@ -120,8 +120,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType) ImportFromFile( c3d::ItemSPtr& item,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = C3D_NULL_PTR,
|
||||
IProgressIndicator* indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
|
||||
/** \brief \ru Прочитать файл обменного формата в модель.
|
||||
\en Read a file of an exchange format into model. \~
|
||||
@@ -143,8 +143,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType) ImportFromFile( ItModelDocument & mDoc,
|
||||
const path_string & filePath,
|
||||
IConvertorProperty3D * prop = C3D_NULL_PTR,
|
||||
IProgressIndicator * indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D * prop = c3d_null,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
/** \brief \ru Записать модель в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -166,8 +166,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType) ExportIntoFile( MbModel & model,
|
||||
const path_string & filePath,
|
||||
IConvertorProperty3D * prop = C3D_NULL_PTR,
|
||||
IProgressIndicator * indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D * prop = c3d_null,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
/** \brief \ru Записать модель в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -189,8 +189,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType ) ExportIntoFile( MbItem& item,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = C3D_NULL_PTR,
|
||||
IProgressIndicator* indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
|
||||
/** \brief \ru Записать модельный документ в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -212,8 +212,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC (MbeConvResType ) ExportIntoFile( ItModelDocument& mDoc,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = C3D_NULL_PTR,
|
||||
IProgressIndicator* indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
|
||||
|
||||
/** \brief \ru Импортировать данные из буфера в модель.
|
||||
@@ -235,8 +235,8 @@ namespace c3d {
|
||||
CONV_FUNC (MbeConvResType) ImportFromBuffer( MbModel & model,
|
||||
const C3DExchangeBuffer& buffer,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D * prop = C3D_NULL_PTR,
|
||||
IProgressIndicator * indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D * prop = c3d_null,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
/** \brief \ru Импортировать данные из буфера в модель.
|
||||
@@ -258,8 +258,8 @@ namespace c3d {
|
||||
CONV_FUNC(MbeConvResType) ImportFromBuffer( c3d::ItemSPtr& item,
|
||||
const C3DExchangeBuffer& buffer,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D* prop = C3D_NULL_PTR,
|
||||
IProgressIndicator* indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
@@ -281,8 +281,8 @@ namespace c3d {
|
||||
CONV_FUNC (MbeConvResType) ExportIntoBuffer( MbModel & model,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
C3DExchangeBuffer& buffer,
|
||||
IConvertorProperty3D * prop = C3D_NULL_PTR,
|
||||
IProgressIndicator * indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D * prop = c3d_null,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
@@ -304,8 +304,8 @@ namespace c3d {
|
||||
CONV_FUNC(MbeConvResType) ExportIntoBuffer( MbItem& item,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
C3DExchangeBuffer& buffer,
|
||||
IConvertorProperty3D* prop = C3D_NULL_PTR,
|
||||
IProgressIndicator* indicator = C3D_NULL_PTR );
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -322,7 +322,7 @@ namespace c3d {
|
||||
|
||||
// \ru Конструктор. \en Constructor.
|
||||
C3DExchangeBuffer()
|
||||
: data( C3D_NULL_PTR )
|
||||
: data( c3d_null )
|
||||
, count( 0 ) {
|
||||
}
|
||||
|
||||
@@ -389,10 +389,10 @@ public:
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] stream - \ru Поток, из которого производится чтение (может быть NULL).
|
||||
\en Stream from which reading is performed (can be NULL). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть NULL).
|
||||
\en The process progress indicator (can be NULL). \~
|
||||
\param[in] stream - \ru Поток, из которого производится чтение (может быть c3d_null).
|
||||
\en Stream from which reading is performed (can be c3d_null). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\param[in] qeuryStitch - \ru Диалог запроса на сшивку поверхностей.
|
||||
\en Dialog of request for stitching the surfaces. \~
|
||||
\return \ru Код завершения операции.
|
||||
@@ -413,10 +413,10 @@ public:
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] stream - \ru Поток, в который производится запись (может быть NULL).
|
||||
\en Stream in which the record is performed (can be NULL). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть NULL).
|
||||
\en The process progress indicator (can be NULL). \~
|
||||
\param[in] stream - \ru Поток, в который производится запись (может быть c3d_null).
|
||||
\en Stream in which the record is performed (can be c3d_null). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\return \ru Код завершения операции.
|
||||
\en Code of the operation termination. \~
|
||||
\ingroup ACIS_Exchange
|
||||
@@ -794,8 +794,8 @@ CONV_FUNC (MbeConvResType ) SATRead ( IConvertorProperty3D & prop, ItModelDocume
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть NULL).
|
||||
\en The process progress indicator (can be NULL). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\return \ru Код завершения операции.
|
||||
\en Code of the operation termination. \~
|
||||
\ingroup ACIS_Exchange
|
||||
@@ -1077,7 +1077,7 @@ namespace c3d {
|
||||
const char* data,
|
||||
size_t length,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D* prop = NULL, IProgressIndicator* indicator = NULL);
|
||||
IConvertorProperty3D* prop = c3d_null, IProgressIndicator* indicator = c3d_null);
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
\en Export model into buffer. \~
|
||||
@@ -1126,7 +1126,7 @@ namespace c3d {
|
||||
DEPRECATE_DECLARE CONV_FUNC(MbeConvResType) ExportIntoBuffer( MbItem& item, MbeModelExchangeFormat modelFormat,
|
||||
char*& data,
|
||||
size_t& length,
|
||||
IConvertorProperty3D* prop = NULL, IProgressIndicator* indicator = NULL);
|
||||
IConvertorProperty3D* prop = c3d_null, IProgressIndicator* indicator = c3d_null);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -70,20 +70,20 @@ public:
|
||||
~MbAttributeProvider();
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Выдать тип элемента. \en Get an element type.
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Определить, являются ли объекты подобными. \en Determine whether the objects are similar.
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию. \en Create a copy.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию. \en Create a copy.
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта. \en Get a name of object property.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction.
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction.
|
||||
|
||||
// \ru Добавить отдельный атрибут (забрать во владение) \en Add a separate attribute.
|
||||
void AddAttribute( const MbName & name, MbAttribute * attr );
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
/// \ru Записать полученные атрибуты. \en Save the received attributes.
|
||||
void ReceiveAttributes ( c3d::AttrVector & attrs );
|
||||
/// \ru Скопировать атрибуты. \en Copy attributes.
|
||||
void DuplicateAttributes( c3d::AttrVector & attrs, MbRegDuplicate * iReg = NULL ) const;
|
||||
void DuplicateAttributes( c3d::AttrVector & attrs, MbRegDuplicate * iReg = c3d_null ) const;
|
||||
/// \ru Дать количество атрибутов. \en Get the attributes count.
|
||||
size_t AttributesCount() const { return attributes.size(); }
|
||||
/// \ru Добавить атрибут. \en Add an attribute.
|
||||
|
||||
@@ -67,10 +67,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = NULL ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = NULL ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = NULL ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = c3d_null ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -90,7 +90,7 @@ public :
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version, bool forAll );
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
/// \ru Общее количество строителей. \en Total count of creators.
|
||||
size_t GetCreatorsCount() const { return creators.size(); }
|
||||
/// \ru Дать строитель. \en Get the creator.
|
||||
const MbCreator * GetCreator( size_t k ) const { return ( (k < creators.size()) ? creators[k] : NULL ); }
|
||||
const MbCreator * GetCreator( size_t k ) const { return ( (k < creators.size()) ? creators[k] : c3d_null ); }
|
||||
/// \ru Удалить из журнала строители первого тела. \en Delete first-solid creators from the history tree.
|
||||
bool DeleteFirstCreators();
|
||||
private :
|
||||
|
||||
@@ -39,7 +39,7 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual void GetProperties( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties &properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -51,7 +51,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
virtual void ReadDistances ( reader &in );
|
||||
|
||||
@@ -59,15 +59,15 @@ public :
|
||||
|
||||
// \ru Общие функции строителя \en The common functions of the creator
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -77,7 +77,7 @@ public :
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateSpaceCurve( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = NULL );
|
||||
virtual bool CreateSpaceCurve( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/** \} */
|
||||
|
||||
@@ -97,13 +97,13 @@ IMPL_PERSISTENT_OPS( MbConnectingCurveCreator )
|
||||
\en Create two curves fillet constructor.\n \~
|
||||
\param[in] curve1 - \ru Кривая 1.
|
||||
\en Curve 1. \~
|
||||
\param[in/out] t1 - \ru Параметр точки на кривой 1 соединения с кривой соединения.
|
||||
\param[in,out] t1 - \ru Параметр точки на кривой 1 соединения с кривой соединения.
|
||||
\en A point parameter on curve 1 of connection with fillet curve. \~
|
||||
\param[in] curve2 - \ru Кривая 2.
|
||||
\en Curve 2. \~
|
||||
\param[in/out] t2 - \ru Параметр точки на кривой 2 соединения с кривой соединения.
|
||||
\param[in,out] t2 - \ru Параметр точки на кривой 2 соединения с кривой соединения.
|
||||
\en A point parameter on curve 2 of connection with fillet curve. \~
|
||||
\param[in/out] radius - \ru Радиус дуги или цилиндра.
|
||||
\param[in,out] radius - \ru Радиус дуги или цилиндра.
|
||||
\en The radius of an arc or a cylinder. \~
|
||||
\param[in] type - \ru Тип скругления.
|
||||
\en The fillet type. \~
|
||||
@@ -111,8 +111,8 @@ IMPL_PERSISTENT_OPS( MbConnectingCurveCreator )
|
||||
\en An object defining the edges names. \~
|
||||
\param[out] res - \ru Код результата операции.
|
||||
\en Operation result code. \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён NULL).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be NULL). \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён c3d_null).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be c3d_null). \~
|
||||
\result \ru Возвращает строитель.
|
||||
\en Returns the constructor. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
|
||||
@@ -66,10 +66,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -85,7 +85,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Оставляемая часть (если part больше 0, то оставляем часть тела со стороны нормали поверхности). \en A part to be kept (if part is bigger than 0, then keep a part of solid from the side of surface normal).
|
||||
ThreeStates GetPart() const { return part; }
|
||||
|
||||
@@ -42,10 +42,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -56,7 +56,7 @@ public :
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
/** \ru \name Функции строителя, разделяющие отдельные части оболочки.
|
||||
\en \name Functions of the creator subdividing separate parts of the shell.
|
||||
@@ -183,7 +183,7 @@ MbCreator * CreateDetach( MbFaceShell & solid,
|
||||
MbResultType & res )
|
||||
{
|
||||
res = rt_Error;
|
||||
MbCreator * result = NULL;
|
||||
MbCreator * result = c3d_null;
|
||||
|
||||
::MakeDetachShells( solid, partSolid, sort );
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
, fp ( faceProp )
|
||||
, np ( new MbPlacement3D( nPlace ) )
|
||||
, edgeNb ( -1 )
|
||||
, pl ( NULL )
|
||||
, pl ( c3d_null )
|
||||
, reverse ( rev )
|
||||
, step ( false )
|
||||
{
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
, angle ( ang )
|
||||
, faceIndices( )
|
||||
, fp ( faceProp )
|
||||
, np ( nPlace ? new MbPlacement3D( *nPlace ) : NULL )
|
||||
, np ( nPlace ? new MbPlacement3D( *nPlace ) : c3d_null )
|
||||
, edgeNb ( edgeInd )
|
||||
, pl ( new SArray<ptrdiff_t>( partLines ) )
|
||||
, reverse ( rev )
|
||||
@@ -82,10 +82,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -98,7 +98,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -46,10 +46,10 @@ public:
|
||||
\{ */
|
||||
/// \ru Получить регистрационный тип (для копирования, дублирования). \en Get the registration type (for copying, duplication).
|
||||
virtual MbeCreatorType IsA() const;
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru сделать копию \en create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru сделать копию \en create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru выдать свойства объекта \en get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru записать свойства объекта \en set properties of the object
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
private :
|
||||
|
||||
@@ -113,10 +113,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -130,7 +130,7 @@ public :
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
private :
|
||||
|
||||
@@ -27,7 +27,7 @@ class MATH_CLASS MbCurveEvolutionSolid : public MbCurveSweptSolid {
|
||||
protected :
|
||||
MbSweptData sweptData; ///< \ru Данные об образующей. \en Generating curve data.
|
||||
SPtr<MbCurve3D> spineCurve; ///< \ru Направляющая кривая. \en Spine curve.
|
||||
SPtr<MbCurve3D> directionCurve; ///< \ru Кривая вектора ориентации матрицы преобразования (может быть NULL для простой траектории). \en A curve of the transformation matrix orientation (it may be NULL for a simple trajectory).
|
||||
SPtr<MbCurve3D> directionCurve; ///< \ru Кривая вектора ориентации матрицы преобразования (может быть c3d_null для простой траектории). \en A curve of the transformation matrix orientation (it may be c3d_null for a simple trajectory).
|
||||
MbVector3D direction; ///< \ru Вектор ориентации матрицы преобразования (может быть нулевой, в случае автоопределения). \en Vector of transformation matrix orientation (it's equal zero in the mode of automatic direction calculation).
|
||||
SPtr<MbSNameMaker> spineNames; ///< \ru Именователь направляющей. \en An object defining the name of the spine curve.
|
||||
EvolutionValues parameters; ///< \ru Параметры. \en Parameters.
|
||||
@@ -128,10 +128,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -46,10 +46,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( ExtensionValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -59,7 +59,7 @@ public :
|
||||
OperationType oType,
|
||||
const MbSNameMaker & operNames,
|
||||
const RPArray<MbSNameMaker> & contoursNames,
|
||||
const c3d::CreatorsSPtrVector * creators = NULL,
|
||||
const c3d::CreatorsSPtrVector * creators = c3d_null,
|
||||
bool sameCreators = true );
|
||||
|
||||
private :
|
||||
@@ -73,10 +73,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Cделать копию. \en Make a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг. \en Move.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Cделать копию. \en Make a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг. \en Move.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
@@ -94,7 +94,7 @@ public :
|
||||
\en \name Common functions of the rigid solid (forming operations).
|
||||
\{ */
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение. \en Construction.
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение. \en Construction.
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
virtual void InitBasis( RPArray<MbSpaceItem> & items );
|
||||
@@ -139,7 +139,7 @@ IMPL_PERSISTENT_OPS( MbCurveExtrusionSolid )
|
||||
\en Face set the construction is complemented with respect to. \~
|
||||
\param[in] sameShell - \ru Способ копирования граней.
|
||||
\en The method of copying faces. \~
|
||||
\param[in] creators - \ru Строители тела solid.
|
||||
\param[in] solidCreators - \ru Строители тела solid.
|
||||
\en Creators of the solid. \~
|
||||
\param[in] sweptData - \ru Данные об образующей.
|
||||
\en The generating curve data. \~
|
||||
|
||||
@@ -60,10 +60,10 @@ public :
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
@@ -76,7 +76,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
virtual void ReadDistances ( reader &in );
|
||||
|
||||
@@ -69,10 +69,10 @@ public :
|
||||
// \ru Переопределение функций базового класса \en The base class functions override
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -88,7 +88,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
virtual void InitBasis( RPArray<MbSpaceItem> & items );
|
||||
|
||||
@@ -39,15 +39,15 @@ public:
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = NULL );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); ///< \ru Преобразовать элемент согласно матрице \en Transform an element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); ///< \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать элемент согласно матрице \en Transform an element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными. \en Whether the objects are similar
|
||||
@@ -58,7 +58,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); ///< \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); ///< \ru Построение \en Construction
|
||||
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
|
||||
@@ -29,7 +29,7 @@ protected :
|
||||
RPArray<MbContourOnSurface> curves; ///< \ru Плоские сечения. \en Plane sections.
|
||||
SPtr<MbCurve3D> spine; ///< \ru Осевая линия (может отсутствовать). \en Spine curve (can be absent).
|
||||
LoftedValues parameters; ///< \ru Параметры. \en Parameters.
|
||||
RPArray<MbCurve3D> * guideCurves; ///< \ru Массив направляющих кривых (может быть NULL). \en An array of guide curves (can be NULL).
|
||||
RPArray<MbCurve3D> * guideCurves; ///< \ru Массив направляющих кривых (может быть c3d_null). \en An array of guide curves (can be c3d_null).
|
||||
SArray<MbCartPoint3D> * userPnts; ///< \ru Пользовательские точки на сечениях. \en Custom points on the sections.
|
||||
|
||||
public:
|
||||
@@ -64,10 +64,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать \en Transform
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать \en Transform
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -48,13 +48,13 @@ private:
|
||||
|
||||
public:
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
|
||||
// \ru Построение оболочки по исходным данным \en Construction of a shell from the given data
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MedianShellValues & params ) const { params = parameters; }
|
||||
@@ -89,7 +89,7 @@ IMPL_PERSISTENT_OPS( MbMedianShell )
|
||||
The function simultaneously creates the shell and its constructor.\n \~
|
||||
\param[in] solid - \ru Исходное тело.
|
||||
\en The initial solid. \~
|
||||
\param[in] faces - \ru Выбранные пары граней.
|
||||
\param[in] faceIndexes - \ru Выбранные пары граней.
|
||||
\en Selected face pairs. \~
|
||||
\param[in] parameters - \ru Параметры операции.
|
||||
\en Parameters of operation. \~
|
||||
|
||||
@@ -42,12 +42,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); ///< \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); ///< \ru Выдать заголовок свойства объекта \en Get name of object property
|
||||
virtual void GetProperties( MbProperties & ); ///< \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -59,7 +59,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MeshSurfaceValues & params ) const;
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -41,12 +41,12 @@ public: // \ru деструктор \en destructor
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual bool IsSame( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -56,7 +56,7 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru Построение оболочки. \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
// \ru Выдать базовые объекты. \en Get basis objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
@@ -106,12 +106,12 @@ public: // \ru деструктор \en destructor
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual bool IsSame( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -121,7 +121,7 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru построение оболочки \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
// \ru Выдать базовые объекты. \en Get basis objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
|
||||
@@ -62,12 +62,12 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru Обновить форму оболочки \en Update shape of the shell
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
|
||||
+31
-29
@@ -11,6 +11,7 @@
|
||||
|
||||
|
||||
#include <creator.h>
|
||||
#include <mb_vector3d.h>
|
||||
#include <cur_nurbs3d.h>
|
||||
|
||||
|
||||
@@ -24,14 +25,14 @@
|
||||
// ---
|
||||
class MATH_CLASS MbNurbs3DCreator : public MbCreator {
|
||||
private:
|
||||
SArray<MbCartPoint3D> points; // \ru Точки, через которые проходит сплайн \en Points which the spline passes through
|
||||
SArray<double> weights; // \ru Веса \en Weights
|
||||
SArray<double> knots; // \ru Узлы \en Knots
|
||||
RPArray< MbPntMatingData<MbVector3D> > matingData; // \ru Данные сопряжения в точках \en Data about mating in the points
|
||||
MbeSplineParamType paramType; // \ru Тип параметризации \en Parametrization type
|
||||
size_t degree; // \ru Степень сплайна \en Spline degree
|
||||
bool closed; // \ru Замкнутость сплайна \en Spline closedness
|
||||
bool throughPnts; // \ru через точки \en Through points
|
||||
SArray<MbCartPoint3D> points; // \ru Точки, через которые проходит сплайн \en Points which the spline passes through
|
||||
SArray<double> weights; // \ru Веса \en Weights
|
||||
SArray<double> knots; // \ru Узлы \en Knots
|
||||
RPArray<c3d::PntMatingData3D> matingData; // \ru Данные сопряжения в точках \en Data about mating in the points
|
||||
MbeSplineParamType paramType; // \ru Тип параметризации \en Parametrization type
|
||||
size_t degree; // \ru Степень сплайна \en Spline degree
|
||||
bool closed; // \ru Замкнутость сплайна \en Spline closedness
|
||||
bool throughPnts; // \ru через точки \en Through points
|
||||
|
||||
protected:
|
||||
MbNurbs3DCreator( const MbNurbs3DCreator &, MbRegDuplicate * iReg ); // \ru Конструктор копирования \en Copy-constructor
|
||||
@@ -42,24 +43,24 @@ public:
|
||||
MbeSplineParamType paramType, size_t degree, bool closed,
|
||||
const SArray<double> * weights,
|
||||
const SArray<double> * knots,
|
||||
const RPArray< MbPntMatingData<MbVector3D> > & matingData,
|
||||
const RPArray<c3d::PntMatingData3D> & matingData,
|
||||
const MbSNameMaker & snMaker );
|
||||
public:
|
||||
virtual ~MbNurbs3DCreator();
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
virtual void GetBasisItems ( RPArray<MbSpaceItem> & ); // \ru Дать базовые объекты \en Get the basis objects
|
||||
@@ -67,7 +68,7 @@ public:
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = NULL );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/** \} */
|
||||
|
||||
@@ -80,6 +81,7 @@ private:
|
||||
|
||||
IMPL_PERSISTENT_OPS( MbNurbs3DCreator )
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать пространственный сплайн через точки и с сопряжениями.
|
||||
\en Create a spatial spline through points and with the given tangents. \~
|
||||
@@ -94,14 +96,14 @@ IMPL_PERSISTENT_OPS( MbNurbs3DCreator )
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
//---
|
||||
MATH_FUNC (MbCreator *) CreateSplineThrough( const SArray<MbCartPoint3D> & points, // \ru Точки \en Points
|
||||
MbeSplineParamType paramType, // \ru Тип параметризации \en Parametrization type
|
||||
size_t degree, // \ru Порядок сплайна \en Spline degree
|
||||
bool closed, // \ru Замкнуть \en Make close
|
||||
RPArray< MbPntMatingData<MbVector3D> > & transitions, // \ru Сопряжения \en Tangents
|
||||
const MbSNameMaker & snMaker, // \ru Именователь \en An object for naming the new objects
|
||||
MbResultType & resType,
|
||||
MbCurve3D *& resCurve );
|
||||
MATH_FUNC (MbCreator *) CreateSplineThrough( const SArray<MbCartPoint3D> & points, // \ru Точки \en Points
|
||||
MbeSplineParamType paramType, // \ru Тип параметризации \en Parametrization type
|
||||
size_t degree, // \ru Порядок сплайна \en Spline degree
|
||||
bool closed, // \ru Замкнуть \en Make close
|
||||
RPArray<c3d::PntMatingData3D> & transitions, // \ru Сопряжения \en Tangents
|
||||
const MbSNameMaker & snMaker, // \ru Именователь \en An object for naming the new objects
|
||||
MbResultType & resType,
|
||||
MbCurve3D *& resCurve );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -115,15 +117,15 @@ MATH_FUNC (MbCreator *) CreateSplineThrough( const SArray<MbCartPoint3D> & point
|
||||
*/
|
||||
//---
|
||||
MATH_FUNC (MbCreator *) CreateSplineBy( const SArray<MbCartPoint3D> & points, // \ru Точки \en Points
|
||||
size_t degree, // \ru Порядок сплайна \en Spline degree
|
||||
bool closed, // \ru Замкнуть \en Make close
|
||||
size_t degree, // \ru Порядок сплайна \en Spline degree
|
||||
bool closed, // \ru Замкнуть \en Make close
|
||||
const SArray<double> * weights, // \ru Веса \en Weights
|
||||
const SArray<double> * knots, // \ru Узлы \en Knots
|
||||
MbPntMatingData<MbVector3D> * begData, // \ru Сопряжение в начале \en Tangent at the start point
|
||||
MbPntMatingData<MbVector3D> * endData, // \ru Сопряжение в конце \en Tangent at the end point
|
||||
c3d::PntMatingData3D * begData, // \ru Сопряжение в начале \en Tangent at the start point
|
||||
c3d::PntMatingData3D * endData, // \ru Сопряжение в конце \en Tangent at the end point
|
||||
const MbSNameMaker & snMaker, // \ru Именователь \en An object for naming the new objects
|
||||
MbResultType & resType,
|
||||
MbCurve3D *& resCurve );
|
||||
MbResultType & resType,
|
||||
MbCurve3D *& resCurve );
|
||||
|
||||
|
||||
#endif // __CR_NURBS3D_H
|
||||
|
||||
@@ -40,12 +40,12 @@ public: // \ru Деструктор \en Destructor
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -57,7 +57,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru Обновить форму оболочки \en Update shape of the shell
|
||||
|
||||
private:
|
||||
|
||||
@@ -24,38 +24,36 @@ class IProgressIndicator;
|
||||
\en Construct a shell from NURBS-surfaces. \~
|
||||
\details \ru Построить оболочку из NURBS-поверхностей MbSplineSurface по заданному множеству точек условно расположенных в узлах четырехугольной сетки. \n
|
||||
\en Construct a shell from NURBS-surfaces MbSplineSurface by a given set of points conventionally located at the nodes of a quadrangle grid. \n \~
|
||||
\param[in] parameters - \ru Параметры построения.
|
||||
\en Parameters of a shell creation. \~
|
||||
\param[in] params - \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[out] indicator - \ru Индикатор хода построения позволяющий прервать построение.
|
||||
\en Construction process indicator which allow to interrupt the construction. \~
|
||||
\result \ru Возвращает оболочку.
|
||||
\en Returns the constructуed shell. \~
|
||||
\result \ru Возвращает построенную оболочку.
|
||||
\en Returns the constructed shell. \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbFaceShell *) CreateNurbsSurfacesShell( NurbsSurfaceValues & params,
|
||||
const MbSNameMaker & operNames,
|
||||
bool isPhantom,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * = NULL );
|
||||
MATH_FUNC (MbFaceShell *) CreateNurbsSurfacesShell( NurbsSurfaceValues & params,
|
||||
const MbSNameMaker & operNames,
|
||||
bool isPhantom,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// проверить оболочку из нурбс-поверхностей
|
||||
/** \brief \ru Построить оболочку из NURBS-поверхностей.
|
||||
\en Construct a shell from NURBS-surfaces. \~
|
||||
\details \ru Построить оболочку из NURBS-поверхностей MbSplineSurface по заданному множеству точек условно расположенных в узлах четырехугольной сетки. \n
|
||||
\en Construct a shell from NURBS-surfaces MbSplineSurface by a given set of points conventionally located at the nodes of a quadrangle grid. \n \~
|
||||
\param[in] parameters - \ru Параметры построения.
|
||||
\en Parameters of a shell creation. \~
|
||||
// Проверить оболочку из нурбс-поверхностей
|
||||
/** \brief \ru Проверить оболочку из NURBS-поверхностей.
|
||||
\en Check a shell from NURBS-surfaces. \~
|
||||
\details \ru Проверить построенную оболочку из NURBS-поверхностей MbSplineSurface по заданному множеству точек условно расположенных в узлах четырехугольной сетки. \n
|
||||
\en Check a constructed shell from NURBS-surfaces MbSplineSurface by a given set of points conventionally located at the nodes of a quadrangle grid. \n \~
|
||||
\param[in] params - \ru Параметры построения.
|
||||
\en Parameters of a shell creation. \~
|
||||
\param[in] shell - \ru Оболочка, построенная по заданным параметрам.
|
||||
\en The shell constructed by given parameters. \~
|
||||
\param[out] indicator - \ru Индикатор хода построения позволяющий прервать построение.
|
||||
@@ -66,8 +64,8 @@ MATH_FUNC (MbFaceShell *) CreateNurbsSurfacesShell( NurbsSurfaceValues & params,
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) CheckNurbsSurfacesShell( const NurbsSurfaceValues & params,
|
||||
const MbFaceShell & shell,
|
||||
IProgressIndicator * = NULL );
|
||||
const MbFaceShell & shell,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
#endif // __NURBS_SURFACES_SHELL_H
|
||||
|
||||
@@ -50,12 +50,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -67,7 +67,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru построение оболочки \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
@@ -110,7 +110,7 @@ MATH_FUNC (MbCreator *) CreateNurbsShell( NurbsSurfaceValues & parameters,
|
||||
bool isPhantom,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell,
|
||||
IProgressIndicator * indicator = NULL );
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
|
||||
|
||||
#endif // __CR_NURBS_SURFACES_SOLID_H
|
||||
|
||||
@@ -60,15 +60,15 @@ public :
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -81,7 +81,7 @@ public :
|
||||
virtual bool SetInternalCreators( MbeCreatorType, c3d::CreatorsSPtrVector & ); // \ru Получить внутренние построители по типу. \en Get internal creators by type.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = NULL );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL );
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -72,7 +72,7 @@ public :
|
||||
|
||||
// \ru Построение оболочки по исходным данным \en Construction of a shell from the given data
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( PatchValues & params ) const { params = parameters; }
|
||||
@@ -145,8 +145,8 @@ MATH_FUNC (MbCreator *) CreatePatchSet( const RPArray<MbPatchCurve> & initEdges,
|
||||
Одновременно с построением оболочки функция создает её строитель.\n
|
||||
\en Construct a patch-shaped shell from the given curves.
|
||||
The function simultaneously creates the shell and its constructor.\n \~
|
||||
\param[in] initEdges - \ru Кривые, определяющие края заплатки.
|
||||
\en Curves determining the bounds of the patch. \~
|
||||
\param[in] initCurves - \ru Кривые, определяющие края заплатки.
|
||||
\en Curves determining the bounds of the patch. \~
|
||||
\param[in] parameters - \ru Параметры построения.
|
||||
\en Parameters of shell creation. \~
|
||||
\param[in] operNames - \ru Именователь граней.
|
||||
@@ -160,11 +160,11 @@ MATH_FUNC (MbCreator *) CreatePatchSet( const RPArray<MbPatchCurve> & initEdges,
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbCreator *)CreatePatchSet( const RPArray<MbCurve3D> & initCurves,
|
||||
const PatchValues & parameters,
|
||||
const MbSNameMaker & operNames,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell );
|
||||
MATH_FUNC (MbCreator *) CreatePatchSet( const RPArray<MbCurve3D> & initCurves,
|
||||
const PatchValues & parameters,
|
||||
const MbSNameMaker & operNames,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell );
|
||||
|
||||
|
||||
#endif // __CR_PATCH_CREATOR_H
|
||||
|
||||
@@ -49,15 +49,15 @@ public:
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
virtual bool SetInternalCreators( MbeCreatorType, c3d::CreatorsSPtrVector & ); // \ru Получить внутренние построители по типу. \en Get internal creators by type.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = NULL );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -65,10 +65,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -43,10 +43,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -59,7 +59,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = NULL ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( RibValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -46,12 +46,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); ///< \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); ///< \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); ///< \ru Записать свойства объекта \en Write properties of the object
|
||||
@@ -63,7 +63,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL );
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( RuledSurfaceValues & params ) const;
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -54,10 +54,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -75,7 +75,7 @@ public :
|
||||
\en \name Common functions of the rigid solid (forming operations).
|
||||
\{ */
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version );
|
||||
/** \} */
|
||||
|
||||
@@ -47,15 +47,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -58,14 +58,14 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBendByEdgeValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -49,15 +49,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBendOverSegValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -50,15 +50,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
@@ -122,7 +122,7 @@ MATH_FUNC (MbCreator *) CreateBendUnbend( SPtr<MbFaceShell> & init
|
||||
const MbSNameMaker & names,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell,
|
||||
RPArray<MbContour3D> * ribContours = NULL );
|
||||
RPArray<MbContour3D> * ribContours = c3d_null );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,15 +44,15 @@ public:
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию. \en Create a copy.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию. \en Create a copy.
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
|
||||
virtual void GetProperties ( MbProperties & properties ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties ( const MbProperties & properties ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
// \ru Построение оболочки листового тела. \en Construction of a sheet metal shell.
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell, RPArray <MbSpaceItem> *items = NULL );
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell, RPArray <MbSpaceItem> *items = c3d_null );
|
||||
// \ru Получить параметры. \en Get the parameters.
|
||||
void GetParameters( MbSolidToSheetMetalValues & params ) const { params = parameters; }
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -50,15 +50,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbClosedCornerValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -57,15 +57,15 @@ public:
|
||||
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJointBendValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -82,10 +82,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -101,7 +101,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
|
||||
|
||||
@@ -45,15 +45,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -42,15 +42,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -43,10 +43,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version, bool forAll );
|
||||
|
||||
|
||||
@@ -68,10 +68,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -85,7 +85,7 @@ public :
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
const MbFaceShell * GetShell() const { return outer; } /// \ru Дать оболочку. \en Get a shell.
|
||||
@@ -158,7 +158,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
size_t i;
|
||||
for ( i = 0; i < creatorsCnt; ++i ) {
|
||||
MbCreator * creator = creators[i];
|
||||
if ( creator != NULL ) {
|
||||
if ( creator != c3d_null ) {
|
||||
if ( creator->IsA() == ct_SimpleCreator ) {
|
||||
MbSimpleCreator * simpleCreator = static_cast<MbSimpleCreator *>(creator);
|
||||
simpleShells.push_back( std::make_pair( i, simpleCreator->GetShell() ) );
|
||||
@@ -184,7 +184,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
if ( shell1 && shell2 && (shell1 != shell2) ) {
|
||||
if ( shell1->IsSame( *shell2, LENGTH_EPSILON ) ) {
|
||||
sc2.SetShell( *shell1 );
|
||||
simpleShells[j].second = NULL;
|
||||
simpleShells[j].second = c3d_null;
|
||||
isReplaced = true;
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
std::sort( simpleShells.begin(), simpleShells.end(), ::SortByShellPointers );
|
||||
simpleShells.erase( std::unique( simpleShells.begin(), simpleShells.end(), ::AreEqualShellPointers ), simpleShells.end() );
|
||||
if ( simpleShells.size() > 1 ) {
|
||||
if ( simpleShells.front().second == NULL )
|
||||
if ( simpleShells.front().second == c3d_null )
|
||||
simpleShells.erase( simpleShells.begin() );
|
||||
}
|
||||
}
|
||||
@@ -215,7 +215,7 @@ bool MbSimpleCreator::IsThisShell( const MbFaceShell & shell, const CreatorsVect
|
||||
if ( creators.size() > 0 ) {
|
||||
for ( size_t i = creators.size(); i--; ) {
|
||||
const MbCreator * creator = creators[i];
|
||||
if ( (creator != NULL) && (creator->IsA() == ct_SimpleCreator) ) {
|
||||
if ( (creator != c3d_null) && (creator->IsA() == ct_SimpleCreator) ) {
|
||||
const MbSimpleCreator & simpleCreator = static_cast<const MbSimpleCreator &>(*creator);
|
||||
if ( simpleCreator.GetShell() == &shell ) {
|
||||
res = true;
|
||||
@@ -253,10 +253,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -267,7 +267,7 @@ public :
|
||||
virtual bool IsSimilar ( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbReverseCreator )
|
||||
|
||||
@@ -42,10 +42,10 @@ public :
|
||||
|
||||
virtual MbeCreatorType IsA() const = 0; // \ru Тип элемента \en A type of element
|
||||
virtual MbeCreatorType Type() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate *iReg = NULL ) const = 0; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate *iReg = c3d_null ) const = 0; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ) = 0; // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ) = 0; // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -58,7 +58,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ) = 0; // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ) = 0; // \ru Построение \en Construction
|
||||
|
||||
/// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( SmoothValues & params ) const { params = parameters; }
|
||||
|
||||
+27
-27
@@ -91,7 +91,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
}
|
||||
/// \ru Конструктор по двумерному контуру в локальной системе координат. \en Constructor by two-dimensional contour in the local coordinate system.
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
SPtr<MbContour> sketchContour;
|
||||
sketchContour = same ? const_cast<MbContour *>(&item) : static_cast<MbContour *>(&item.Duplicate());
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
C3D_ASSERT( (direction.MaxFactor() < LENGTH_EPSILON) || !direction.Orthogonal( place.GetAxisZ(), ANGLE_EPSILON ) );
|
||||
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
::AddRefItems( items, same, sketchContours );
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
C3D_ASSERT( (direction.MaxFactor() < LENGTH_EPSILON) || !direction.Orthogonal( place.GetAxisZ(), ANGLE_EPSILON ) );
|
||||
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
::AddRefItems( items, same, spaceCurves );
|
||||
}
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
::AddRefItems( items, same, spaceCurves );
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
SPtr<MbSurface> surface;
|
||||
surface = same ? const_cast<MbSurface *>(&item) : static_cast<MbSurface *>(&item.Duplicate());
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
::AddRefItems( items, same, surfaces );
|
||||
}
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( NULL )
|
||||
, solidShell ( c3d_null )
|
||||
{
|
||||
::AddRefItems( items, same, surfaces );
|
||||
}
|
||||
@@ -322,12 +322,12 @@ public:
|
||||
DeleteItems();
|
||||
size_t creatorsCnt = solidCreators.size();
|
||||
if ( creatorsCnt > 0 ) {
|
||||
MbRegDuplicate * iReg = NULL;
|
||||
MbRegDuplicate * iReg = c3d_null;
|
||||
MbAutoRegDuplicate autoReg( iReg );
|
||||
SPtr<MbCreator> creator;
|
||||
creators.reserve( creatorsCnt );
|
||||
for ( size_t k = 0; k < creatorsCnt; ++k ) {
|
||||
if ( solidCreators[k] != NULL ) {
|
||||
if ( solidCreators[k] != c3d_null ) {
|
||||
creator = sameCreators ? &const_cast<MbCreator &>( *solidCreators[k] ) : static_cast<MbCreator *>( &solidCreators[k]->Duplicate( iReg ) );
|
||||
creators.push_back( creator );
|
||||
::DetachItem( creator );
|
||||
@@ -343,17 +343,17 @@ public:
|
||||
/// \ru Являются ли объекты подобными. \en Determine whether the objects are similar.
|
||||
bool IsSimilar( const MbSplitData & ) const;
|
||||
/// \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
void Transform( const MbMatrix3D &, MbRegTransform * = NULL );
|
||||
void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
/// \ru Сдвинуть по вектору. \en Shift by a vector.
|
||||
void Move ( const MbVector3D &, MbRegTransform * = NULL );
|
||||
void Move ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
/// \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL );
|
||||
void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
/// \ru Отсутствуют ли объекты? \en Are the objects absent?
|
||||
bool IsEmpty() const {
|
||||
return ( sketchContours.empty() &&
|
||||
spaceCurves.empty() &&
|
||||
surfaces.empty() &&
|
||||
(creators.empty() && (solidShell == NULL)) ); }
|
||||
(creators.empty() && (solidShell == c3d_null)) ); }
|
||||
/// \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
bool IsSame( const MbSplitData &, double accuracy ) const;
|
||||
|
||||
@@ -377,9 +377,9 @@ public:
|
||||
/// \ru Установить направление выдавливания двумерных кривых. \en Set extrusion direction of two-dimensional curves.
|
||||
void SetSketchSense( MbeSenseValue zdir ) { sense = zdir; }
|
||||
/// \ru Получить двумерную кривую по индексу. \en Get two-dimensional curve by index.
|
||||
const MbContour * GetSketchCurve( size_t k ) const { return ((k < sketchContours.size()) ? sketchContours[k].get() : NULL ); }
|
||||
const MbContour * GetSketchCurve( size_t k ) const { return ((k < sketchContours.size()) ? sketchContours[k].get() : c3d_null ); }
|
||||
/// \ru Получить двумерную кривую по индексу. \en Get two-dimensional curve by index.
|
||||
MbContour * SetSketchCurve( size_t k ) { return ((k < sketchContours.size()) ? sketchContours[k].get() : NULL ); }
|
||||
MbContour * SetSketchCurve( size_t k ) { return ((k < sketchContours.size()) ? sketchContours[k].get() : c3d_null ); }
|
||||
/// \ru Получить все двумерные кривые. \en Get all two-dimensional curves.
|
||||
template <class PlaneContoursVector>
|
||||
void GetSketchCurves( PlaneContoursVector & curvs ) const
|
||||
@@ -401,9 +401,9 @@ public:
|
||||
/// \ru Выдать количество пространственных кривых. \en Get number of spatial curves.
|
||||
size_t GetSpaceCurvesCount() const { return spaceCurves.size(); }
|
||||
/// \ru Получить пространственную кривую по индексу. \en Get a spatial curve by index.
|
||||
const MbCurve3D * GetSpaceCurve( size_t k ) const { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : NULL ); }
|
||||
const MbCurve3D * GetSpaceCurve( size_t k ) const { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : c3d_null ); }
|
||||
/// \ru Получить пространственную кривую по индексу. \en Get a spatial curve by index.
|
||||
MbCurve3D * SetSpaceCurve( size_t k ) { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : NULL ); }
|
||||
MbCurve3D * SetSpaceCurve( size_t k ) { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : c3d_null ); }
|
||||
/// \ru Получить все пространственные кривые. \en Get all spatial curves.
|
||||
template <class SpaceCurvesVector>
|
||||
void GetSpaceCurves( SpaceCurvesVector & curvs ) const
|
||||
@@ -425,9 +425,9 @@ public:
|
||||
/// \ru Выдать количество поверхностей. \en Get number of surfaces.
|
||||
size_t GetSurfacesCount() const { return surfaces.size(); }
|
||||
/// \ru Получить поверхность по индексу. \en Get a surface by index.
|
||||
const MbSurface * GetSurface( size_t k ) const { return ((k < surfaces.size()) ? surfaces[k].get() : NULL); }
|
||||
const MbSurface * GetSurface( size_t k ) const { return ((k < surfaces.size()) ? surfaces[k].get() : c3d_null); }
|
||||
/// \ru Получить поверхность по индексу. \en Get a surface by index.
|
||||
MbSurface * SetSurface( size_t k ) { return ((k < surfaces.size()) ? surfaces[k].get() : NULL); }
|
||||
MbSurface * SetSurface( size_t k ) { return ((k < surfaces.size()) ? surfaces[k].get() : c3d_null); }
|
||||
/// \ru Получить все поверхности. \en Get all surfaces.
|
||||
template <class SurfacesVector>
|
||||
void GetSurfaces( SurfacesVector & surfs ) const
|
||||
@@ -449,9 +449,9 @@ public:
|
||||
/// \ru Выдать количество строителей тела. \en Get number of solid creators.
|
||||
size_t GetCreatorsCount() const { return creators.size(); }
|
||||
/// \ru Получить строитель по индексу. \en Get constructor by index.
|
||||
const MbCreator * GetCreator( size_t k ) const { return ((k < creators.size()) ? creators[k].get() : NULL ); }
|
||||
const MbCreator * GetCreator( size_t k ) const { return ((k < creators.size()) ? creators[k].get() : c3d_null ); }
|
||||
/// \ru Получить строитель по индексу. \en Get constructor by index.
|
||||
MbCreator * SetCreator( size_t k ) { return ((k < creators.size()) ? creators[k].get() : NULL ); }
|
||||
MbCreator * SetCreator( size_t k ) { return ((k < creators.size()) ? creators[k].get() : c3d_null ); }
|
||||
/// \ru Получить все строители. \en Get all creators.
|
||||
template <class CreatorsVector>
|
||||
void GetCreators( CreatorsVector & crs ) const
|
||||
@@ -468,17 +468,17 @@ public:
|
||||
template <class CreatorsVector>
|
||||
void GetCreatorsCopies( CreatorsVector & crs ) const
|
||||
{
|
||||
MbRegDuplicate * iReg = NULL;
|
||||
MbRegDuplicate * iReg = c3d_null;
|
||||
MbAutoRegDuplicate autoReg( iReg );
|
||||
|
||||
crs.reserve( crs.size() + creators.size() );
|
||||
c3d::CreatorSPtr creator;
|
||||
for ( size_t k = 0, addCnt = creators.size(); k < addCnt; ++k ) {
|
||||
if ( creators[k] != NULL )
|
||||
if ( creators[k] != c3d_null )
|
||||
creator = static_cast<MbCreator *>( &creators[k]->Duplicate( iReg ) );
|
||||
crs.push_back( creator );
|
||||
::DetachItem( creator );
|
||||
creator = NULL;
|
||||
creator = c3d_null;
|
||||
}
|
||||
}
|
||||
/// \ru Получить все строители. \en Get all creators.
|
||||
|
||||
@@ -41,10 +41,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -58,7 +58,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private: // \ru Не реализовано \en Not implemented
|
||||
// \ru Объявление конструктора копирования без реализации, чтобы не было копирования по умолчанию. \en Declaration without implementation of the copy-constructor to prevent copying by default.
|
||||
|
||||
@@ -67,15 +67,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBeadValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -66,13 +66,13 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties ( const MbProperties &properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJalousieValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -63,13 +63,13 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJogValues & params ) const { params = jogParameters; }
|
||||
|
||||
@@ -43,15 +43,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -46,10 +46,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = NULL ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( SheetRibValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -49,15 +49,15 @@ public:
|
||||
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
// \ru Дать базовые объекты. \en Get the base objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
|
||||
|
||||
@@ -65,15 +65,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties ( const MbProperties &properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = NULL ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbStampingValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -60,15 +60,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties ( const MbProperties &properties ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = NULL ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbStampingValues & params ) const { params = parameters; }
|
||||
|
||||
+188
-141
@@ -1,141 +1,188 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
\file
|
||||
\brief \ru Строитель оболочки из листового материала штамповкой телом-инструментом.
|
||||
\en Constructor of a shell from the sheet material with stamping by a tool solid.
|
||||
*/
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __CR_USERSTAMP_SOLID_H
|
||||
#define __CR_USERSTAMP_SOLID_H
|
||||
|
||||
|
||||
#include <creator.h>
|
||||
#include <sheet_metal_param.h>
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Строитель оболочки из листового материала штамповкой телом-инструментом.
|
||||
\en Constructor of a shell from the sheet material with stamping by tool solid. \~
|
||||
\details \ru Строитель оболочки из листового материала закрытой или открытой штамповкой телом-инструментом.
|
||||
Тело-инструмент может являться пуансоном или матрицей.\n
|
||||
Строятся штамповки двух типов: \n
|
||||
закрытая - не указаны вскрываемые грани тела-инструмента, \n
|
||||
открытая - когда лист пробит штамповкой насквозь, указаны вскрываемые грани. \n
|
||||
\en Constructor of a shell from the sheet material by open or closed stamping by tool solid.
|
||||
The tool solid may be a punch or a die. \n
|
||||
Stamping of two types are constructed: \n
|
||||
closed - pierce faces of tool solid are not specified, \n
|
||||
open - when a sheet is punched through by stamping, pierce faces of tool solid are specified. \n \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
class MATH_CLASS MbUserStampSolid : public MbCreator {
|
||||
private:
|
||||
MbItemIndex faceIndex; ///< \ru Индекс грани, на которой строится штамповка. \en Index of the face the stamping is constructed on.
|
||||
MbItemIndex pairFaceIndex; ///< \ru Индекс грани парной к грани штамповки. \en Index of the face which is pair to the stamp face.
|
||||
SArray<MbItemIndex> pierceIndices; ///< \ru Индексы граней для вырубки. \en Face indicies for opening.
|
||||
RPArray<MbCreator> creators; ///< \ru Журнал построения оболочки тела-инструмента. \en History tree of the shell of the tool solid.
|
||||
size_t countOne; ///< \ru Разделитель строителей тел-операндов. \en Separator of operand solids creators.
|
||||
MbToolStampingValues parameters; ///< \ru Параметры штамповки. \en Stamping parameters.
|
||||
double thickness; ///< \ru Толщина листа. \en The thickness of the sheet metal.
|
||||
bool punch; ///< \ru Является тело-инструмент пуансоном или матрицей? \en Is tool body a punch or a die.
|
||||
|
||||
public :
|
||||
MbUserStampSolid( const RPArray<MbCreator> & creatorsTool,
|
||||
const bool sameTool,
|
||||
const MbItemIndex & faceIndex,
|
||||
const MbItemIndex & pairFaceIndex,
|
||||
SArray<MbItemIndex> & pierceIndices,
|
||||
const MbToolStampingValues & params,
|
||||
const double thickness,
|
||||
const bool isPunch,
|
||||
const MbSNameMaker & names );
|
||||
private:
|
||||
MbUserStampSolid( const MbUserStampSolid &, MbRegDuplicate * iReg );
|
||||
|
||||
public:
|
||||
virtual ~MbUserStampSolid();
|
||||
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию. \en Create a copy.
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties ( const MbProperties &properties ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта. \en Get a name of object property.
|
||||
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = NULL ); // \ru Построение оболочки штамповки. \en Construction of a stamping shell.
|
||||
|
||||
// \ru Получить параметры. \en Get the parameters.
|
||||
void GetParameters( MbToolStampingValues & params ) const { params = parameters; }
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
void SetParameters( const MbToolStampingValues & params ) { parameters = params; }
|
||||
|
||||
private:
|
||||
OBVIOUS_PRIVATE_COPY( MbUserStampSolid )
|
||||
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbUserStampSolid )
|
||||
};
|
||||
|
||||
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] 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] toolSolid - \ru Оболочка тела-инструмента.
|
||||
\en A shell of tool solid. \~
|
||||
\param[in] sameShellTool - \ru Режим копирования оболочки тела-инструмента.
|
||||
\en Mode of copying the tool shell. \~
|
||||
\param[in] punch - \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] result - \ru Результирующее тело.
|
||||
\en The resultant solid. \~
|
||||
\result \ru Возвращает строитель оболочки.
|
||||
\en Returns the shell constructor. \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbCreator *) CreateUserStamp( MbFaceShell * initialShell, // Исходная оболочка,
|
||||
const MbeCopyMode sameShell, // флаг способа использования исходной оболочки,
|
||||
const MbFace & targetFace, // грань штамповки,
|
||||
const RPArray<MbCreator> & creatorsTool, // журнал построения инструмента,
|
||||
MbFaceShell & toolShell, // оболочка тела-инструмента,
|
||||
const MbeCopyMode sameShellTool, // флаг способа использования оболочки инструмента,
|
||||
bool isPunch, // является инструмент пуансоном или матрицей,
|
||||
const RPArray<MbFace> & pierceFaces, // вскрываемые для вырубки грани инструмента,
|
||||
const MbToolStampingValues & params, // параметры штамповки,
|
||||
const MbSNameMaker & nameMaker, // именователь,
|
||||
MbResultType & res, // флаг успешности операции,
|
||||
SPtr<MbFaceShell> & resultShell ); // результирующая оболочка.
|
||||
|
||||
|
||||
#endif // __CR_USERSTAMP_SOLID_H
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
\file
|
||||
\brief \ru Строитель оболочки из листового материала штамповкой телом-инструментом.
|
||||
\en Constructor of a shell from the sheet material with stamping by a tool solid.
|
||||
*/
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __CR_USERSTAMP_SOLID_H
|
||||
#define __CR_USERSTAMP_SOLID_H
|
||||
|
||||
|
||||
#include <creator.h>
|
||||
#include <sheet_metal_param.h>
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Строитель оболочки из листового материала штамповкой телом-инструментом.
|
||||
\en Constructor of a shell from the sheet material with stamping by tool solid. \~
|
||||
\details \ru Строитель оболочки из листового материала закрытой или открытой штамповкой телом-инструментом.
|
||||
Тело-инструмент может являться пуансоном или матрицей.\n
|
||||
Строятся штамповки двух типов: \n
|
||||
закрытая - не указаны вскрываемые грани тела-инструмента, \n
|
||||
открытая - когда лист пробит штамповкой насквозь, указаны вскрываемые грани. \n
|
||||
\en Constructor of a shell from the sheet material by open or closed stamping by tool solid.
|
||||
The tool solid may be a punch or a die. \n
|
||||
Stamping of two types are constructed: \n
|
||||
closed - pierce faces of tool solid are not specified, \n
|
||||
open - when a sheet is punched through by stamping, pierce faces of tool solid are specified. \n \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
class MATH_CLASS MbUserStampSolid : public MbCreator {
|
||||
private:
|
||||
MbItemIndex faceIndex; ///< \ru Индекс грани, на которой строится штамповка. \en Index of the face the stamping is constructed on.
|
||||
MbItemIndex pairFaceIndex; ///< \ru Индекс грани парной к грани штамповки. \en Index of the face which is pair to the stamp face.
|
||||
SArray<MbItemIndex> pierceIndices; ///< \ru Индексы граней для вырубки. \en Face indicies for opening.
|
||||
RPArray<MbCreator> creators; ///< \ru Журнал построения оболочки тела-инструмента. \en History tree of the shell of the tool solid.
|
||||
size_t countOne; ///< \ru Разделитель строителей тел-операндов. \en Separator of operand solids creators.
|
||||
MbToolStampingValues parameters; ///< \ru Параметры штамповки. \en Stamping parameters.
|
||||
double thickness; ///< \ru Толщина листа. \en The thickness of the sheet metal.
|
||||
bool punch; ///< \ru Является тело-инструмент пуансоном или матрицей? \en Is tool body a punch or a die.
|
||||
|
||||
public :
|
||||
MbUserStampSolid( const RPArray<MbCreator> & creatorsTool,
|
||||
const bool sameTool,
|
||||
const MbItemIndex & faceIndex,
|
||||
const MbItemIndex & pairFaceIndex,
|
||||
SArray<MbItemIndex> & pierceIndices,
|
||||
const MbToolStampingValues & params,
|
||||
const double thickness,
|
||||
const bool isPunch,
|
||||
const MbSNameMaker & names );
|
||||
private:
|
||||
MbUserStampSolid( const MbUserStampSolid &, MbRegDuplicate * iReg );
|
||||
|
||||
public:
|
||||
virtual ~MbUserStampSolid();
|
||||
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию. \en Create a copy.
|
||||
|
||||
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties ( const MbProperties &properties ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта. \en Get a name of object property.
|
||||
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение оболочки штамповки. \en Construction of a stamping shell.
|
||||
|
||||
// \ru Получить параметры. \en Get the parameters.
|
||||
void GetParameters( MbToolStampingValues & params ) const { params = parameters; }
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
void SetParameters( const MbToolStampingValues & params ) { parameters = params; }
|
||||
|
||||
private:
|
||||
OBVIOUS_PRIVATE_COPY( MbUserStampSolid )
|
||||
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbUserStampSolid )
|
||||
};
|
||||
|
||||
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] 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] toolSolid - \ru Оболочка тела-инструмента.
|
||||
\en A shell of tool solid. \~
|
||||
\param[in] sameShellTool - \ru Режим копирования оболочки тела-инструмента.
|
||||
\en Mode of copying the tool shell. \~
|
||||
\param[in] punch - \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] result - \ru Результирующее тело.
|
||||
\en The resultant solid. \~
|
||||
\result \ru Возвращает строитель оболочки.
|
||||
\en Returns the shell constructor. \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbCreator *) CreateUserStamp( MbFaceShell * initialShell, // Исходная оболочка,
|
||||
const MbeCopyMode sameShell, // флаг способа использования исходной оболочки,
|
||||
const MbFace & targetFace, // грань штамповки,
|
||||
const RPArray<MbCreator> & creatorsTool, // журнал построения инструмента,
|
||||
MbFaceShell & toolShell, // оболочка тела-инструмента,
|
||||
const MbeCopyMode sameShellTool, // флаг способа использования оболочки инструмента,
|
||||
bool isPunch, // является инструмент пуансоном или матрицей,
|
||||
const RPArray<MbFace> & pierceFaces, // вскрываемые для вырубки грани инструмента,
|
||||
const MbToolStampingValues & params, // параметры штамповки,
|
||||
const MbSNameMaker & nameMaker, // именователь,
|
||||
MbResultType & res, // флаг успешности операции,
|
||||
SPtr<MbFaceShell> & 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. \~
|
||||
\param[out] addShell - \ru Добавляемая часть.
|
||||
\en Added part. \~
|
||||
\param[out] substractShell - \ru Вычитаемая часть.
|
||||
\en Substracted part. \~
|
||||
\result \ru - Код результата операции.
|
||||
\en - The operation result code. \~
|
||||
\ingroup Model_Creators
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) MakeUserStampShellParts ( MbFaceShell * initialShell, // Исходная оболочка,
|
||||
const MbeCopyMode sameShell, // флаг способа использования исходной оболочки,
|
||||
const MbFace & targetFace, // грань штамповки,
|
||||
MbFaceShell & toolShell, // оболочка тела-инструмента,
|
||||
const MbeCopyMode sameShellTool, // флаг способа использования оболочки инструмента,
|
||||
bool isPunch, // является инструмент пуансоном или матрицей,
|
||||
MbeStampingCreatedType add, // тип добавляемой части штамповки,
|
||||
const RPArray<MbFace> & pierceFaces, // вскрываемые для вырубки грани инструмента,
|
||||
const MbToolStampingValues & params, // параметры штамповки,
|
||||
const MbSNameMaker & nameMaker, // именователь,
|
||||
SPtr<MbFaceShell> & addShell, // добавляемая часть
|
||||
SPtr<MbFaceShell> & substractShell ); // вычитаемая часть
|
||||
|
||||
#endif // __CR_USERSTAMP_SOLID_H
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user