Files
Extern/C3d/Include/cr_mesh_shell.h
T
SaraP b38b0825ee Extern :
- C3d aggiornamento delle librerie ( 114902).
2021-09-28 17:11:24 +02:00

104 lines
6.4 KiB
C++

////////////////////////////////////////////////////////////////////////////////
/**
\file
\brief \ru Построение оболочки на сетке кривых.
\en Construction of a shell from a mesh of curves. \~
*/
////////////////////////////////////////////////////////////////////////////////
#ifndef __CR_MESH_SHELL_H
#define __CR_MESH_SHELL_H
#include <math_define.h>
#include <mb_operation_result.h>
#include <creator.h>
#include <op_shell_parameter.h>
class MATH_CLASS MbFaceShell;
//------------------------------------------------------------------------------
/** \brief \ru Строитель оболочки на сетке кривых.
\en Constructor of a shell from a mesh of curves. \~
\details \ru Строитель оболочки на сетке кривых, образованной двумя сечействами кривых. \n
\en Constructor of a shell from a mesh of curves formed by two sets of curves. \n \~
\ingroup Model_Creators
*/
//---
class MATH_CLASS MbMeshShell : public MbCreator {
private :
MeshSurfaceValues parameters; ///< \ru Параметры построения. \en Construction parameters.
mutable bool changed; ///< \ru Флаг изменения параметров. \en Flag of parameters modification.
private:
/// \ru Конструктор копирования. \en Copy-constructor.
MbMeshShell( const MbMeshShell & obj, MbRegDuplicate * ireg );
public:
/// \ru Конструктор по параметрам операции и именователю на оригиналах кривых и копиях поверхностей. \en Constructor by operation parameters and name-maker for original curves and copies of surfaces.
MbMeshShell( const MeshSurfaceValues & pars, const MbSNameMaker & n );
virtual ~MbMeshShell();
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
virtual MbeCreatorType IsA() const; ///< \ru Тип элемента \en Element type
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = nullptr ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); ///< \ru Сдвиг по вектору \en Translation by the vector
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); ///< \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
virtual void SetProperties( const MbProperties & ); ///< \ru Записать свойства объекта \en Write properties of the object
virtual void GetBasisItems( RPArray<MbSpaceItem> & ); // \ru Дать базовые объекты \en Get the basis objects
virtual void GetBasisPoints( MbControlData3D & ) const; // \ru Выдать контрольные точки объекта. \en Get control points of object.
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
public:
/// \ru Построение оболочки \en Creation of a shell
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
RPArray<MbSpaceItem> * items = nullptr );
// \ru Дать параметры. \en Get the parameters.
void GetParameters( MeshSurfaceValues & params ) const;
// \ru Установить параметры. \en Set the parameters.
void SetParameters( const MeshSurfaceValues & params );
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbMeshShell )
OBVIOUS_PRIVATE_COPY( MbMeshShell )
}; // MbMeshShell
IMPL_PERSISTENT_OPS( MbMeshShell )
//------------------------------------------------------------------------------
/** \brief \ru Построить оболочку на сетке кривых.
\en Construct a shell from a mesh of curves. \~
\details \ru Построить оболочку на сетке кривых, образованной двумя сечействами кривых. \n
Одновременно с построением оболочки функция создаёт её строитель.\n
\en Create a shell from a mesh of curves formed by two sets of curves. \n
The function simultaneously creates the shell and its constructor.\n \~
\param[in] parameters - \ru Параметры построения.
\en Parameters of a shell creation. \~
\param[in] operNames - \ru Именователь граней.
\en An object for naming faces. \~
\param[in] isPhantom - \ru Режим создания фантома.
\en Create in the phantom mode. \~
\param[out] res - \ru Код результата операции.
\en Operation result code. \~
\param[out] shell - \ru Построенная оболочка.
\en The resultant shell. \~
\result \ru Возвращает строитель оболочки.
\en Returns the shell constructor. \~
\ingroup Model_Creators
*/
// ---
MATH_FUNC (MbCreator *) CreateMeshShell( MeshSurfaceValues & parameters,
const MbSNameMaker & operNames,
bool isPhantom,
MbResultType & res,
MbFaceShell *& shell );
#endif // __CR_MESH_SHELL_H