 |
DATAKIT SDK
V2026.4
|
|
◆ WriteBodyForParasolid()
31 for(
size_t i = 0; i < inBody->GetNumTopologicalEntities(
DTK_TYPE_UNKNOWN ); i++ )
41 edge->get_info()->AddCustomerDefinedAttribute( L
"my_edge_id", edge->get_info()->GetId() );
46 vertex->get_info()->AddCustomerDefinedAttribute( L
"my_vertex_id", vertex->get_info()->GetId() );
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
Dtk_InfoPtr get_info() const
@ DTK_TYPE_UNKNOWN
Definition: define.h:26
DtkErrorStatus psw_InitFile(const Dtk_string &inFileOut, Dtk_bool muteMode, Dtk_Int32 inVersion=180)
Initialise a file to be written.
Dtk_bool IsNotNULL() const
Definition: util_ptr_dtk.hpp:119
Dtk_ErrorStatus AddCustomerDefinedAttribute(Dtk_string name, Dtk_Val val)
This is a high level string class.
Definition: dtk_string.hpp:53
size_t Dtk_Size_t
Definition: define.h:711
static Dtk_SmartPtr< Dtk_Face > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_bool IsNULL() const
Definition: util_ptr_dtk.hpp:118
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_ErrorStatus psw_WriteBody(Dtk_BodyPtr &inBody)
Writes a Body of a 3D part (3D content of a product), of any kind (solid, shell / faces,...
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:503
DtkErrorStatus psw_EndFile(Dtk_tab< Dtk_ID > &inTabIds, Dtk_bool binForceListOfBody=DTK_FALSE)
Ends the writing of the Parasolid (x_t or x_b) file.
@ dtkNoError
Definition: error_dtk.hpp:151
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:416