 |
DATAKIT SDK
V2026.4
|
|
Go to the source code of this file.
◆ CHECK_OK
| #define CHECK_OK |
( |
|
X | ) |
{Dtk_ErrorStatus res;if ((res=X)!=dtkNoError) {std::cout << "error : " << dtkTypeError(res).c_str() << std::endl;return res;}} |
◆ PRINT_ERROR
| #define PRINT_ERROR |
( |
|
inStatus | ) |
|
Value:{ \
std::cout << __FUNCTION__ <<
" encountered an error at line " << __LINE__ <<
" : " <<
dtkTypeError(inStatus).
c_str() << std::endl; \
}
◆ _3dxmlWriteSample()
Entry point: creates a cube and cylinder mesh then writes them into a sample.3dxml file.
237 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
238 std::cout <<
"3dxml Write start" << std::endl;
241 outputDirectory = inResultDirectory + L
"CatiaV6/";
243 outputDirectory.
mkdir();
244 outputFileName = outputDirectory + L
"sample.3dxml";
284 std::cout <<
"=> " << outputFileName.
c_str() << std::endl <<
"3dxml Write end" << std::endl;
◆ _3mfWriteSample()
Entry point: writes a cube and a cylinder mesh into a sample.3mf file.
21 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
22 std::cout <<
"3mf Write start" << std::endl;
25 outputDirectory = inResultDirectory + L
"3mf/";
27 outputDirectory.
mkdir();
28 outputFileName = outputDirectory + L
"sample.3mf";
50 cubeMesh->info()->SetName(
"Cube" );
57 cylinderMesh->info()->SetName(
"Cylinder" );
65 std::cout <<
"=> " << outputFileName.
c_str() << std::endl <<
"3mf Write end" << std::endl;
◆ CatiaV5WriteSample()
527 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
528 std::cout <<
"CatiaV5 Write start" << std::endl;
531 outputDirectory = inResultDirectory + L
"CatiaV5/";
533 outputDirectory.
mkdir();
550 ProcessAsm( inResultDirectory, inInputFilesDirectory );
◆ CgrWriteSample()
Entry point: builds an assembly tree with cube, cylinder, and wire meshes and writes it to sample.cgr.
29 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
30 std::cout <<
"Cgr Write start" << std::endl;
33 outputDirectory = inResultDirectory + L
"Cgr/";
35 outputDirectory.
mkdir();
36 outputFileName = outputDirectory + L
"sample.cgr";
97 mesh_asm_4->
add_mesh( CylinderMesh );
107 int Status =
cgrw_InitWrite( outputFileName, outputDirectory + L
"testcgrw.log", NULL, L
"", options );
121 std::cout <<
"=> " << outputFileName.
c_str() << std::endl <<
"Cgr Write end" << std::endl;
◆ ColladaWriteSample()
Entry point: writes cube, cylinder, wireframe meshes with render infos and model display views into sample.dae.
35 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
36 std::cout <<
"Collada Write start" << std::endl;
39 outputDirectory = inResultDirectory + L
"Collada/";
41 outputDirectory.
mkdir();
42 outputFileName = outputDirectory + L
"sample.dae";
80 transfo.
setXdir( 0.0, 1.0, 0.0 );
81 transfo.
setYdir( 0.0, 0.0, 1.0 );
82 transfo.
setZdir( 1.0, 0.0, 0.0 );
87 nodeName =
"RootNode";
93 nodeName =
"Facetted data";
105 cubeMesh->info()->AddRenderInfos( renderInfos );
116 nodeName =
"Cylinder";
134 nodeName =
"Facetted data (Reinstanciated)";
151 std::cout <<
"=> " << outputFileName.
c_str() << std::endl <<
"Collada Write end" << std::endl;
◆ FbxWriteSample()
94 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
97 outputDirectory = inResultDirectory + L
"Fbx/";
99 outputDirectory.
mkdir();
101 std::cout <<
"Fbx Write start" << std::endl;
103 fileName = outputDirectory + L
"twomeshes.fbx";
106 std::cout <<
"=> " << fileName.
c_str() << std::endl;
111 fileName = outputDirectory + L
"twomeshes.fbx";
114 std::cout <<
"=> " << fileName.
c_str() << std::endl;
118 std::cout <<
"Fbx Write end" << std::endl;
◆ GltfWriteSample()
103 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
106 outputDirectory = inResultDirectory + L
"Gltf/";
108 outputDirectory.
mkdir();
110 std::cout <<
"Gltf Write start" << std::endl;
111 std::cout <<
"sample 1" << std::endl;
113 fileName = outputDirectory + L
"twomeshes.gltf";
116 std::cout <<
"=> " << fileName.
c_str() << std::endl;
120 std::cout <<
"sample 2" << std::endl;
122 fileName = outputDirectory + L
"instances.gltf";
125 std::cout <<
"=> " << fileName.
c_str() << std::endl;
129 std::cout <<
"Gltf Write end" << std::endl;
◆ IfcWriteSample()
Entry point: orchestrates all IFC sample functions and writes the results into a sample.ifc file.
204 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
205 std::cout <<
"Ifc Write start" << std::endl;
208 outputDirectory = inResultDirectory + L
"Ifc/";
210 outputDirectory.
mkdir();
224 outputFileName = outputDirectory + L
"sample.ifc";
241 std::cout <<
"=> " << outputFileName.
c_str() << std::endl <<
"Ifc Write end" << std::endl;
◆ IgesWriteSample()
147 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
148 std::cout <<
"Iges Write start" << std::endl;
151 std::cout <<
"Iges Write end" << std::endl;
◆ JtWriteSample()
1332 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
1333 std::cout <<
"Jt Write start" << std::endl;
1341 std::cout <<
"Jt Write end" << std::endl;
◆ ObjWriteSample()
79 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
80 std::cout <<
"Obj Write start" << std::endl;
83 std::cout <<
"Obj Write end" << std::endl;
◆ ParasolidWriteSample()
Sample to start using Parasolid Writer Library.
- Parameters
-
| [in] | inResultDirectory | : Directory where the resulting parasolid files will be stored. |
- Returns
- dtkNoError if OK
233 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
234 std::cout <<
"Parasolid Write start" << std::endl;
237 Dtk_string outputDirectory = inResultDirectory + L
"Parasolid/";
239 outputDirectory.
mkdir();
249 std::cout <<
"Parasolid Write end" << std::endl;
◆ PdfWriteSample()
1061 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
1062 std::cout <<
"Pdf Write start" << std::endl;
1064 Dtk_string imageDirectory = L
"../InputFiles/Images/";
1068 outputDirectory = inResultDirectory + L
"Pdf/";
1070 outputDirectory.
mkdir();
1072 Dtk_string pdfFileName = outputDirectory + L
"PDFW_SampleOneMesh_1_1.pdf";
1075 pdfFileName = outputDirectory + L
"PDFW_SampleMeshes_1_2.pdf";
1078 pdfFileName = outputDirectory + L
"PDFW_SampleOneMeshRender_1_3.pdf";
1081 pdfFileName = outputDirectory + L
"PDFW_SampleBody_2_1.pdf";
1084 pdfFileName = outputDirectory + L
"PDFW_SampleWireBody_2_2.pdf";
1087 pdfFileName = outputDirectory + L
"PDFW_SampleBodyVisibility_2_3.pdf";
1090 pdfFileName = outputDirectory + L
"PDFW_SampleAssembly_3_1.pdf";
1093 pdfFileName = outputDirectory + L
"PDFW_SamplePartInstances_3_2.pdf";
1096 pdfFileName = outputDirectory + L
"PDFW_SampleAsmInstances_3_3.pdf";
1099 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesColors_3_4.pdf";
1102 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesVisibility_3_5.pdf";
1105 pdfFileName = outputDirectory + L
"PDFW_SampleMetadatas_4_1.pdf";
1108 pdfFileName = outputDirectory + L
"PDFW_SampleDocumentProperties_4_2.pdf";
1111 pdfFileName = outputDirectory + L
"PDFW_SampleSimplePMI_5_1.pdf";
1114 pdfFileName = outputDirectory + L
"PDFW_SampleSimpleModelview_5_2.pdf";
1117 pdfFileName = outputDirectory + L
"PDFW_Sample_MV_association_5_3.pdf";
1120 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_Geom_association_5_4.pdf";
1123 pdfFileName = outputDirectory + L
"PDFW_SampleModelview_sections_5_5.pdf";
1126 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_PMI_association_5_6.pdf";
1129 pdfFileName = outputDirectory + L
"PDFW_SampleAxis_References_5_7.pdf";
1132 pdfFileName = outputDirectory + L
"PDFW_SampleCloudPoint_6_1.pdf";
1135 pdfFileName = outputDirectory + L
"PDFW_SampleBillboard_7_1.pdf";
1139 pdfFileName = outputDirectory + L
"PDFW_SampleSecuredPdf_8_1.pdf";
1142 pdfFileName = outputDirectory + L
"PDFW_SampleLayoutMultipleViews_9_1.pdf";
1145 std::cout <<
"Pdf Write end" << std::endl;
◆ PlmxmlWriteSample()
102 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
103 std::cout <<
"Plmxml Write start" << std::endl;
111 std::cout <<
"Plmxml Write end" << std::endl;
◆ SatWriteSample()
Entry point: writes a solid cube and an open shell BRep body into a sample.sat (ACIS) file.
18 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
19 std::cout <<
"Acis Write start" << std::endl;
22 outputDirectory = inResultDirectory + L
"Acis/";
24 outputDirectory.
mkdir();
25 outputFileName = outputDirectory + L
"sample.sat";
52 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
53 std::cout <<
"Acis Write end" << std::endl;
◆ StepWriteSample()
824 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
825 std::cout <<
"Step Write start" << std::endl;
832 outputDirectory = inResultDirectory + L
"Step/";
834 outputDirectory.
mkdir();
838 int codeForAP214 = 2;
840 int codeForAP242 = 4;
841 int codeForAP242Edition4 = 5;
844 outputFileName = outputDirectory + L
"SampleMinimumProduct.step";
848 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
853 outputFileName = outputDirectory + L
"SampleMinimumProduct_UserDefinedHeader.step";
857 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
860 outputFileName = outputDirectory + L
"SamplePart_BodyOnly.step";
864 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
867 outputFileName = outputDirectory + L
"SamplePart_BodyWithAxisSystem.step";
871 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
874 outputFileName = outputDirectory + L
"SamplePart_WireframeOnly.step";
878 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
881 outputFileName = outputDirectory + L
"SamplePart_MeshOnly.step";
885 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
888 outputFileName = outputDirectory + L
"SamplePart_MeshWithFaceColors.step";
892 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
895 outputFileName = outputDirectory + L
"SamplePart_BodyAndMeshFromTessellation.step";
899 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
902 outputFileName = outputDirectory + L
"SamplePart_WithProperties.step";
906 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
909 outputFileName = outputDirectory + L
"SamplePart_BodyInNamedLayer.step";
913 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
916 outputFileName = outputDirectory + L
"SamplePart_Datum.step";
920 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
923 outputFileName = outputDirectory + L
"SamplePart_GeometricalTolerance.step";
927 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
930 outputFileName = outputDirectory + L
"SamplePart_UsedByExternalAssembly.step";
934 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
937 outputFileName = outputDirectory + L
"SampleAssembly.step";
941 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
944 outputFileName = outputDirectory + L
"SampleAssembly_InstanceOverride.step";
948 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
951 outputFileName = outputDirectory + L
"SampleAssembly_DimensionFDT.step";
955 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
958 outputFileName = outputDirectory + L
"SampleAssembly_WithProperties.step";
962 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
965 outputFileName = outputDirectory + L
"SampleAssembly_InstanceAttributes.step";
969 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
972 outputFileName = outputDirectory + L
"SampleAssembly_BasicExternalReferences.step";
976 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
979 outputFileName = outputDirectory + L
"SampleAssembly_BasicExternalReference_DimensionFDT.step";
983 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
986 outputFileName = outputDirectory + L
"SampleAssembly_NestedExternalReferences.step";
990 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
993 std::cout <<
"Step Write end" << std::endl;
◆ SwWriteSample()
Entry point: writes BRep parts with face colors and a SolidWorks assembly into .sldprt / .sldasm files.
218 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
219 std::cout <<
"Solidworks Write start" << std::endl;
221 Dtk_string outputDirectory = inResultDirectory +
"Sw/";
223 outputDirectory.
mkdir();
227 temp = outputDirectory + L
"my_test_part.sldprt";
229 temp = outputDirectory + L
"my_test_part2.sldprt";
231 temp = outputDirectory + L
"my_test_assembly.sldasm";
233 temp = outputDirectory + L
"logwrite.txt";
239 Dtk_string StrSchemaPath = inResultDirectory + L
"../bin/Schema/";
250 schPath = (
wchar_t* )malloc(
sizeof(
wchar_t ) * ( StrSchemaPath.
len() + 10 ) );
251 swprintf( schPath, 255, L
"P_SCHEMA=%s", StrSchemaPath.w_str() );
255 schPath = (
char* )malloc(
sizeof(
char ) * ( StrSchemaPath.
len() + 10 ) );
256 sprintf( schPath,
"P_SCHEMA=%s", StrSchemaPath.
c_str() );
264 if( inDtkAPI != NULL )
275 Dtk_string xmtfile = inResultDirectory + L
"/xmt/CS_WHEEL_CAP.X_T";
281 FilenamePart = outputDirectory + L
"my_test_part.sldprt";
288 FilenamePart = outputDirectory + L
"my_test_part2.sldprt";
296 Dtk_string FilenameAssm = outputDirectory + L
"my_test_assembly.sldasm";
307 std::cout <<
"Solidworks Write end" << std::endl;
◆ UgWriteSample()
756 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
757 std::cout <<
"Ug Write start" << std::endl;
759 nxDirectory = inResultDirectory + L
"NX-Unigraphics/";
764 inOutputDirectory = inResultDirectory + L
"NX-Unigraphics/nx5/";
766 inOutputDirectory.
mkdir();
770 inOutputDirectory = inResultDirectory + L
"NX-Unigraphics/nx1980/";
772 inOutputDirectory.
mkdir();
776 inOutputDirectory = inResultDirectory + L
"NX-Unigraphics/nx2212/";
778 inOutputDirectory.
mkdir();
781 std::cout <<
"Ug Write end" << std::endl;
◆ UsdWriteSample()
97 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
100 outputDirectory = inResultDirectory + L
"Usd/";
102 outputDirectory.
mkdir();
104 std::cout <<
"Usd Write start" << std::endl;
106 std::cout <<
"sample 1" << std::endl;
108 fileName = outputDirectory + L
"threemeshes.usd";
111 std::cout <<
"=> " << fileName.
c_str() << std::endl;
115 std::cout <<
"sample 2" << std::endl;
117 fileName = outputDirectory + L
"instances.usd";
120 std::cout <<
"=> " << fileName.
c_str() << std::endl;
124 std::cout <<
"Usd Write end" << std::endl;
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
Dtk_ErrorStatus PdfwSampleSecuredPdf_8_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:881
DtkErrorStatus satw_InitPart()
Initializes the writing of a 3D part.
This class gathers asm node related datas.
Definition: cgrw.hpp:21
uint32_t Dtk_ID
Definition: define.h:688
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_ErrorStatus ProcessBasicWall(Dtk_bool inMesh)
Definition: testlibifcwrite.cpp:23
Dtk_ErrorStatus FbxwTwoMeshes(const Dtk_string &inOutputFileName)
Sample 1: writes a cube and a cylinder mesh in a two-node hierarchy into an FBX file.
Definition: testlibfbxwrite.cpp:15
Dtk_ErrorStatus PdfwSampleMetadatas_4_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:477
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:207
DtkErrorStatus WritePart_MeshOnly(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:123
Dtk_ErrorStatus PdfwSampleAxis_References_5_7(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:763
DtkErrorStatus EndNode()
End the node.
Dtk_ErrorStatus ProcessAsm(const Dtk_string &inResultDirectory, const Dtk_string &inInputFilesDirectory)
Writes a CATProduct assembly: one sub-product referencing a CATPart and one instanced directly from a...
Definition: testlibcatiav5write.cpp:380
This class provides several options to tunes CatiaV5 Writter. It must be provided to catiav5w::InitWr...
Definition: catiav5w.hpp:41
Dtk_ErrorStatus PdfwSampleLayoutMultipleViews_9_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:1005
void setOrigin(const Dtk_pnt &O)
Set a new O center point.
void set_id(int inId)
Set an Id.
DtkErrorStatus AllJtWTests(const Dtk_string &inResultDirectory)
Definition: testlibjtwrite.cpp:1241
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the Collada Writer
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, const WriteOptions &inOptions, ProjectInformation *inProjectInfo=nullptr)
Initialize the Ifc Writer and the IFC version you want to write
int versionIndicator
Definition: IFCWriter.h:38
DtkErrorStatus StandardObjSample(const Dtk_string &inResultDirectory)
Entry point: writes a textured cube and a per-face colored cube mesh into a sample....
Definition: testlibobjwrite.cpp:15
int tess_InitTesselation(Dtk_string inWorkingDirectory, double inTolerance)
Init the tesselation library.
#define DTK_TRUE
Definition: define.h:726
This class provides several options to tune 3dxml Writer. It must be provided to _3dxmlw::InitWrite m...
Definition: 3dxmlw.hpp:162
int add_axis_system(Dtk_AxisSystemPtr inAxisSystem)
Add an Dtk_AxisSystemPtr in Dtk_mesh_asm_node in the current asm node.
void create_assembly(const Dtk_string &inFilename, const Dtk_string &inFilenamePart)
Definition: testlibswwrite.cpp:147
#define DTK_UGW_VERSION_NX5
Definition: ugw.hpp:7
DtkErrorStatus WriteAssembly_InstanceOverride(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:426
Dtk_ErrorStatus PdfwSamplePartInstances_3_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:234
This is a high level string class.
Definition: dtk_string.hpp:53
void create_part(const Dtk_string &inFilename, const Dtk_string &inParasolidFile)
Definition: testlibswwrite.cpp:59
int unlink() const
File Utility : Delete a file.
DtkErrorStatus WritePart_BodyWithAxisSystem(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:86
Dtk_ErrorStatus UgWriteSampleVersion(const Dtk_string &inOutputDirectory, int inVersion)
Entry point: runs all UGW sample functions for the given NX format version and output directory.
Definition: testlibugwrite.cpp:679
Dtk_ErrorStatus GltfwInstances(const Dtk_string &inOutputFileName)
Sample 2: writes 10 re-instanced cubes and a wireframe mesh into a GLTF file, demonstrating geometry ...
Definition: testlibgltfwrite.cpp:57
Dtk_AxisSystemPtr CreateAxisSystem()
Creates a named axis system with a custom orientation matrix, red color, layer 123,...
Definition: testcreatecube.cpp:1541
#define PRINT_ERROR(inStatus)
Definition: testwriters.h:9
DtkErrorStatus WritePart_WireframeOnly(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:106
Dtk_ErrorStatus PdfwSampleModelview_section_5_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:676
char Dtk_bool
Definition: define.h:724
const Dtk_string & GetWorkingDir() const
void tess_ComputeBoundariesFromMesh(int value)
Set boundaries computation from mesh option. Default value is enabled (1). See tess_getBoundariesFrom...
Dtk_ErrorStatus PdfwSampleBillboard_7_1(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:848
@ dtkErrorAPINotStarted
Definition: error_dtk.hpp:109
Dtk_ErrorStatus SetSchemaDir(const Dtk_string &inSchemaDir)
Set Schema Directory needed for Unigraphics, Parasolid, Solidedge, Solidworks and Jt readers.
void set_color(Dtk_RGB &inColor)
set color on Dtk_mesh_asm_node
DtkErrorStatus EndWrite()
Creation of the output file and free the Collada Writer
void setXdir(const Dtk_dir &X)
Set a new X vector.
void FillFacesColors(Dtk_MeshPtr &inoutCubeMesh)
Filling mesh faces with colors.
Definition: testcreatemesh.cpp:244
int cgrw_EndWrite()
Free the Cgr Writer
DtkErrorStatus stepw_SetModeProp(const int inMode)
Activates/Deactivates writing of properties : User Attributes, Product Data.
Dtk_ErrorStatus UsdwThreeMeshes(const Dtk_string &inOutputFileName)
Sample 1: writes a cube and a cylinder mesh in a two-node hierarchy into a USD file.
Definition: testlibusdwrite.cpp:12
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, const WriteOptions &inOptions)
Initialize the 3mf Writer
This class provides several options to tune Collada Writer. It must be provided to Colladaw::InitWrit...
Definition: colladaw.hpp:23
Dtk_ErrorStatus WriteEntity(const Dtk_MeshPtr &inCubeMesh, const Dtk_MeshPtr &inCylinderMesh)
Builds the 3DXML product hierarchy with 3 child nodes ( node, cylinder mesh, cube mesh)....
Definition: testlib3dxmlwrite.cpp:16
DtkErrorStatus stepw_InitFile(const Dtk_string &inFileName, const char *inOriginatingSystem=" user ", const int inSchema=0)
Initializes a file to be written.
Dtk_ErrorStatus PdfwSampleInstancesVisibility_3_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:431
Dtk_ErrorStatus PlmxmlwritesampleJT(const Dtk_string &inResultDirectory)
Definition: testlibplmxmlwrite.cpp:36
DtkErrorStatus WriteAssembly_BasicExternalReferences(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:658
Dtk_MeshPtr CreateMeshWire()
Wire mesh sample.
Definition: testcreatemesh.cpp:389
Dtk_ErrorStatus PdfwSampleOneMesh_1_1(const Dtk_string &inOutputFileName)
PDF write sample entry point: orchestrates all PDF sample functions.
Definition: testlibpdfwrite.cpp:24
static Dtk_ErrorStatus SampleWriteAnArrayOfParts(const Dtk_string &inOutputFile)
Definition: testlibparasolidwrite.cpp:29
Dtk_bool ConvertRenderInfos
Definition: colladaw.hpp:33
DtkErrorStatus WritePart_BodyOnly(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:68
Dtk_ErrorStatus InitWriter(const Dtk_string &inLogFile, Licence_dtk inLicFct, sw::sww::language inLanguage=sw::sww::english)
Initialize the Solidworks Writer
DtkErrorStatus stepw_SetModeFdt(const int inMode, const int inPolyline=2)
Activates/Deactivates writing of FDT.
DtkErrorStatus EndWrite()
Creation of the output file and free the 3dxmlw Writer
This class provides several options to tune 3mf Writer. It must be provided to _3mfw::InitWrite metho...
Definition: 3mfw.hpp:29
Dtk_ErrorStatus PdfwSampleCloudPoint_6_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:792
DtkErrorStatus Write_MinimumViableFile(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:43
Dtk_ErrorStatus ProcessMultiMeshWall()
Writes a wall element composed of multiple mesh pieces with custom properties and a GUID.
Definition: testlibifcwrite.cpp:149
DtkErrorStatus WritePart_BodyInNamedLayer(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:354
Dtk_ErrorStatus EndWriter()
Free the Solidworks Writer
This class provides several options to tune the IFC Writer. It must be provided to Ifcw::InitWrite me...
Definition: IFCWriter.h:29
Dtk_ErrorStatus PdfwSampleBodyVisibility_2_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:161
Dtk_ErrorStatus PdfwSampleMeshes_1_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:48
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
int cgrw_InitWrite(Dtk_string inFileWritten, Dtk_string inLogFile, Licence_dtk inLicFct, Dtk_string inLicenceFile, const WriteOptions &inOptions=WriteOptions())
Initialize the Cgr Writer
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
DtkErrorStatus satw_InitFile(const Dtk_string &inFileOut, const satw_WriteOptions &inOptions=satw_WriteOptions())
Initializes a file to be written.
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
DtkErrorStatus WritePart_Datum(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:228
Dtk_RenderInfosPtr CreateCubeRenderInfos()
Creates a Dtk_RenderInfos object with ambient, diffuse, and specular lighting and a texture for use o...
Definition: testcreatemesh.cpp:501
DtkErrorStatus WriteAssembly_InstanceAttributes(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:616
DtkErrorStatus WriteAssembly_BasicExternalReference_DimensionFDT(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:739
DtkErrorStatus EndWrite()
Creation of the output file and free the Ifc Writer
void setScale(Dtk_Double64 scale)
Set a new scale.
Definition: util_ptr_dtk.hpp:37
DtkErrorStatus stepw_EndFile()
Ends the writing of the current STEP file.
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
Dtk_ErrorStatus EndWrite()
Free the Catia V5 Writer
Dtk_ErrorStatus SetFileRelease(const Dtk_UInt32 inRelease)
Sets the release for the written files.
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_MeshPtr CreateMeshCylinder(int nbpoints)
Mesh Cylinder sample.
Definition: testcreatemesh.cpp:338
DtkErrorStatus Write_UserDefinedHeader(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:54
Dtk_ErrorStatus PdfwSampleInstancesColors_3_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:333
int add_mesh(Dtk_MeshPtr mesh)
Add an Dtk_mesh in Dtk_mesh_asm_node in the current asm node.
void setYdir(const Dtk_dir &Y)
Set a new Y vector.
Dtk_ErrorStatus PdfwSampleAssembly_3_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:193
int mkdir() const
File Utility : Create a Directory.
Dtk_ErrorStatus PdfwSampleSimplePMI_5_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:547
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
Dtk_ErrorStatus PdfwSamplePMI_Geom_association_5_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:644
Dtk_ErrorStatus PdfwSampleAsmInstances_3_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:278
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
Dtk_ErrorStatus cgrw_WriteMeshAsmNode(Dtk_mesh_asm_node *inRoot)
Write a mesh assembly.
DtkErrorStatus WritePart_UsedByExternalAssembly(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:327
Dtk_ErrorStatus IgesAssemblySample(const Dtk_string &inResultDirectory)
Writes an IGES assembly: two products each containing BRep bodies, demonstrating multi-product IGES s...
Definition: testlibigeswrite.cpp:71
Dtk_ErrorStatus PdfwSample_MV_association_5_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:601
Dtk_ErrorStatus PdfwSampleDocumentProperties_4_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:503
DtkErrorStatus satw_EndPart()
Ends the writing of a part.
@ english
Definition: solidworksw.hpp:25
3MF Writer main class.
Definition: 3mfw.hpp:16
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate a node.
DtkErrorStatus WriteAssembly_WithProperties(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:562
Dtk_ErrorStatus UsdwInstances(const Dtk_string &inOutputFileName)
Sample 2: writes 10 re-instanced cubes into a USD file, demonstrating USD referencing.
Definition: testlibusdwrite.cpp:59
DtkErrorStatus WritePart_GeometricalTolerance(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:276
Dtk_ErrorStatus GltfwTwoMeshes(const Dtk_string &inOutputFileName)
Sample 1: writes a cube and a cylinder mesh in a two-node hierarchy into a GLTF file.
Definition: testlibgltfwrite.cpp:16
DtkErrorStatus WriteAssembly_NestedExternalReferences(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:697
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_ErrorStatus ProcessPrototypedColumns(int inColumnCount)
Writes a set of column elements sharing the same prototyped geometry (IfcElementType),...
Definition: testlibifcwrite.cpp:97
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
This class provides several options to tunes cgr Writter. It must be provided to cgr::cgrw_InitWrite ...
Definition: cgrw.hpp:95
Dtk_BodyPtr CreateCube()
Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex,...
Definition: testcreatecube.cpp:1325
DtkErrorStatus WritePart_BodyAndMeshFromTessellation(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:161
#define DTK_UGW_VERSION_NX1980
Definition: ugw.hpp:8
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the 3dxmlw Writer
Dtk_ErrorStatus PdfwSamplePMI_PMI_association_5_6(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:724
Dtk_ErrorStatus PdfwSampleWireBody_2_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:139
DtkErrorStatus WritePart_WithProperties(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:186
int len() const
Retrieve the length of the Dtk_string.
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_ID &outID)
Initialize a node.
static Dtk_ErrorStatus SampleWriteAnAssembly(const Dtk_string &inOutputFile)
Definition: testlibparasolidwrite.cpp:126
Dtk_ErrorStatus PdfwSampleSimpleModelview_5_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:569
DtkErrorStatus WriteAssembly(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:387
DtkErrorStatus EndWrite()
Creation of the output file and free the Obj Writer
void tess_EndTesselation()
Free the data used by tesselation library.
DtkErrorStatus WriteAssembly_DimensionFDT(const Dtk_string &inRootAssemblyName)
Definition: testlibstepwrite.cpp:476
@ dtkNoError
Definition: error_dtk.hpp:151
Dtk_ErrorStatus InitWrite(const Dtk_string &inLogFile, Licence_dtk inLicFct, const WriteOptions &inOptions=WriteOptions())
Initialize the Catia V5 Writer
Dtk_ErrorStatus PdfwSampleOneMeshRender_1_3(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:103
DtkErrorStatus satw_WriteBody(const Dtk_BodyPtr &inBody)
Writes a Body.
Dtk_ErrorStatus PdfwSampleBody_2_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:122
Definition: dtk_rgb.hpp:8
void SetFileRelease(const Dtk_UInt32 inRelease)
Sets the release for the written files.
Definition: cgrw.hpp:108
Dtk_ErrorStatus FbxwInstances(const Dtk_string &inOutputFileName)
Sample 2: writes 10 re-instanced cubes into an FBX file, demonstrating geometry instancing via repeat...
Definition: testlibfbxwrite.cpp:57
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
int add_asm_instance(Dtk_mesh_asm_node *inMeshAsm, Dtk_transfo *inTransfo)
Add an asm instance to the current asm node.
#define DTK_UGW_VERSION_NX2212
Definition: ugw.hpp:9
DtkErrorStatus WritePart_MeshWithFaceColors(const Dtk_string &inPartName, int &outPartID)
Definition: testlibstepwrite.cpp:141
Dtk_ErrorStatus ProcessWallClassification()
Writes a wall element with a UniFormat classification reference attached to it.
Definition: testlibifcwrite.cpp:63
Dtk_BodyPtr CreateOpenShell()
Creates an open shell body containing a single trimmed cylindrical surface (half cylinder,...
Definition: testcreatecube.cpp:1353
void SetIsAlreadyStart(const Dtk_Int32 &inStop)
ONLY for PSKERNEL user.
DtkErrorStatus satw_EndFile()
Ends the writing of the Sat file.