#include <BRepProj_Projection.ixx>
-#include <BRepAlgo_Section.hxx>
+#include <BRepAlgoAPI_Section.hxx>
#include <Precision.hxx>
#include <BRepBndLib.hxx>
Standard_ConstructionError::Raise(__FILE__": target shape has no faces");
// build section computing pcurves on the shape
-// BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
- BRepAlgo_Section aSectionTool (aShape, theTool, Standard_False);
+ BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
aSectionTool.Approximation (Standard_True);
aSectionTool.ComputePCurveOn1 (Standard_True);
aSectionTool.Build();
--- /dev/null
+puts "============"
+puts "OCC26493"
+puts "============"
+puts ""
+#######################################################################
+# BRepProj_Projection failed to project a wire on a shell
+#######################################################################
+
+restore [locate_data_file bug26493_plate.brep] plate
+restore [locate_data_file bug26493_wire.brep] wire
+
+prj res wire plate 0 0 -1
+
+renamevar res_1 result
+
+set length 1003.94
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 2
+ EDGE : 1
+ WIRE : 1
+ FACE : 0
+ SHELL : 0
+ SOLID : 0
+ COMPSOLID : 0
+ COMPOUND : 0
+ SHAPE : 4
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "fuzzy booleans with multiple tools"