Archived issue #0023183
Splitting face generated wrong result
Description
Open attached .brep file, and try to use the line to split the plane face. The result is not as expectation. Split API is BRepFeat_SplitShape.
FYI: The raw plane face has only two edges, one edge is a line segment, another is an one degree b-spline curve which owns four control points.
FYI: The raw plane face has only two edges, one edge is a line segment, another is an one degree b-spline curve which owns four control points.
Public activity
3 archived notes
Participants are labeled by their role within this record.
I could not reproduce the problem; the result is as expected: the square face gets split in two, with one corner separated. In DRAW, with OCCT 6.5.3:
Draw[33]> restore splitface.brep a
a
Draw[34]> explode a
a_1 a_2
Draw[35]> whatis a_1
a_1 is a shape FACE FORWARD Modified Orientable
Draw[36]> whatis a_2
a_2 is a shape EDGE FORWARD Modified Orientable
Draw[37]> splitshape r a_1 a_1 a_2
Draw[38]> explode r
r_1 r_2
Draw[39]> whatis r_1
r_1 is a shape FACE FORWARD Modified Orientable
Draw[40]> whatis r_2
r_2 is a shape FACE FORWARD Modified Orientable
Draw[41]> checkshape r
This shape seems to be valid
Visually the result is Ok as well. Please double-check, and if problem still exists, try to provide DRAW script to reproduce it.
Draw[33]> restore splitface.brep a
a
Draw[34]> explode a
a_1 a_2
Draw[35]> whatis a_1
a_1 is a shape FACE FORWARD Modified Orientable
Draw[36]> whatis a_2
a_2 is a shape EDGE FORWARD Modified Orientable
Draw[37]> splitshape r a_1 a_1 a_2
Draw[38]> explode r
r_1 r_2
Draw[39]> whatis r_1
r_1 is a shape FACE FORWARD Modified Orientable
Draw[40]> whatis r_2
r_2 is a shape FACE FORWARD Modified Orientable
Draw[41]> checkshape r
This shape seems to be valid
Visually the result is Ok as well. Please double-check, and if problem still exists, try to provide DRAW script to reproduce it.
Hi abv,
Thanks for your reply. I just do it again, it's still failed in my app. But when I check the edge on the new face, I guess it maybe a tessellation bug. See attached png and brep file.
Thanks for your reply. I just do it again, it's still failed in my app. But when I check the edge on the new face, I guess it maybe a tessellation bug. See attached png and brep file.
The actual problem is not in splitting shape, but in tesselation, as reported in #0023184, thus I close this bug as duplicate.
Note that to work-around this kind of problems you can split your shape by C1 criterion: see DRAW command DT_ShapeDivide for example.
Note that to work-around this kind of problems you can split your shape by C1 criterion: see DRAW command DT_ShapeDivide for example.