1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-30 12:14:08 +03:00
occt/tests/bugs/xde/bug25405
vro fcc61cc4c9 0025405: STL reader doesn't keep shared nodes
An improved RWSTL::ReadFile() method + a draw-command returning the number of nodes and triangles for a MeshVS_Mesh object based on STL mesh data source.

An indexed map of points is replaced by a CellFilter of XYZ objects already implemented in BRepBuilderAPI.
Also, BRepBuilderAPI_VertexInspector became exported for TKTopAlgo library (Standard_EXPORT is added for the methods of this class).

Standard_EXPORT is removed for in-line methods of BRepBuilderAPI_VertexInspector

Test-case for issue #25405

Update of test-cases, according to new behavior
2014-10-30 12:19:36 +03:00

26 lines
612 B
Plaintext

puts "========"
puts "OCC25405"
puts "========"
puts ""
########################################
# STL reader doesn't keep shared nodes
########################################
set GoodNodesNB 64215
set GoodTrianglesNB 117694
vinit
meshfromstl s [locate_data_file head.stl]
set bug_info [meshinfo s]
if {$GoodNodesNB != [lindex $bug_info 3]} {
puts "ERROR: Number of nodes is incorrect: [lindex $bug_info 3] (should be $GoodNodesNB)"
}
if {$GoodTrianglesNB != [lindex $bug_info 7]} {
puts "ERROR: Number of triangles is incorrect: [lindex $bug_info 7] (should be $GoodTrianglesNB)"
}
set only_screen 1