Test-case for issue #25887
// (1.1.b) Cas Cylindrique
if ( (SectionType == GeomAbs_Circle) && IsTrsf) {
+ const Standard_Real TolProd = 1.e-6;
+
gp_Circ C = AC.Circle();
C.Transform(Tf2);
DS.Normalize();
levier = Abs(DS.CrossMagnitude(DP)) * C.Radius();
SError = levier * Abs(Last - First);
- if (SError <= Tol) {
+ if (SError <= TolProd) {
Ok = Standard_True;
gp_Ax3 axe (C.Location(), DP, C.Position().XDirection());
S = new (Geom_CylindricalSurface)
--- /dev/null
+puts "========"
+puts "OCC25887"
+puts "========"
+puts ""
+#############################
+# Invalid pipe construction
+#############################
+
+restore [locate_data_file OCC25887_shape.brep] a
+
+smallview
+
+explode a
+
+pipe res a_1 a_2 1
+
+donly res
+fit
+
+set bug_info [checkshape res]
+if {[string compare $bug_info "This shape seems to be valid"] != 0} {
+ puts "ERROR: OCC25887 is reproduced."
+}
+
+set only_screen_axo 1