Skip to content

Commit b13c38f

Browse files
Fixed merge issues
1 parent 404bb92 commit b13c38f

File tree

6 files changed

+16
-26
lines changed

6 files changed

+16
-26
lines changed

AutomaticComponentToolkit/lib3mf.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5130,13 +5130,12 @@
51305130
description="creates a resource iterator instance with all slice stack resources.">
51315131
<param name="ResourceIterator" type="handle" class="SliceStackIterator" pass="return"
51325132
description="returns the iterator instance." />
5133+
</method>
5134+
51335135
<method name="GetToolpaths" description="creates a Toolpath instance with all toolpath resources.">
51345136
<param name="ResourceIterator" type="handle" class="ToolpathIterator" pass="return" description="returns the iterator instance." />
51355137
</method>
5136-
5137-
<method name="GetSliceStacks" description="creates a resource iterator instance with all slice stack resources.">
5138-
<param name="ResourceIterator" type="handle" class="SliceStackIterator" pass="return" description="returns the iterator instance."/>
5139-
</method>
5138+
51405139
<method name="GetImage3Ds"
51415140
description="creates a resource iterator instance with all image3d resources.">
51425141
<param name="ResourceIterator" type="handle" class="Image3DIterator" pass="return"
@@ -5233,11 +5232,7 @@
52335232
<param name="BuildItemInstance" type="handle" class="BuildItem" pass="in"
52345233
description="Build item to remove." />
52355234
</method>
5236-
<method name="GetMetaDataGroup"
5237-
description="Returns the metadata of the model as MetaDataGroup">
5238-
<param name="TheMetaDataGroup" type="handle" class="MetaDataGroup" pass="return"
5239-
description="returns an Instance of the metadatagroup of the model" />
5240-
</method>
5235+
52415236
<method name="AddToolpath" description = "adds an empty Toolpath resource to the model. Bottom Z will be 0 in this case.">
52425237
<param name="UnitFactor" type="double" pass="in" description="A factor that transforms document units into toolpath units." />
52435238
<param name="ToolpathInstance" type="handle" class="Toolpath" pass="return" description="The toolpath instance of the created Toolpath." />

Include/Model/Writer/v100/NMR_ModelWriterNode100_Mesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace NMR {
132132
public:
133133
CModelWriterNode100_Mesh() = delete;
134134
CModelWriterNode100_Mesh(_In_ CModelMeshObject * pModelMeshObject, _In_ CXmlWriter * pXMLWriter, _In_ PProgressMonitor pProgressMonitor,
135-
_In_ PMeshInformation_PropertyIndexMapping pPropertyIndexMapping, _In_ int nPosAfterDecPoint, _In_ nfBool bWriteMaterialExtension, _In_ nfBool m_bWriteBeamLatticeExtension,
135+
_In_ PMeshInformation_PropertyIndexMapping pPropertyIndexMapping, _In_ int nPosAfterDecPoint, _In_ nfBool bWriteMaterialExtension, _In_ nfBool bWriteBeamLatticeExtension,
136136
_In_ nfBool bWriteVolumetricExtension, _In_ nfBool bWriteTriangleSetExtension, CChunkedBinaryStreamWriter* pBinaryStreamWriter);
137137
virtual void writeToXML();
138138
};

