]> OCCT Git - occt.git/commitdiff
Data Exchange - StepExport non-manifold missed parameter #324
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 1 Feb 2025 17:17:46 +0000 (18:17 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2025 17:17:46 +0000 (17:17 +0000)
Added missed configuration for non-manifold topology writing

src/DESTEP/DESTEP_ConfigurationNode.cxx
tests/de_wrapper/configuration/A3
tests/de_wrapper/configuration/A4

index 2a7eba8166b4e3798a42a73e0e9f9778e3e974c7..d0ded19cb54bcfaa166c7d341feb4cccf2449d92 100644 (file)
@@ -182,6 +182,8 @@ bool DESTEP_ConfigurationNode::Load(const Handle(DE_ConfigurationContext)& theRe
                             aScope);
   InternalParameters.WriteColor =
     theResource->BooleanVal("write.color", InternalParameters.WriteColor, aScope);
+  InternalParameters.WriteNonmanifold =
+    theResource->BooleanVal("write.nonmanifold", InternalParameters.WriteNonmanifold, aScope);
   InternalParameters.WriteName =
     theResource->BooleanVal("write.name", InternalParameters.WriteName, aScope);
   InternalParameters.WriteLayer =
@@ -526,6 +528,12 @@ TCollection_AsciiString DESTEP_ConfigurationNode::Save() const
   aResult += aScope + "write.color :\t " + InternalParameters.WriteColor + "\n";
   aResult += "!\n";
 
+  aResult += "!\n";
+  aResult += "!Non-manifold topology writing\n";
+  aResult += "!Default value: 0(\"OFF\"). Available values: 0(\"OFF\"), 1(\"ON\")\n";
+  aResult += aScope + "write.nonmanifold :\t " + InternalParameters.WriteNonmanifold + "\n";
+  aResult += "!\n";
+
   aResult += "!\n";
   aResult += "!Setting up the write.name parameter which is used to indicate write Names or not\n";
   aResult += "!Default value: +. Available values: \"-\", \"+\"\n";
index 32f76755f83c1b8f72bd9f067ed3fb0609bf66fb..56e1f3e443e814febd336092d0a83da2c6ed6758 100644 (file)
@@ -190,6 +190,7 @@ provider.STEP.OCC.write.unit :       2
 provider.STEP.OCC.write.vertex.mode :   0
 provider.STEP.OCC.write.stepcaf.subshapes.name :        0
 provider.STEP.OCC.write.color :         1
+provider.STEP.OCC.write.nonmanifold :   0
 provider.STEP.OCC.write.name :  1
 provider.STEP.OCC.write.layer :         1
 provider.STEP.OCC.write.props :         1
index 08fe236b290cc4546f920a8e282b9e52a7ed8b5c..105b3448176242b3ccede6442d19dbcfbe7df75c 100644 (file)
@@ -135,6 +135,7 @@ provider.STEP.OCC.write.unit :       2
 provider.STEP.OCC.write.vertex.mode :   0
 provider.STEP.OCC.write.stepcaf.subshapes.name :        0
 provider.STEP.OCC.write.color :         1
+provider.STEP.OCC.write.nonmanifold :   0
 provider.STEP.OCC.write.name :  1
 provider.STEP.OCC.write.layer :         1
 provider.STEP.OCC.write.props :         1