v0.0
I. New features:
no new features
II. Changes:
II.1. class BRepClass3d
- method:
Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
gp_Lin& L, Standard_Real& _Par)
The condition to prevent infinite loop has been added.
III. Modified entities:
packages:
BRepClass3d
Added test case bugs/modalg_5/bug24242
else if(myParamOnEdge==0.2) myParamOnEdge = 0.8;
else if(myParamOnEdge==0.8) myParamOnEdge = 0.1;
else if(myParamOnEdge==0.1) myParamOnEdge = 0.9;
- else { myParamOnEdge*=0.5; }
-
-
+ //
+ else {
+ myParamOnEdge*=0.5;
+ if(myParamOnEdge < 0.0001) {
+ gp_Pnt PBidon(P.X()+1.0,P.Y(),P.Z());
+ gp_Vec V(P,PBidon);
+ Par= 1.0;
+ _Par=Par;
+ L = gp_Lin(P,V);
+ return 0;
+ }
+ }
} //-- for(;;) { ... }
}
--- /dev/null
+puts "============"
+puts "OCC24242"
+puts "============"
+puts ""
+############################################################################
+# Hang-up during classification a 3D point relative to a solid
+############################################################################
+
+restore [locate_data_file bug24242_sx] b1
+point p 14.3213918 20. 20.
+bclassify b1 p