projects
/
opencascade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd9f54
)
[PATCH 6/7] BRepOffset_Tool: TryProject: Check return of BRepLib::BuildCurve3d. Might...
author
blobfish
<blobfish@gmx.com>
Wed, 2 Oct 2024 20:00:00 +0000
(22:00 +0200)
committer
Santiago Vila
<sanvila@debian.org>
Wed, 2 Oct 2024 20:00:00 +0000
(22:00 +0200)
Gbp-Pq: Name 0006-BRepOffset_Tool-TryProject-Check-return-of-BRepLib-B.patch
src/BRepOffset/BRepOffset_Tool.cxx
patch
|
blob
|
history
diff --git
a/src/BRepOffset/BRepOffset_Tool.cxx
b/src/BRepOffset/BRepOffset_Tool.cxx
index 6c08941e180bb914f471361161295b381b2dd7fa..40bd489b9fc4bd97cca2be6113138ce7513c7f45 100644
(file)
--- a/
src/BRepOffset/BRepOffset_Tool.cxx
+++ b/
src/BRepOffset/BRepOffset_Tool.cxx
@@
-1879,7
+1879,8
@@
Standard_Boolean BRepOffset_Tool::TryProject
TopoDS_Edge CurE = TopoDS::Edge(it.Value());
Handle(Geom_Curve) C = BRep_Tool::Curve(CurE,L,f,l);
if (C.IsNull()) {
- BRepLib::BuildCurve3d(CurE,BRep_Tool::Tolerance(CurE));
+ if (!BRepLib::BuildCurve3d(CurE,BRep_Tool::Tolerance(CurE)))
+ continue;
C = BRep_Tool::Curve(CurE,L,f,l);
if (C.IsNull())
{