MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032371Community[OCCT] OCCT:Modeling Algorithmspublic2021-05-14 12:502021-05-14 22:32
Reporterguseynov.ruslan_163816 
Assigned Tomsv 
PrioritynormalSeveritytrivial 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 5.2.2 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0032371: Modeling Algorithms - Unnecessary range of iteration loop in an algorithm
DescriptionIn file src/BRepLib/BRepLib.cxx, line 411:
for (ii = 0 ; ii < 3 ; ii++ ) {
should be changed to
for (ii = 1 ; ii < 3 ; ii++ ) {
Since ii == 0 always results in obtaining a null pointer Curve2dPtr after calling the first line BRep_Tool::CurveOnSurface (this function expects ii >= 1):

void  BRep_Tool::CurveOnSurface(const TopoDS_Edge& E, 
                                Handle(Geom2d_Curve)& C, 
                                Handle(Geom_Surface)& S, 
                                TopLoc_Location& L,
                                Standard_Real& First,
                                Standard_Real& Last,
                                const Standard_Integer Index)
{
  if (Index < 1)
    return;
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-05-14 12:50 guseynov.ruslan_163816 New Issue
2021-05-14 12:50 guseynov.ruslan_163816 Assigned To => msv
2021-05-14 22:24 kgv Target Version => 7.6.0*
2021-05-14 22:24 kgv Summary Unnecessary range of iteration loop in an algorithm => Modeling Algorithms - Unnecessary range of iteration loop in an algorithm
2021-05-14 22:24 kgv Description Updated View Revisions
2021-05-14 22:27 kgv Relationship added child of 0028995
2021-05-14 22:27 kgv Product Version 7.5.1 => 7.2.0
2021-05-14 22:32 kgv Product Version 7.2.0 => 5.2.2
2021-05-14 22:32 kgv Relationship deleted child of 0028995


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker