From: Pasukhin Dmitry Date: Sat, 1 Feb 2025 17:17:46 +0000 (+0100) Subject: Data Exchange - StepExport non-manifold missed parameter #324 X-Git-Tag: V7_9_0_beta1~10 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=159f5b82aa0f03d14af5034faf5db1a474582054;p=occt.git Data Exchange - StepExport non-manifold missed parameter #324 Added missed configuration for non-manifold topology writing --- diff --git a/src/DESTEP/DESTEP_ConfigurationNode.cxx b/src/DESTEP/DESTEP_ConfigurationNode.cxx index 2a7eba8166..d0ded19cb5 100644 --- a/src/DESTEP/DESTEP_ConfigurationNode.cxx +++ b/src/DESTEP/DESTEP_ConfigurationNode.cxx @@ -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"; diff --git a/tests/de_wrapper/configuration/A3 b/tests/de_wrapper/configuration/A3 index 32f76755f8..56e1f3e443 100644 --- a/tests/de_wrapper/configuration/A3 +++ b/tests/de_wrapper/configuration/A3 @@ -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 diff --git a/tests/de_wrapper/configuration/A4 b/tests/de_wrapper/configuration/A4 index 08fe236b29..105b344817 100644 --- a/tests/de_wrapper/configuration/A4 +++ b/tests/de_wrapper/configuration/A4 @@ -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