1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0023379: Exporting single point into STEP produces a compound with two points

Adding single vertex for second time was removed.
Adding single vertex in first time was removed, but for second time was returned.
Duplication of vertex compound in STEPControl_GeometricCurveSet mode was removed.
Some cosmetic changes
Test case for this bug
This commit is contained in:
ika
2012-11-23 14:57:23 +04:00
parent e84189c512
commit 66d6976f7a
2 changed files with 45 additions and 4 deletions

40
tests/bugs/step/bug23379 Executable file
View File

@@ -0,0 +1,40 @@
set os $env(os_type)
if { [string compare $os "windows"] == 0 } {
# puts "TODO OCC23561 $os: child process exited abnormally"
} else {
puts "TODO OCC23561 ALL: An exception was caught"
puts "TODO OCC23561 ALL: Tcl Exception:"
puts "TODO OCC23561 ALL: \\*\\* Exception \\*\\*.*"
}
puts "TODO OCC23561 ALL: TEST INCOMPLETE"
puts "================"
puts "OCC23379"
puts "================"
puts ""
#################################
# Exporting single point into STEP produces a compound with two points
#################################
pload XDE
set filedir ${imagedir}
set Name bug23379_point
set brepFileName ${Name}.brep
set stepFileName ${imagedir}/${Name}.step
restore [locate_data_file ${brepFileName}] point
stepwrite 0 point ${stepFileName}
stepread ${stepFileName} a *
set L [llength [explode a_1]]
puts "L=$L"
if { ${L} == 1} {
puts "OK : Number of points is good"
} else {
puts "Error : Number of points is bad"
}
catch {exec rm -f ${stepFileName}}