mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0024865: igesread loopback transfer process should not skip any entity
natural bounds are added to faces with infinite UV bounds and without outer wire unrelated changes: the output of de test cases now has the list of main test steps.
This commit is contained in:
parent
eb46b12346
commit
d405daed97
@ -109,17 +109,6 @@
|
|||||||
#define DEBUG
|
#define DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static Standard_Boolean IsSurfaceUVInfinite(const Handle(Geom_Surface)& theSurf)
|
|
||||||
{
|
|
||||||
Standard_Real UMin,UMax,VMin,VMax;
|
|
||||||
theSurf->Bounds(UMin,UMax,VMin,VMax);
|
|
||||||
|
|
||||||
return (Precision::IsInfinite(UMin) ||
|
|
||||||
Precision::IsInfinite(UMax) ||
|
|
||||||
Precision::IsInfinite(VMin) ||
|
|
||||||
Precision::IsInfinite(VMax) );
|
|
||||||
}
|
|
||||||
|
|
||||||
static Standard_Boolean IsSurfaceUVPeriodic(const Handle(Geom_Surface)& theSurf)
|
static Standard_Boolean IsSurfaceUVPeriodic(const Handle(Geom_Surface)& theSurf)
|
||||||
{
|
{
|
||||||
return theSurf->IsUPeriodic() && theSurf->IsVPeriodic();
|
return theSurf->IsUPeriodic() && theSurf->IsVPeriodic();
|
||||||
@ -825,7 +814,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// deal with the case of an empty face: just create a new face by a standard tool
|
// deal with the case of an empty face: just create a new face by a standard tool
|
||||||
if (ws.IsEmpty() && !IsSurfaceUVInfinite (mySurf->Surface()))
|
if (ws.IsEmpty())
|
||||||
{
|
{
|
||||||
BRepBuilderAPI_MakeFace aFaceBuilder (mySurf->Surface(), Precision::Confusion());
|
BRepBuilderAPI_MakeFace aFaceBuilder (mySurf->Surface(), Precision::Confusion());
|
||||||
|
|
||||||
|
20
tests/de/end
20
tests/de/end
@ -6,6 +6,14 @@
|
|||||||
# - check transfer status, shape, and attributes against expected values
|
# - check transfer status, shape, and attributes against expected values
|
||||||
# - write data to
|
# - write data to
|
||||||
|
|
||||||
|
puts "<h2><ol>
|
||||||
|
<a name=\"section0\">Test steps:</a>\n
|
||||||
|
<li><a href=\"#section1\"> Read file</a>
|
||||||
|
<li><a href=\"#section2\"> Write file</a>
|
||||||
|
<li><a href=\"#section3\"> Loopback read file</a>
|
||||||
|
<li><a href=\"#section4\"> Results</a>
|
||||||
|
</ol></h2>"
|
||||||
|
|
||||||
# Set flag dump_file to 1 in order to regenerate script files with actual data
|
# Set flag dump_file to 1 in order to regenerate script files with actual data
|
||||||
# used as reference. In this mode all tests intentionaly report failure.
|
# used as reference. In this mode all tests intentionaly report failure.
|
||||||
set dump_file 0
|
set dump_file 0
|
||||||
@ -47,6 +55,7 @@ set end_line "\" \n"
|
|||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# Read original file
|
# Read original file
|
||||||
|
puts "<h1><a name=\"section1\"> 1. Read file </a> <a href=\"#section0\">UP</a></h1>"
|
||||||
if { [string length $filename] > 1} {
|
if { [string length $filename] > 1} {
|
||||||
set ext [file extension $filename]
|
set ext [file extension $filename]
|
||||||
set ReadCommand ReadStep
|
set ReadCommand ReadStep
|
||||||
@ -75,7 +84,6 @@ if { [string length $filename] > 1} {
|
|||||||
# Get information about translation
|
# Get information about translation
|
||||||
if { $mist < 1} {
|
if { $mist < 1} {
|
||||||
puts ""
|
puts ""
|
||||||
|
|
||||||
set tps_2 [data c]
|
set tps_2 [data c]
|
||||||
if { [llength $tps_2] > 0 } {
|
if { [llength $tps_2] > 0 } {
|
||||||
# Finding all strings with warnings
|
# Finding all strings with warnings
|
||||||
@ -100,7 +108,6 @@ if { $mist < 1} {
|
|||||||
puts " DATA c checking was NOT provided"
|
puts " DATA c checking was NOT provided"
|
||||||
}
|
}
|
||||||
|
|
||||||
puts ""
|
|
||||||
set tps_1 [tpstat c]
|
set tps_1 [tpstat c]
|
||||||
set colvo [llength $tps_1]
|
set colvo [llength $tps_1]
|
||||||
if { ${colvo} > 0 } {
|
if { ${colvo} > 0 } {
|
||||||
@ -221,8 +228,7 @@ if { $mist < 1} {
|
|||||||
}
|
}
|
||||||
# Writing file
|
# Writing file
|
||||||
if { $mist < 1} {
|
if { $mist < 1} {
|
||||||
puts " "
|
puts "<h1><a name=\"section2\">2. Write file </a> <a href=\"#section0\">UP</a></h1>"
|
||||||
puts "-----------------------------WRITING FILE ------------------------------"
|
|
||||||
file delete $imagedir/${casename}_D_First$ext
|
file delete $imagedir/${casename}_D_First$ext
|
||||||
if { [catch { $WriteCommand D_First $imagedir/${casename}_D_First$ext } catch_result] } {
|
if { [catch { $WriteCommand D_First $imagedir/${casename}_D_First$ext } catch_result] } {
|
||||||
set err_msg "Error: First - file was not written - exception"
|
set err_msg "Error: First - file was not written - exception"
|
||||||
@ -231,7 +237,7 @@ if { $mist < 1} {
|
|||||||
set mist_w 1
|
set mist_w 1
|
||||||
}
|
}
|
||||||
if { $mist_w < 1 } {
|
if { $mist_w < 1 } {
|
||||||
|
puts "<h1><a name=\"section3\">3. Loopback read file </a> <a href=\"#section0\">UP</a></h1>"
|
||||||
if { [catch { $ReadCommand D_Second $imagedir/${casename}_D_First$ext } catch_result] } {
|
if { [catch { $ReadCommand D_Second $imagedir/${casename}_D_First$ext } catch_result] } {
|
||||||
set err_msg "Errorr: Second - file was not read - exception"
|
set err_msg "Errorr: Second - file was not read - exception"
|
||||||
puts $err_msg
|
puts $err_msg
|
||||||
@ -403,7 +409,6 @@ if { $mist < 1} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Collect results of loop back test
|
#Collect results of loop back test
|
||||||
|
|
||||||
if { $mist < 1 } {
|
if { $mist < 1 } {
|
||||||
set dat_check "DATA : OK"
|
set dat_check "DATA : OK"
|
||||||
set tpst_check "TPSTAT : OK"
|
set tpst_check "TPSTAT : OK"
|
||||||
@ -491,10 +496,9 @@ if { $mist != 1 } {
|
|||||||
[lsort $layers_Second] [lsort $layers_First] ]
|
[lsort $layers_Second] [lsort $layers_First] ]
|
||||||
}
|
}
|
||||||
|
|
||||||
puts ""
|
puts "<h1><a name=\"section4\"> 4. Results </a> <a href=\"#section0\">UP</a></h1>"
|
||||||
puts ""
|
puts ""
|
||||||
puts "########################### RESULTS ###############################"
|
puts "########################### RESULTS ###############################"
|
||||||
puts ""
|
|
||||||
puts "========================== Loop Back test ========================="
|
puts "========================== Loop Back test ========================="
|
||||||
puts ""
|
puts ""
|
||||||
if {$mist == 1 } {
|
if {$mist == 1 } {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user