MCPcopy Create free account
hub / github.com/assimp/assimp / WriteFile

Method WriteFile

code/AssetLib/X/XFileExporter.cpp:132–152  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Starts writing the contents

Source from the content-addressed store, hash-verified

130// ------------------------------------------------------------------------------------------------
131// Starts writing the contents
132void XFileExporter::WriteFile()
133{
134 // note, that all realnumber values must be comma separated in x files
135 mOutput.setf(std::ios::fixed);
136 mOutput.precision(ASSIMP_AI_REAL_TEXT_PRECISION); // precision for ai_real
137
138 // entry of writing the file
139 WriteHeader();
140
141 mOutput << startstr << "Frame DXCC_ROOT {" << endstr;
142 PushTag();
143
144 aiMatrix4x4 I; // identity
145 WriteFrameTransform(I);
146
147 WriteNode(mScene->mRootNode);
148 PopTag();
149
150 mOutput << startstr << "}" << endstr;
151
152}
153
154// ------------------------------------------------------------------------------------------------
155// Writes the asset header

Callers 2

glTFExporterMethod · 0.45
glTF2ExporterMethod · 0.45

Calls 1

WriteNodeFunction · 0.85

Tested by

no test coverage detected