Skip to content

Commit

Permalink
fix to triangleset reader
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJohnMcLean authored and gangatp committed Dec 17, 2024
1 parent f6266a5 commit 1b0e16e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Source/Model/Reader/v100/NMR_ModelReaderNode100_TriangleSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,24 @@ namespace NMR {
void CModelReaderNode100_TriangleSet::OnAttribute(_In_z_ const nfChar * pAttributeName, _In_z_ const nfChar * pAttributeValue)
{
__NMRASSERT(pAttributeName);
__NMRASSERT(pAttributeValue);

__NMRASSERT(pAttributeValue);

if (strcmp(pAttributeName, XML_3MF_ATTRIBUTE_TRIANGLESET_NAME) == 0) {
m_sName = pAttributeValue;
}
else if (strcmp(pAttributeName, XML_3MF_ATTRIBUTE_TRIANGLESET_IDENTIFIER) == 0) {
m_sIdentifier = pAttributeValue;
}
}



void CModelReaderNode100_TriangleSet::OnNSChildElement(_In_z_ const nfChar* pChildName, _In_z_ const nfChar* pNameSpace, _In_ CXmlReader* pXMLReader)
{
__NMRASSERT(pChildName);
__NMRASSERT(pXMLReader);
__NMRASSERT(pNameSpace);

if (strcmp(pNameSpace, XML_3MF_NAMESPACE_TRIANGLESETS) == 0) {
if (strcmp(pChildName, XML_3MF_ELEMENT_TRIANGLESET) == 0)
if (strcmp(pChildName, XML_3MF_ELEMENT_REF) == 0)
{
PModelReaderNode100_TriangleSetRef pXMLNode = std::make_shared<CModelReaderNode100_TriangleSetRef>(m_pWarnings);
pXMLNode->parseXML(pXMLReader);
Expand Down

0 comments on commit 1b0e16e

Please sign in to comment.