mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-26 11:05:31 +03:00
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
44 lines
901 B
Plaintext
Executable File
44 lines
901 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC10702"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# MeshVS_NodalColorPrsBuilder does not take into account visibility of mesh elements
|
|
#######################################################################
|
|
|
|
set BugNumber OCC10702
|
|
|
|
pload XDE
|
|
|
|
vinit
|
|
|
|
meshfromstl m [locate_data_file OMF6391_box.stl]
|
|
|
|
set x_coord 180
|
|
set y_coord 260
|
|
|
|
vsetdispmode m 2
|
|
puts "\nMesh displayed in shading mode"
|
|
|
|
checkcolor $x_coord $y_coord 0 0 0.36
|
|
|
|
vselmode m 8 1
|
|
puts "\nSelection of elements is activated"
|
|
|
|
vselect $x_coord $y_coord 1
|
|
###vselect $x_coord $y_coord 1
|
|
|
|
meshhidesel m
|
|
puts "\nSelected elemement is hidden"
|
|
|
|
checkcolor $x_coord $y_coord 0 0 0.36
|
|
|
|
meshcolors m nodal 0
|
|
puts "\nDisplay nodal color presentation"
|
|
|
|
#checkcolor $x_coord $y_coord 0.46 0.12 0.37
|
|
checkcolor $x_coord $y_coord 0.72 0.72 0.70
|
|
|
|
set only_screen 1
|
|
|