[TD]fix exception on empty compound

- if the intersection of the segment tool and
  source shape is empty, processing should
  continue with next segment
This commit is contained in:
wandererfan
2022-11-04 18:14:42 -04:00
committed by WandererFan
parent 4ea2cb4cc0
commit 38f1906ae0
2 changed files with 29 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ public:
double extrudeDistance);
TopoDS_Shape distributeAlignedPieces(std::vector<TopoDS_Shape> pieces);
TopoDS_Compound singleToolIntersections(const TopoDS_Shape &cutShape);
TopoDS_Compound piecewiseToolIntersections(const TopoDS_Shape &cutShape);
TopoDS_Compound alignedToolIntersections(const TopoDS_Shape &cutShape);
BaseGeomPtrVector makeSectionLineGeometry();
std::pair<Base::Vector3d, Base::Vector3d> sectionArrowDirs();
@@ -106,6 +106,7 @@ public:
static bool isProfileObject(App::DocumentObject *obj);
static bool isMultiSegmentProfile(App::DocumentObject *obj);
static bool isLinearProfile(App::DocumentObject *obj);
static bool isTrulyEmpty(TopoDS_Shape inShape);
private:
gp_Dir getFaceNormal(TopoDS_Face &face);