- C3d aggiornamento librerie ( 118044).
This commit is contained in:
SaraP
2025-08-28 14:47:28 +02:00
parent daccdfc398
commit f05795ffff
53 changed files with 1756 additions and 520 deletions
+68 -24
View File
@@ -26,26 +26,21 @@
#define __ACTION_SHELL_H
#include <templ_rp_array.h>
#include <templ_s_array.h>
#include <mb_cart_point3d.h>
#include <space_item.h>
#include <op_boolean_flags.h>
#include <op_shell_parameter.h>
#include <op_swept_parameter.h>
#include <topology_faceset.h>
#include <mb_operation_result.h>
class MbCurve;
class MbCurve3D;
class MbSurface;
class MbCurveEdge;
class MbFace;
class MbSolid;
class MbSNameMaker;
class MbPatchCurve;
class IProgressIndicator;
class MbCurve;
class MbCurve3D;
class MbSurface;
class MbCurveEdge;
class MbFace;
class MbSolid;
class MbSNameMaker;
class MbPatchCurve;
class IProgressIndicator;
//------------------------------------------------------------------------------
@@ -168,6 +163,8 @@ MATH_FUNC (MbResultType) NurbsSurfacesShell( MbNurbsSurfacesShellParams & params
\en Create a solid from a set of curves. \~
\details \ru Построить тело по сети кривых, заданных в параметрах построения. \n
\en Create a solid from a set of curves specified in the parameters. \n \~
\deprecated \ru Функция устарела, взамен использовать функцию со структурой результата построения.
\en The constructor is deprecated. Instead, use a function MeshShell with a structure MbMeshShellResults. \~
\param[in] params - \ru Параметры операции.
\en The operation parameters. \~
\param[out] result - \ru Результирующая оболочка.
@@ -177,9 +174,27 @@ MATH_FUNC (MbResultType) NurbsSurfacesShell( MbNurbsSurfacesShellParams & params
\ingroup Shell_Modeling
*/
// ---
DEPRECATE_DECLARE_REPLACE ( MeshShell with a structure MbMeshShellResults )
MATH_FUNC (MbResultType) MeshShell( const MbMeshShellParameters & params,
c3d::SolidSPtr & result );
//------------------------------------------------------------------------------
/** \brief \ru Построить тело по сети кривых.
\en Create a solid from a set of curves. \~
\details \ru Построить тело по сети кривых, заданных в параметрах построения. \n
\en Create a solid from a set of curves specified in the parameters. \n \~
\param[in] params - \ru Параметры операции.
\en The operation parameters. \~
\param[out] result - \ru Результаты построения.
\en Operation results. \~
\return \ru Возвращает код результата операции.
\en Returns operation result code. \~
\ingroup Shell_Modeling
*/
// ---
MATH_FUNC (MbResultType) MeshShell( const MbMeshShellParameters & params,
MbMeshShellResults & result );
//------------------------------------------------------------------------------
/** \brief \ru Усечь (обрезать) незамкнутое тело.
@@ -194,8 +209,8 @@ MATH_FUNC (MbResultType) MeshShell( const MbMeshShellParameters & params,
\en Whether to copy the initial shells. \~
\param[in] operNames - \ru Именователь.
\en An object for naming the new objects. \~
\param[in] truncatingItems - \ru Усекающие объекты.
\en Truncating objects. \~
\param[in] truncatingItems - \ru Усекающие объекты ( кривые, поверхности или тела ).
\en Truncating objects ( curves, surfaces or solids ). \~
\param[in] truncatingOrients - \ru Ориентация усекающих объектов.
\en The truncating objects orientation. \~
\param[in] truncatingSplitMode - \ru Кривые используются как линии разъема.
@@ -213,6 +228,7 @@ MATH_FUNC (MbResultType) MeshShell( const MbMeshShellParameters & params,
\ingroup Shell_Modeling
*/
// ---
DEPRECATE_DECLARE_REPLACE ( TruncateShell with MbTruncateShellParams )
MATH_FUNC (MbResultType) TruncateShell( MbSolid & initSolid,
SArray<size_t> & selIndices,
MbeCopyMode initCopyMode,
@@ -226,6 +242,33 @@ MATH_FUNC (MbResultType) TruncateShell( MbSolid & initSolid,
MbPlacement3D *& resultPlace );
//------------------------------------------------------------------------------
/** \brief \ru Усечь (обрезать) незамкнутое тело.
\en Truncate an open solid. \~
\details \ru Выполнить построение незамкнутого тела путём усечения исходного тела. \n
\en Create an open solid by truncation the initial solid. \n \~
\param[in] initSolid - \ru Исходная оболочка.
\en The initial shell. \~
\param[in] copyMode - \ru Режим копирования исходной оболочки.
\en Whether to copy the initial shells. \~
\param[in] params - \ru Параметры операции.
\en The operation parameters. \~
\param[out] results - \ru Результаты операции.
\en The operation results. \~
\return \ru Возвращает код результата операции.
\en Returns operation result code. \~
\ingroup Shell_Modeling
\warning \ru В разработке.
\en Under development. \~
*/
// ---
MATH_FUNC( MbResultType ) TruncateShell( MbSolid & initSolid,
MbeCopyMode copyMode,
const MbTruncateShellParams & params,
MbTruncateShellResults & results );
//------------------------------------------------------------------------------
/** \brief \ru Построить продолжение незамкнутого тела выдавливанием.
\en Create an extension of an open solid by extrusion. \~
@@ -431,10 +474,10 @@ MATH_FUNC (bool) CheckJoinedParams( const MbCurve3D & curve,
\en Create a curve from a set of edges. \~
\details \ru Создать кривую для поверхности соединения по списку ребер. \n
\en Create a curve for a surface of the joint from a list of edges. \n \~
\param[in] edges - \ru Набор ребер.
\en A set of edges. \~
\param[in] orients - \ru Ориентации ребер.
\en Edges senses. \~
\param[in] edges - \ru Набор ребер (контейнер константных указателей на ребра).
\en A set of edges (container of constant pointers to edges). \~
\param[in] orients - \ru Ориентации ребер (контейнер булевых флагов).
\en Edges senses (boolean flags container). \~
\param[in] matr - \ru Матрица преобразования ребер.
\en Edges transformation matrix. \~
\param[out] res - \ru Результат операции.
@@ -448,10 +491,11 @@ MATH_FUNC (bool) CheckJoinedParams( const MbCurve3D & curve,
\ingroup Curve3D_Modeling
*/
//---
MATH_FUNC (MbCurve3D *) CreateJoinedCurve( const RPArray<MbCurveEdge> & edges,
const SArray<bool> & orients,
const MbMatrix3D & matr,
MbResultType & res );
template <typename ConstEdgeVector, typename OrientsVector>
MATH_FUNC (MbCurve3D *) CreateJoinedCurve( const ConstEdgeVector & edges,
const OrientsVector & orients,
const MbMatrix3D & matr,
MbResultType & res );
//------------------------------------------------------------------------------