mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031415: Modeling Algorithms - Solid classifier works incorrectly on a cylinder
BRepClass3d_SClassifier.cxx : revert integration for CR29712 Test case added
This commit is contained in:
parent
14b741b0ef
commit
87c7d55469
@ -285,14 +285,7 @@ void BRepClass3d_SClassifier::Perform(BRepClass3d_SolidExplorer& SolidExplorer,
|
|||||||
aSelectorLine.SetCurrentLine(L, Par);
|
aSelectorLine.SetCurrentLine(L, Par);
|
||||||
Standard_Integer SelsEVL = 0;
|
Standard_Integer SelsEVL = 0;
|
||||||
SelsEVL = aTree.Select(aSelectorLine); //SelsEE > 0 => Line/Edges & Line/Vertex intersection
|
SelsEVL = aTree.Select(aSelectorLine); //SelsEE > 0 => Line/Edges & Line/Vertex intersection
|
||||||
|
|
||||||
if (!aSelectorLine.IsCorrect())
|
|
||||||
{
|
|
||||||
// Go to the next segment
|
|
||||||
isFaultyLine = Standard_True;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SelsEVL > 0 )
|
if (SelsEVL > 0 )
|
||||||
{
|
{
|
||||||
// Line and edges / vertices interference.
|
// Line and edges / vertices interference.
|
||||||
|
18
tests/bugs/modalg_7/bug31415
Normal file
18
tests/bugs/modalg_7/bug31415
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
puts "======================================================="
|
||||||
|
puts "0031415: Modeling Algorithms - Solid classifier works incorrectly on a cylinder"
|
||||||
|
puts "======================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug31415_1.brep] comp
|
||||||
|
restore [locate_data_file bug31415_2.brep] cyl
|
||||||
|
|
||||||
|
explode comp v
|
||||||
|
mkpoint p1 comp_1
|
||||||
|
mkpoint p2 comp_2
|
||||||
|
mkpoint p3 comp_3
|
||||||
|
mkpoint p4 comp_4
|
||||||
|
foreach p {p1 p2 p3 p4} {
|
||||||
|
if {![regexp "IN" [bclassify cyl $p]]} {
|
||||||
|
puts "Error: classyfication of $p is wrong"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user