MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #8563 All Revisions ] Back to Issue ]
Summary 0008563: Incorrect comparison in StdPrs_ToolShadedShape::Normal
Revision 2011-12-15 16:37 by abv
Description This problem was reported in the Forum thread
http://www.opencascade.org/org/forum/thread_7915/?add_id=7915. [^]

In StdPrs_ToolShadedeShape.cxx, lione 73 in function:

void StdPrs_ToolShadedShape::Normal(const TopoDS_Face& aFace,
Poly_Connect& pc,
TColgp_Array1OfDir& Nor)

the original line is:
if (!S.GetType() == GeomAbs_Plane) {

I think it should be sg like:
if (S.GetType() != GeomAbs_Plane) {
... // lots of normal calculation
}
else {
... //one normal calculation
}
Revision 2006-06-29 09:15 by abv
Description This problem was reported in the Forum thread
http://www.opencascade.org/org/forum/thread_7915/?add_id=7915. [^]

In StdPrs_ToolShadedeShape.cxx, lione 73 in function:

void StdPrs_ToolShadedShape::Normal(const TopoDS_Face& aFace,
Poly_Connect& pc,
TColgp_Array1OfDir& Nor)

the original line is:
if (!S.GetType() == GeomAbs_Plane) {

I think it should be sg like:
if (S.GetType() != GeomAbs_Plane) {
... // lots of normal calculation
}
else {
... //one normal calculation
}


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker