Skip to content

Commit 7f0ed58

Browse files
committed
feat: Add Rotate Around Center to text file
- closes #21
1 parent c72907f commit 7f0ed58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Modules/SimResultsStorage/ExportAsText.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void CExportAsText::WriteGeometriesData()
401401
// geometries
402402
for (const auto* g: m_systemStructure->AllGeometries())
403403
{
404-
if (m_selectors.geometries.baseInfo ) WriteLine(ETXTCommands::GEOMETRY , g->Name(), g->Key(), g->Mass(), g->FreeMotion());
404+
if (m_selectors.geometries.baseInfo ) WriteLine(ETXTCommands::GEOMETRY , g->Name(), g->Key(), g->Mass(), g->FreeMotion(), g->RotateAroundCenter());
405405
if (m_selectors.geometries.tdProperties) WriteLine(ETXTCommands::GEOMETRY_TDVEL , *g->Motion());
406406
if (m_selectors.geometries.wallsList ) WriteLine(ETXTCommands::GEOMETRY_PLANES, g->Planes().size(), g->Planes());
407407
}

Modules/SimResultsStorage/ImportFromText.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ CImportFromText::SImportFileInfo CImportFromText::Import(const std::string& _fil
242242
pGeometry->SetKey(GetValueFromStream<std::string>(&tempStream));
243243
pGeometry->SetMass(GetValueFromStream<double>(&tempStream));
244244
pGeometry->SetFreeMotion(GetValueFromStream<CBasicVector3<bool>>(&tempStream));
245+
pGeometry->SetRotateAroundCenter(GetValueFromStream<bool>(&tempStream));
245246
break;
246247
}
247248
case ETXTCommands::GEOMETRY_PLANES:

0 commit comments

Comments
 (0)