mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-06 04:37:55 +08:00
0023287: IntPolyh_MaillageAffinage.cxx, line 2217: "identical sub-expressions to the left and to the right of the '-' operator"
The expression Abs(PEP1.U()-PEP1.U()) changed to Abs(PEP1.U()-PEP2.U()) In this case the points are equal and so the points number can be reduced to '1'.
This commit is contained in:
@@ -2214,7 +2214,7 @@ void CalculPtsInterTriEdgeCoplanaires(const Standard_Integer TriSurfID,
|
||||
}
|
||||
|
||||
if (NbPoints!=0) {
|
||||
if (Abs(PEP1.U()-PEP1.U())<MyConfusionPrecision
|
||||
if (Abs(PEP1.U()-PEP2.U())<MyConfusionPrecision
|
||||
&&(Abs(PEP1.V()-PEP2.V())<MyConfusionPrecision) ) NbPoints=1;
|
||||
|
||||
SP1.SetXYZ(PEP1.X(),PEP1.Y(),PEP1.Z());
|
||||
|
||||
Reference in New Issue
Block a user