Skip to content

Commit

Permalink
TriangleSets writer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderoster authored and gangatp committed Dec 17, 2024
1 parent a20198c commit 918ef02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/API/lib3mf_meshobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ void CMeshObject::SetVolumeData(IVolumeData* pTheVolumeData)
}

ITriangleSet* CMeshObject::AddTriangleSet(const std::string& sIdentifier, const std::string& sName)
{
return new CTriangleSet(NMR::CModelTriangleSet::make (sIdentifier, sName), meshObject());
{
return new CTriangleSet(meshObject()->addTriangleSet(sIdentifier, sName), meshObject());
}

bool CMeshObject::HasTriangleSet(const std::string& sIdentifier)
Expand Down
2 changes: 1 addition & 1 deletion Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace NMR {
}

if (m_bWriteTriangleSetExtension) {
writeConstPrefixedStringAttribute(XML_3MF_ATTRIBUTE_XMLNS, XML_3MF_NAMESPACEPREFIX_SLICE, XML_3MF_NAMESPACE_TRIANGLESETS);
writeConstPrefixedStringAttribute(XML_3MF_ATTRIBUTE_XMLNS, XML_3MF_NAMESPACEPREFIX_TRIANGLESETS, XML_3MF_NAMESPACE_TRIANGLESETS);
if (m_pModel->RequireExtension(XML_3MF_NAMESPACE_TRIANGLESETS)) {
if (sRequiredExtensions.size() > 0)
sRequiredExtensions = sRequiredExtensions + " ";
Expand Down

0 comments on commit 918ef02

Please sign in to comment.