MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / startDocument

Method startDocument

src/serializers/ColladaSerializer.cpp:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void ColladaSerializer::ColladaExporter::startDocument(const std::string& unit_name, float unit_magnitude) {
378 stream.startDocument();
379
380 COLLADASW::Asset asset(&stream);
381 asset.getContributor().mAuthoringTool = std::string("IfcOpenShell ") + IFCOPENSHELL_VERSION;
382 asset.setUnit(unit_name, unit_magnitude);
383 asset.setUpAxisType(COLLADASW::Asset::Z_UP);
384 asset.add();
385}
386
387void ColladaSerializer::ColladaExporter::write(const IfcGeom::TriangulationElement* o)
388{

Callers 1

writeHeaderMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected