Intersection of curves and surfaces in HLRBRep is corrected: parametric limits of face are used instead of parametric limits of surface
Building of outlines (Contap_Contour) is corrected: method ComputeCloseLine is now used in all cases.
Correction of HLRBRep_Surface: usage of UVbounds-option
Correction of test cases according to the new behavior.
{
Standard_Integer Nba = solrst.NbSegments();
- if (Nba <= 0) return;
Standard_Integer Nbp,indp,inda;
Standard_Real U,V,paramproj;
gp_Pnt2d toproj,Ptproj;
void HLRBRep_Surface::Surface (const TopoDS_Face& F)
{
- mySurf.Initialize(F,Standard_False);
+ //mySurf.Initialize(F,Standard_False);
+ mySurf.Initialize(F,Standard_True);
GeomAbs_SurfaceType typ = HLRBRep_BSurfaceTool::GetType(mySurf);
switch (typ) {
set nbshapes_expected "
Number of shapes in shape
- VERTEX : 93
- EDGE : 47
+ VERTEX : 103
+ EDGE : 52
WIRE : 0
FACE : 0
SHELL : 0
SOLID : 0
COMPSOLID : 0
COMPOUND : 1
- SHAPE : 141
+ SHAPE : 156
"
checknbshapes result -ref ${nbshapes_expected} -t -m "HLRToShape"
fit
checkprops result -l 1030.62
-checknbshapes result -vertex 236 -edge 119
+checknbshapes result -vertex 258 -edge 130
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 2867.9
-checknbshapes result -vertex 1365 -edge 684
+checknbshapes result -vertex 1375 -edge 689
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 2893.98
-checknbshapes result -vertex 697 -edge 349
+checknbshapes result -vertex 705 -edge 353
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 2282.11
-checknbshapes result -vertex 943 -edge 474
+checknbshapes result -vertex 947 -edge 476
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 1169.48
-checknbshapes result -vertex 482 -edge 241
+checkprops result -l 1249.94
+checknbshapes result -vertex 490 -edge 245
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 520.703
-checknbshapes result -vertex 306 -edge 153
+checkprops result -l 534.882
+checknbshapes result -vertex 310 -edge 155
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 9662.5
-checknbshapes result -vertex 4417 -edge 2215
+checknbshapes result -vertex 4429 -edge 2221
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 5910.01
-checknbshapes result -vertex 1406 -edge 703
+checkprops result -l 6141.2
+checknbshapes result -vertex 1444 -edge 722
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 5219.21
-checknbshapes result -vertex 1692 -edge 848
+checkprops result -l 5282.13
+checknbshapes result -vertex 1702 -edge 853
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 1764.64
-checknbshapes result -vertex 345 -edge 173
+checkprops result -l 1794.57
+checknbshapes result -vertex 349 -edge 175
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
-checkprops result -l 2619.72
-checknbshapes result -vertex 578 -edge 289
+checkprops result -l 2774.53
+checknbshapes result -vertex 614 -edge 307
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 2429.7
-checknbshapes result -vertex 379 -edge 190
+checknbshapes result -vertex 381 -edge 191
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 1726.77
-checknbshapes result -vertex 801 -edge 401
+checknbshapes result -vertex 811 -edge 406
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 6584.94
-checknbshapes result -vertex 774 -edge 387
+checknbshapes result -vertex 784 -edge 392
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 211.007
-checknbshapes result -vertex 102 -edge 51
+checknbshapes result -vertex 106 -edge 53
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 40.3211
-checknbshapes result -vertex 60 -edge 30
+checknbshapes result -vertex 62 -edge 31
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
fit
checkprops result -l 1126.76
-checknbshapes result -vertex 280 -edge 140
+checknbshapes result -vertex 284 -edge 142
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded.brep] a
+
+set viewname "axo"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 4.04214
+checknbshapes result -vertex 16 -edge 8
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded.brep] a
+
+set viewname "top"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 5.79737
+checknbshapes result -vertex 22 -edge 11
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded.brep] a
+
+set viewname "bottom"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 6.15279
+checknbshapes result -vertex 22 -edge 11
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded.brep] a
+
+set viewname "front"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 7.45731
+checknbshapes result -vertex 24 -edge 12
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded.brep] a
+
+set viewname "back"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 7.48768
+checknbshapes result -vertex 22 -edge 11
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded2.brep] a
+
+set viewname "axo"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 4.53263
+checknbshapes result -vertex 14 -edge 7
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded2.brep] a
+
+set viewname "top"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 4.79563
+checknbshapes result -vertex 16 -edge 8
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded2.brep] a
+
+set viewname "bottom"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 4.64864
+checknbshapes result -vertex 16 -edge 8
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded2.brep] a
+
+set viewname "front"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 5.96312
+checknbshapes result -vertex 16 -edge 8
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27719"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27719_Extruded2.brep] a
+
+set viewname "back"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 5.61843
+checknbshapes result -vertex 16 -edge 8
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27720"
+puts "============"
+puts ""
+######################################################
+# HLRBrep_Algo BSpline missing edges
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27720_BSpline.brep] a
+
+set viewname "top"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 0.980942
+checknbshapes result -vertex 54 -edge 27
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "============"
+puts "OCC27720"
+puts "============"
+puts ""
+######################################################
+# HLRBrep_Algo BSpline missing edges
+######################################################
+
+pload QAcommands
+
+restore [locate_data_file bug27720_BSpline.brep] a
+
+set viewname "bottom"
+
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+checkprops result -l 0.958458
+checknbshapes result -vertex 52 -edge 26
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png