1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

Coding - Isolate long attached comments for clang-format #259

Automatically update code with clang-format disabling for avoiding formatting.
You can check the python script in GitHub PR
This commit is contained in:
dpasukhi
2025-01-16 20:15:29 +00:00
parent 9a6854774d
commit f91655b0c5
475 changed files with 1380 additions and 8 deletions

View File

@@ -78,7 +78,9 @@ static const Standard_Integer SIZEUV = 8;
class TableauRejection {
public:
// clang-format off
Standard_Real **UV; //-- UV[i][j] contient le param (U sur Ci) de l intersection de Ci avec C(IndUV[j])
// clang-format on
Standard_Integer **IndUV; //-- IndUV[i][j] = J0 -> Intersection entre i et J0
Standard_Integer *nbUV; //-- nbUV[i][j] nombre de valeurs pour la ligne i
Standard_Integer N;
@@ -2119,7 +2121,9 @@ HLRBRep_Data::RejectedPoint (const IntRes2d_IntersectionPoint& PInter,
if (st != TopAbs_OUT) {
if (Tr2->PositionOnCurve() != IntRes2d_Middle) { // correction de la transition sur myFE
// clang-format off
if (mySameVertex) return Standard_True; // si intersection a une extremite verticale !
// clang-format on
Standard_Boolean douteux = Standard_False;
Standard_Real psav = p2;

View File

@@ -3323,9 +3323,11 @@ void HLRBRep_PolyAlgo::TMultiply (Standard_Real& theX,
Standard_Real& theZ,
const Standard_Boolean theVPO) const
{
// clang-format off
Standard_Real Xt = TMat[0][0] * theX + TMat[0][1] * theY + TMat[0][2] * theZ + (theVPO ? 0 : TLoc[0]);//OCC349
Standard_Real Yt = TMat[1][0] * theX + TMat[1][1] * theY + TMat[1][2] * theZ + (theVPO ? 0 : TLoc[1]);//OCC349
theZ = TMat[2][0] * theX + TMat[2][1] * theY + TMat[2][2] * theZ + (theVPO ? 0 : TLoc[2]);//OCC349
// clang-format on
theX = Xt;
theY = Yt;
}
@@ -3339,9 +3341,11 @@ void HLRBRep_PolyAlgo::TTMultiply (Standard_Real& theX,
Standard_Real& theZ,
const Standard_Boolean theVPO) const
{
// clang-format off
Standard_Real Xt = TTMa[0][0] * theX + TTMa[0][1] * theY + TTMa[0][2] * theZ + (theVPO ? 0 : TTLo[0]);//OCC349
Standard_Real Yt = TTMa[1][0] * theX + TTMa[1][1] * theY + TTMa[1][2] * theZ + (theVPO ? 0 : TTLo[1]);//OCC349
theZ = TTMa[2][0] * theX + TTMa[2][1] * theY + TTMa[2][2] * theZ + (theVPO ? 0 : TTLo[2]);//OCC349
// clang-format on
theX = Xt;
theY = Yt;
}
@@ -3355,9 +3359,11 @@ void HLRBRep_PolyAlgo::TIMultiply (Standard_Real& theX,
Standard_Real& theZ,
const Standard_Boolean theVPO) const
{
// clang-format off
Standard_Real Xt = TIMa[0][0] * theX + TIMa[0][1] * theY + TIMa[0][2] * theZ + (theVPO ? 0 : TILo[0]);//OCC349
Standard_Real Yt = TIMa[1][0] * theX + TIMa[1][1] * theY + TIMa[1][2] * theZ + (theVPO ? 0 : TILo[1]);//OCC349
theZ = TIMa[2][0] * theX + TIMa[2][1] * theY + TIMa[2][2] * theZ + (theVPO ? 0 : TILo[2]);//OCC349
// clang-format on
theX = Xt;
theY = Yt;
}

View File

@@ -60,7 +60,9 @@ public:
void Closed (const Standard_Boolean flag) { ClosedPolygon = flag; }
// clang-format off
Standard_Boolean Closed() const { return Standard_False; } // -- Voir si le cas Closed est traitable
// clang-format on
//! Give the number of Segments in the polyline.
Standard_Integer NbSegments() const { return NbPntIn - 1; }