1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug25071
asl 0493ffd083 0029787: Visualization - Avoid in presentation edges of certain continuity class
A new flag Prs3d_Drawer::FaceBoundaryUpperContinuity() has been introduced
handled by StdPrs_ShadedShape::FillFaceBoundaries() method to exclude edges
of higher continuity class (e.g. to skip seam edges).

Draw Harness command vshowfaceboundary has been replaced by vaspects:
> vaspects -setFaceBoundaryDraw 1 -setFaceBoundaryColor RED -setFaceBoundaryType DASH.
2019-02-28 20:20:45 +03:00

32 lines
929 B
Plaintext

puts "============"
puts "CR25071"
puts "============"
puts ""
#######################################################################
# Check that the selected wireframe representation uses exactly the same
# discretization of face boundaries as the face outlines shown in shading mode
#######################################################################
vinit View1
# Computing wireframe without triangulation, then checking face boundaries and selection
pcone c 0 5 10
vdisplay c; vfit
vsetdispmode c 1
vaspects c -setFaceBoundaryDraw 1 -setFaceBoundaryColor 0.25 0.25 0
vselect 200 200
vdump $imagedir/${casename}_wf_no_triang.png
vremove c
vclose View1
vinit View1
# Computing wireframe after triangulation, then checking face boundaries and selection
vsetdispmode 1
vdisplay c; vfit
vaspects c -setFaceBoundaryDraw 1 -setFaceBoundaryColor 0.25 0.25 0
vselect 200 200
vdump $imagedir/${casename}_wf_with_triang.png