Source/Common/NMR_Exception.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ namespace NMR {
492492
case NMR_ERROR_KEYSTOREOPCCOULDNOTGETSTREAM: return "Could not get KeyStore stream";
493493
case NMR_ERROR_KEYSTOREUNSUPPORTEDALGORITHM: return "The algorithm attribute is unsupported";
494494
case NMR_ERROR_KEYSTORETOOMANYELEMENTS: return "Too many elements added to a keystore tree";
495-
<<<<<<< HEAD
496495
case NMR_ERROR_INVALIDMESHBINARYPATH: return "Invalid Mesh Binary Path";
497496
case NMR_ERROR_DUPLICATEMESHBINARYPATH: return "Duplicate Mesh Binary Path";
498497
case NMR_ERROR_INVALIDBINARYELEMENTID: return "Invalid XML attribute in namespace";
@@ -511,10 +510,7 @@ namespace NMR {
511510
case NMR_ERROR_INVALIDTYPEATTRIBUTE: return "Invalid Type Attribute";
512511
case NMR_ERROR_MISSINGTYPEATTRIBUTE: return "Missing Type Attribute";
513512
case NMR_ERROR_MISSINGCOORDINATE: return "Missing Coordinate";
514-
case NMR_ERROR_DATASOURCEISINVALIDATED: return "Data source is invalidated";
515-
516-
=======
517-
513+
case NMR_ERROR_DATASOURCEISINVALIDATED: return "Data source is invalidated";
518514
case NMR_ERROR_INVALIDIMAGE3DSIZE: return "Invalid Image3D Size";
519515
case NMR_ERROR_TOOMANYCHANNELSELECTORS: return "Too many channel selectors";
520516
case NMR_ERROR_TOOMANYVOLUMETRICCHANNELS: return "Too many volumetric channels";
@@ -591,7 +587,6 @@ namespace NMR {
591587
case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FALLBACK_VALUE: return "Duplicate attribute fallbackvalue in levelset element";
592588
case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_VOLUME_ID: return "Duplicate attribute volumeid in levelset element";
593589

594-
>>>>>>> develop
595590
// XML Parser Error Constants(0x9XXX)
596591
case NMR_ERROR_XMLPARSER_INVALIDATTRIBVALUE: return "Invalid XML attribute value";
597592
case NMR_ERROR_XMLPARSER_INVALIDPARSERESULT: return "Invalid XML parse result";

Source/Model/Classes/NMR_Model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ namespace NMR {
18341834

18351835
throw CNMRException(NMR_ERROR_RESOURCENOTFOUND);
18361836
}
1837-
} // namespace NMR
1837+
18381838

18391839
PImportStream CModel::readPathFromPersistentDataSource(_In_ std::string sPath)
18401840
{
@@ -1863,6 +1863,6 @@ namespace NMR {
18631863

18641864
}
18651865

1866-
}
1866+
} // namespace NMR
18671867

18681868

Source/Model/Writer/v100/NMR_ModelWriterNode100_Mesh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ This is the class for exporting the 3mf mesh node.
5050

5151
namespace NMR {
5252

53-
CModelWriterNode100_Mesh::CModelWriterNode100_Mesh(_In_ CModelMeshObject * pModelMeshObject, _In_ CXmlWriter * pXMLWriter, _In_ PProgressMonitor pProgressMonitor,
53+
CModelWriterNode100_Mesh::CModelWriterNode100_Mesh(_In_ CModelMeshObject* pModelMeshObject, _In_ CXmlWriter* pXMLWriter, _In_ PProgressMonitor pProgressMonitor,
5454
_In_ PMeshInformation_PropertyIndexMapping pPropertyIndexMapping, _In_ int nPosAfterDecPoint, _In_ nfBool bWriteMaterialExtension, _In_ nfBool bWriteBeamLatticeExtension,
55-
CChunkedBinaryStreamWriter* pBinaryStreamWriter)
55+
_In_ nfBool bWriteVolumetricExtension, _In_ nfBool bWriteTriangleSetExtension, CChunkedBinaryStreamWriter* pBinaryStreamWriter)
5656
:CModelWriterNode_ModelBase(pModelMeshObject->getModel(), pXMLWriter, pProgressMonitor), m_nPosAfterDecPoint(nPosAfterDecPoint), m_nPutDoubleFactor((nfInt64)(pow(10, CModelWriterNode100_Mesh::m_nPosAfterDecPoint))),
5757
m_pBinaryStreamWriter (pBinaryStreamWriter)
5858
{

Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ namespace NMR {
635635
}
636636

637637
CModelWriterNode100_Mesh ModelWriter_Mesh(pMeshObject, m_pXMLWriter, m_pProgressMonitor,
638-
m_pPropertyIndexMapping, m_nDecimalPrecision, m_bWriteMaterialExtension, m_bWriteBeamLatticeExtension, pMeshBinaryWriter);
638+
m_pPropertyIndexMapping, m_nDecimalPrecision, m_bWriteMaterialExtension, m_bWriteBeamLatticeExtension, m_bWriteVolumetricExtension, m_bWriteTriangleSetExtension, pMeshBinaryWriter);
639639

640640
ModelWriter_Mesh.writeToXML();
641641
}
@@ -1077,6 +1077,8 @@ namespace NMR {
10771077
if (m_bWriteSliceExtension) {
10781078
writeSliceStacks();
10791079
}
1080+
if (m_bWriteToolpaths)
1081+
writeToolpaths();
10801082

10811083
// Create topological order of resources
10821084
CResourceDependencySorter sorter(m_pModel);
@@ -1099,11 +1101,7 @@ namespace NMR {
10991101
}
11001102
writeResource(pResource.get());
11011103
}
1102-
}
1103-
if (m_bWriteToolpaths)
1104-
writeToolpaths();
1105-
if (m_bWriteObjects)
1106-
writeObjects();
1104+
11071105
}
11081106
else {
11091107
if (m_bWriteSliceExtension) {
@@ -1112,6 +1110,8 @@ namespace NMR {
11121110
if (m_bWriteObjects) {
11131111
writeObjects();
11141112
}
1113+
if (m_bWriteToolpaths)
1114+
writeToolpaths();
11151115
}
11161116

11171117
writeFullEndElement();

0 commit comments

Comments
 (0)