mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and SectionAxis
Added protection from crashes when IsParallel
This commit is contained in:
parent
96d1fe2b05
commit
b32425859a
@ -609,7 +609,7 @@ void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_Curve)& Path,
|
||||
myAdpSection.LastParameter(),
|
||||
Path->Resolution(Tol/100),
|
||||
myAdpSection.Resolution(Tol/100));
|
||||
if (Ext.IsDone()) {
|
||||
if (Ext.IsDone() && !Ext.IsParallel()) {
|
||||
Extrema_POnCurv P1, P2;
|
||||
for (ii=1; ii<=Ext.NbExt(); ii++) {
|
||||
distaux = sqrt (Ext.SquareDistance(ii));
|
||||
|
Loading…
x
Reference in New Issue
Block a user