Archived issue #0024086
IsValid of result-Shape of BRepFeat_SplitShape returns False
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);
}
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.
To reproduce problem test case is required.
QA command OCC24086 and test case bugs/modalg_5/bug24086 were added to master.
Dear apn,
>> QA command OCC24086 and test case bugs/modalg_5/bug24086 were added to master.
tabulation symbol is forbidden in OCCT sources!
>> 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!
Problem is not reproduced on current master.