DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0024086

IsValid of result-Shape of BRepFeat_SplitShape returns False

CommunityOCCT:Modeling Algorithmsclosed4 public notes

Search issues

Description

In attached file, Face has split, but IsValid of a result returns false.

Steps to reproduce

{
    BRep_Builder builder;
    TopoDS_Shape face, wire, result;
    int val;

    val = BRepTools::Read(face,"face.brep",builder);
    val = BRepTools::Read(wire,"wire.brep",builder);

    BRepFeat_SplitShape asplit(face);
    asplit.Add(TopoDS::Wire(wire),TopoDS::Face(face));
    asplit.Build();
    result = asplit.Shape();

    ShapeAnalysis_ShapeContents ana;
    ana.Perform(result);
    val = ana.NbFaces();

    val = BRepAlgo::IsValid(result);
}

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
To reproduce problem test case is required.
02Commenter 2
QA command OCC24086 and test case bugs/modalg_5/bug24086 were added to master.
03Commenter 3
Dear apn,

>> QA command OCC24086 and test case bugs/modalg_5/bug24086 were added to master.
+static Standard_Integer OCC24086 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv) 
+{
+	if (argc != 3) {
+		di << "Usage : " << argv[0] << " should be 2 arguments (face and wire)";
+		return 1;
+	}

tabulation symbol is forbidden in OCCT sources!
04Commenter 1
Problem is not reproduced on current master.