mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-04 03:38:01 +08:00
0026570: Crash on attempt to rotate a shape.
An extended draw-command trotate (ttranslate, tmirror, ...) by an additional parameter "-copy". New check of edge range is added in BRepCheck/BRepCheck_Edge.cxx The same checking is added in ShapeAnalysis_Edge.cxx Fixing this problem is added in ShapeFix_Wire.cxx GeomLib::SameRange(...) and BRepTools_TrsfModification::NewCurve2d(...) are modified to avoid exception in TrimmedCurve
This commit is contained in:
@@ -180,6 +180,17 @@ Standard_Boolean BRepTools_TrsfModification::NewCurve2d
|
||||
if(!NewC->IsPeriodic()) {
|
||||
if(fc - f > Precision::PConfusion()) f = fc;
|
||||
if(l - lc > Precision::PConfusion()) l = lc;
|
||||
if(Abs(l - f) < Precision::PConfusion())
|
||||
{
|
||||
if(Abs(f - fc) < Precision::PConfusion())
|
||||
{
|
||||
l = lc;
|
||||
}
|
||||
else
|
||||
{
|
||||
f = fc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
newf = f;
|
||||
|
||||
Reference in New Issue
Block a user