mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
This commit is contained in:
@@ -98,7 +98,7 @@ Standard_Integer ChFi3d::ConcaveSide(const BRepAdaptor_Surface& S1,
|
||||
dint1 = ns1.Crossed(tgE1);
|
||||
dint2 = ns2.Crossed(tgE2);
|
||||
Standard_Real ang = ns1.CrossMagnitude(ns2);
|
||||
if(ang > 0.0001*PI){
|
||||
if(ang > 0.0001*M_PI){
|
||||
Standard_Real scal = ns2.Dot(dint1);
|
||||
if ( scal <= 0. ){
|
||||
ns2.Reverse();
|
||||
@@ -129,7 +129,7 @@ Standard_Integer ChFi3d::ConcaveSide(const BRepAdaptor_Surface& S1,
|
||||
dint1 = ns1.Crossed(tgE1);
|
||||
dint2 = ns2.Crossed(tgE2);
|
||||
ang = ns1.CrossMagnitude(ns2);
|
||||
if(ang > 0.0001*PI){
|
||||
if(ang > 0.0001*M_PI){
|
||||
Standard_Real scal = ns2.Dot(dint1);
|
||||
if ( scal <= 0. ){
|
||||
ns2.Reverse();
|
||||
|
@@ -752,7 +752,7 @@ Handle(Geom_BezierCurve) ChFi3d_Spine(const gp_Pnt& pd,
|
||||
const Standard_Real R)
|
||||
{
|
||||
TColgp_Array1OfPnt pol(1,4);
|
||||
const Standard_Real fac = 0.5 * tan((PI-vd.Angle(vf)) * 0.5);
|
||||
const Standard_Real fac = 0.5 * tan((M_PI-vd.Angle(vf)) * 0.5);
|
||||
pol(1) = pd;
|
||||
vd.Multiply(fac*R);
|
||||
pol(2).SetCoord(pd.X()+vd.X(),pd.Y()+vd.Y(),pd.Z()+vd.Z());
|
||||
@@ -3099,11 +3099,11 @@ Standard_Boolean ChFi3d_ComputeCurves(Handle(Adaptor3d_HSurface)& S1,
|
||||
Ufin = -Ufin;
|
||||
}
|
||||
else{
|
||||
Udeb = 2*PI - Udeb;
|
||||
Ufin = 2*PI - Ufin;
|
||||
Udeb = 2*M_PI - Udeb;
|
||||
Ufin = 2*M_PI - Ufin;
|
||||
}
|
||||
}
|
||||
if(!c1line) ElCLib::AdjustPeriodic(0.,2*PI,Precision::Angular(),Udeb,Ufin);
|
||||
if(!c1line) ElCLib::AdjustPeriodic(0.,2*M_PI,Precision::Angular(),Udeb,Ufin);
|
||||
Handle(GeomAdaptor_HCurve) HC = new GeomAdaptor_HCurve();
|
||||
HC->ChangeCurve().Load(C3d,Udeb,Ufin);
|
||||
ChFi3d_ProjectPCurv(HC,S1,Pc1,tol3d,tolr1);
|
||||
@@ -3629,7 +3629,7 @@ Handle(GeomAdaptor_HSurface) ChFi3d_BoundSurf(TopOpeBRepDS_DataStructure& DSt
|
||||
//In the case of a torus or cone, it is not necessary that the bounds create a surface with period more than 2PI.
|
||||
else if (styp == GeomAbs_Torus ||
|
||||
styp == GeomAbs_Cone) {
|
||||
Du = Min(PI-0.5*Du,0.1*Du);
|
||||
Du = Min(M_PI-0.5*Du,0.1*Du);
|
||||
Dv = 0.;
|
||||
S1.Load(DStr.Surface(Fd1->Surf()).Surface(),
|
||||
mu-Du,Mu+Du,mv,Mv);
|
||||
@@ -4126,7 +4126,7 @@ Standard_EXPORT
|
||||
//
|
||||
caredeb = 0;
|
||||
carefin = 0;
|
||||
Angle = PI*0.75;
|
||||
Angle = M_PI*0.75;
|
||||
LocalWL = WL;
|
||||
LocalWF = WF;
|
||||
if (!ES.IsPeriodic() && !PDeb.IsEqual(BSpline->Pole(1), tol) ) {
|
||||
@@ -4748,7 +4748,7 @@ Standard_Boolean ChFi3d_IsSmooth( const Handle(Geom_Curve)& C )
|
||||
LProp.CentreOfCurvature(P2);
|
||||
gp_Vec Vec(P1, P2);
|
||||
Standard_Real Angle = PrevVec.Angle( Vec );
|
||||
if (Angle > PI/3.)
|
||||
if (Angle > M_PI/3.)
|
||||
return Standard_False;
|
||||
Standard_Real Ratio = Vec.Magnitude() / PrevVec.Magnitude();
|
||||
if (Ratio < 1.)
|
||||
|
@@ -700,12 +700,12 @@ Standard_Boolean ChFi3d_Builder::PerformElement(const Handle(ChFiDS_Spine)& Spin
|
||||
// there is no need of tolerance
|
||||
// to make a decision (PRO9486) the regularity is enough.
|
||||
// However, the abcense of turn-back is checked (PRO9810)
|
||||
OnAjoute = ((!rev && av1v2 < PI/2)
|
||||
||(rev && av1v2 > PI/2));
|
||||
OnAjoute = ((!rev && av1v2 < M_PI/2)
|
||||
||(rev && av1v2 > M_PI/2));
|
||||
// mate attention to the single case (cf CTS21610_1)
|
||||
if (OnAjoute && (degeneOnEc ||
|
||||
TangentOnVertex(LVEc, Ev,myEFMap, ta)) )
|
||||
OnAjoute=((!rev && av1v2 < ta) || (rev && (PI - av1v2) < ta));
|
||||
OnAjoute=((!rev && av1v2 < ta) || (rev && (M_PI - av1v2) < ta));
|
||||
}
|
||||
if (OnAjoute) {
|
||||
Fini = Standard_False; // If this can be useful (Cf PRO14713)
|
||||
@@ -729,7 +729,7 @@ Standard_Boolean ChFi3d_Builder::PerformElement(const Handle(ChFiDS_Spine)& Spin
|
||||
for (Jt.Initialize(myEFMap(Ev)), Nbface= 0 ;Jt.More();Jt.Next(),
|
||||
Nbface++) {}
|
||||
if (Nbface> 1) CurSt = ChFiDS_BreakPoint;
|
||||
Fini = ((!rev && av1v2 < ta) || (rev && (PI - av1v2) < ta));
|
||||
Fini = ((!rev && av1v2 < ta) || (rev && (M_PI - av1v2) < ta));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -772,11 +772,11 @@ Standard_Boolean ChFi3d_Builder::PerformElement(const Handle(ChFiDS_Spine)& Spin
|
||||
Standard_Boolean rev = (Or1 != curor);
|
||||
Standard_Boolean OnAjoute = Standard_False;
|
||||
if (FaceTangency(Ec,Ev,LVEv)) {
|
||||
OnAjoute = ((!rev && av1v2 < PI/2)
|
||||
||(rev && av1v2 > PI/2));
|
||||
OnAjoute = ((!rev && av1v2 < M_PI/2)
|
||||
||(rev && av1v2 > M_PI/2));
|
||||
if (OnAjoute && (degeneOnEc ||
|
||||
TangentOnVertex(FVEc, Ev,myEFMap, ta)) )
|
||||
OnAjoute=((!rev && av1v2 < ta) || (rev && (PI-av1v2) < ta));
|
||||
OnAjoute=((!rev && av1v2 < ta) || (rev && (M_PI-av1v2) < ta));
|
||||
}
|
||||
if (OnAjoute) {
|
||||
Ec = Ev;
|
||||
@@ -791,7 +791,7 @@ Standard_Boolean ChFi3d_Builder::PerformElement(const Handle(ChFiDS_Spine)& Spin
|
||||
for(Jt.Initialize(myEFMap(Ev)),Nbface= 0 ;Jt.More();Jt.Next(),
|
||||
Nbface++) {}
|
||||
if (Nbface> 1) CurSt = ChFiDS_BreakPoint;
|
||||
Fini = ((!rev && av1v2 < ta) || (rev && (PI - av1v2) < ta));
|
||||
Fini = ((!rev && av1v2 < ta) || (rev && (M_PI - av1v2) < ta));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -853,7 +853,7 @@ void ChFi3d_Builder::StartSol(const Handle(ChFiDS_Stripe)& Stripe,
|
||||
// There are ponts on the border, and internal points are found
|
||||
if (derive.Magnitude() > Precision::PConfusion()) {
|
||||
derive.Normalized();
|
||||
derive.Rotate(PI/2);
|
||||
derive.Rotate(M_PI/2);
|
||||
AS.Initialize(f1);
|
||||
ResU = AS.UResolution(TolE);
|
||||
ResV = AS.VResolution(TolE);
|
||||
|
@@ -2041,7 +2041,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
||||
trouve=Standard_False;
|
||||
ChFi3d_cherche_vertex ( Edge[0],Edge[1],Vcom,trouve);
|
||||
if (Vcom.IsSame(Vtx)) ang1=ChFi3d_AngleEdge(Vtx,Edge[0],Edge[1]);
|
||||
if (Abs(ang1-PI)<0.01) {
|
||||
if (Abs(ang1-M_PI)<0.01) {
|
||||
oneintersection1=Standard_True;
|
||||
facesau=Face[0];
|
||||
edgesau=Edge[1];
|
||||
@@ -2054,7 +2054,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
||||
trouve=Standard_False;
|
||||
ChFi3d_cherche_vertex ( Edge[1],Edge[2],Vcom,trouve);
|
||||
if (Vcom.IsSame(Vtx)) ang1=ChFi3d_AngleEdge(Vtx,Edge[1],Edge[2]);
|
||||
if (Abs(ang1-PI)<0.01) {
|
||||
if (Abs(ang1-M_PI)<0.01) {
|
||||
oneintersection2=Standard_True;
|
||||
facesau=Face[1];
|
||||
edgesau=Edge[1];
|
||||
@@ -2414,17 +2414,17 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
||||
// deb=pfildeb.X();
|
||||
// xx1=pfil1.X();
|
||||
// xx2=pfil2.X();
|
||||
// moins2pi=Abs(deb)< Abs(Abs(deb)-2*PI);
|
||||
// moins2pi1=Abs(xx1)< Abs(Abs(xx1)-2*PI);
|
||||
// moins2pi2=Abs(xx2)< Abs(Abs(xx2)-2*PI);
|
||||
// moins2pi=Abs(deb)< Abs(Abs(deb)-2*M_PI);
|
||||
// moins2pi1=Abs(xx1)< Abs(Abs(xx1)-2*M_PI);
|
||||
// moins2pi2=Abs(xx2)< Abs(Abs(xx2)-2*M_PI);
|
||||
// if (moins2pi1!=moins2pi2) {
|
||||
// if (moins2pi) {
|
||||
// if (!moins2pi1) xx1=xx1-2*PI;
|
||||
// if (!moins2pi2) xx2=xx2-2*PI;
|
||||
// if (!moins2pi1) xx1=xx1-2*M_PI;
|
||||
// if (!moins2pi2) xx2=xx2-2*M_PI;
|
||||
// }
|
||||
// else {
|
||||
// if (moins2pi1) xx1=xx1+2*PI;
|
||||
// if (moins2pi2) xx2=xx2+2*PI;
|
||||
// if (moins2pi1) xx1=xx1+2*M_PI;
|
||||
// if (moins2pi2) xx2=xx2+2*M_PI;
|
||||
// }
|
||||
// }
|
||||
// pfil1.SetX(xx1);
|
||||
@@ -2437,17 +2437,17 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
||||
// deb=ufmin;
|
||||
// xx1=pfac1.X();
|
||||
// xx2=pfac2.X();
|
||||
// moins2pi=Abs(deb)< Abs(Abs(deb)-2*PI);
|
||||
// moins2pi1=Abs(xx1)< Abs(Abs(xx1)-2*PI);
|
||||
// moins2pi2=Abs(xx2)< Abs(Abs(xx2)-2*PI);
|
||||
// moins2pi=Abs(deb)< Abs(Abs(deb)-2*M_PI);
|
||||
// moins2pi1=Abs(xx1)< Abs(Abs(xx1)-2*M_PI);
|
||||
// moins2pi2=Abs(xx2)< Abs(Abs(xx2)-2*M_PI);
|
||||
// if (moins2pi1!=moins2pi2) {
|
||||
// if (moins2pi) {
|
||||
// if (!moins2pi1) xx1=xx1-2*PI;
|
||||
// if (!moins2pi2) xx2=xx2-2*PI;
|
||||
// if (!moins2pi1) xx1=xx1-2*M_PI;
|
||||
// if (!moins2pi2) xx2=xx2-2*M_PI;
|
||||
// }
|
||||
// else {
|
||||
// if (moins2pi1) xx1=xx1+2*PI;
|
||||
// if (moins2pi2) xx2=xx2+2*PI;
|
||||
// if (moins2pi1) xx1=xx1+2*M_PI;
|
||||
// if (moins2pi2) xx2=xx2+2*M_PI;
|
||||
// }
|
||||
// }
|
||||
// pfac1.SetX(xx1);
|
||||
|
@@ -491,15 +491,15 @@ static void CalculBatten (const Handle (GeomAdaptor_HSurface) ASurf,
|
||||
Bat.SetFreeSliding (Standard_True);
|
||||
Standard_Real ang1,ang2;
|
||||
ang1=dir1.Angle(dir3);
|
||||
if (dir1.Angle(dir4) >0 ) ang2=PI-dir1.Angle(dir4);
|
||||
else ang2=-PI-dir1.Angle(dir4);
|
||||
if (dir1.Angle(dir4) >0 ) ang2=M_PI-dir1.Angle(dir4);
|
||||
else ang2=-M_PI-dir1.Angle(dir4);
|
||||
if (contraint1&&contraint2)
|
||||
anglebig=(Abs(ang1)>1.2)|| (Abs(ang2)>1.2 );
|
||||
else if (contraint1)
|
||||
anglebig=Abs(ang1)>1.2;
|
||||
else if (contraint2)
|
||||
anglebig=Abs(ang2)>1.2;
|
||||
if (isplane && (Abs(ang1)>PI/2 || Abs(ang2)>PI/2))
|
||||
if (isplane && (Abs(ang1)>M_PI/2 || Abs(ang2)>M_PI/2))
|
||||
isplane=Standard_False;
|
||||
if (anglebig && !isplane) {
|
||||
CalculDroite(p2d1,xdir,ydir,pcurve);
|
||||
@@ -994,7 +994,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
Standard_Boolean droit=Standard_False;
|
||||
if (bordlibre) {nedge=(nedge-2)/2 +2;
|
||||
Standard_Real angedg=Abs(ChFi3d_AngleEdge(V1,edgelibre1,edgelibre2));
|
||||
droit=Abs(angedg-PI)<0.01;
|
||||
droit=Abs(angedg-M_PI)<0.01;
|
||||
}
|
||||
else nedge=nedge/2;
|
||||
Standard_Integer size=nedge*2;
|
||||
@@ -1248,7 +1248,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
if (ind!=ic) {
|
||||
TopoDS_Edge ecur=TopoDS::Edge(Evive.Value(ind));
|
||||
Standard_Real ang=Abs(ChFi3d_AngleEdge(V1,ecur,ereg));
|
||||
if (ang<0.01 || Abs(ang-PI) <0.01) {
|
||||
if (ang<0.01 || Abs(ang-M_PI) <0.01) {
|
||||
regul.SetValue(ic,Standard_False);
|
||||
tangentregul.SetValue(ic,Standard_True);
|
||||
trouve=Standard_True;
|
||||
@@ -1290,7 +1290,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
if ( !E1.IsSame(edgelibre1) && !E1.IsSame(edgelibre2) &&
|
||||
!E2.IsSame(edgelibre1) && !E2.IsSame(edgelibre2)){
|
||||
Standard_Real ang=Abs(ChFi3d_AngleEdge(V1 ,E1,E2));
|
||||
deuxconges=(ang<0.01 || Abs(ang-PI)<0.01);
|
||||
deuxconges=(ang<0.01 || Abs(ang-M_PI)<0.01);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1339,7 +1339,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
Indices(nedge,ic,icplus,icmoins);
|
||||
TopoDS_Edge Arc=TopoDS::Edge(Evive.Value(ic));
|
||||
ChFiDS_CommonPoint cp1, cp2;
|
||||
Standard_Real angedg=PI;
|
||||
Standard_Real angedg=M_PI;
|
||||
TopoDS_Vertex Vcom;
|
||||
if (!sharp.Value(icplus)) {
|
||||
isfirst=(sens.Value(icplus)==1);
|
||||
@@ -1349,7 +1349,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
if (cp1.IsOnArc()){
|
||||
ChFi3d_cherche_vertex(Arc,cp1.Arc(),Vcom,trouve);
|
||||
if (trouve) angedg=Abs(ChFi3d_AngleEdge(Vcom,Arc,cp1.Arc()));
|
||||
if (!cp1.Arc().IsSame(Arc) && Abs(angedg-PI)<0.01){
|
||||
if (!cp1.Arc().IsSame(Arc) && Abs(angedg-M_PI)<0.01){
|
||||
Evive.SetValue(ic,cp1.Arc());
|
||||
ChFi3d_edge_common_faces(myEFMap(cp1.Arc()),F1,F2);
|
||||
if (!Fvive.Value(ic,icplus).IsSame(F1) && !Fvive.Value(ic,icplus).IsSame(F2)) {
|
||||
@@ -1378,10 +1378,10 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
cp2 = CD.Value(icmoins)->SetOfSurfData()->Value(Index.Value(icmoins))->
|
||||
ChangeVertex (isfirst,jf.Value(icmoins));
|
||||
if (cp2.IsOnArc()) {
|
||||
angedg=PI;
|
||||
angedg=M_PI;
|
||||
ChFi3d_cherche_vertex(Arc,cp2.Arc(),Vcom,trouve);
|
||||
if (trouve) angedg=Abs(ChFi3d_AngleEdge(Vcom,Arc,cp2.Arc()));
|
||||
if (!cp2.Arc().IsSame(Arc)&&Abs(angedg-PI)<0.01) {
|
||||
if (!cp2.Arc().IsSame(Arc)&&Abs(angedg-M_PI)<0.01) {
|
||||
Evive.SetValue(ic,cp2.Arc());
|
||||
ChFi3d_edge_common_faces(myEFMap(cp2.Arc()),F1,F2);
|
||||
if (!Fvive.Value(ic,icmoins).IsSame(F1) && !Fvive.Value(ic,icmoins).IsSame(F2)) {
|
||||
@@ -1459,7 +1459,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
Standard_Integer iface;
|
||||
// if two edges are tangent the intersection is not attempted (cts60046)
|
||||
angedg=Abs(ChFi3d_AngleEdge(V1,TopoDS::Edge(Evive.Value(ic)),TopoDS::Edge(Evive.Value(icplus))));
|
||||
if (Abs(angedg-PI)>0.01)
|
||||
if (Abs(angedg-M_PI)>0.01)
|
||||
ok = ChFi3d_SearchFD(DStr,CD.Value(ic),CD.Value(icplus),sens.Value(ic),sens.Value(icplus),
|
||||
i1,i2,pa1,pa2,
|
||||
Index.Value(ic),Index.Value(icplus),
|
||||
@@ -2230,20 +2230,20 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
||||
if (couture) {
|
||||
Standard_Boolean PI1=Standard_False, PI2=Standard_False;
|
||||
Standard_Real xx;
|
||||
PI1=0<=p2d1.X() && p2d1.X() <=PI;
|
||||
PI2=0<=p2d2.X() && p2d2.X() <=PI;
|
||||
PI1=0<=p2d1.X() && p2d1.X() <=M_PI;
|
||||
PI2=0<=p2d2.X() && p2d2.X() <=M_PI;
|
||||
|
||||
if (Evive.Value(ic).IsSame(edgecouture)){
|
||||
xx=p2d1.X();
|
||||
if (PI2&&!PI1) xx=xx-2*PI;
|
||||
if (!PI2&&PI1) xx=xx+2*PI;
|
||||
if (PI2&&!PI1) xx=xx-2*M_PI;
|
||||
if (!PI2&&PI1) xx=xx+2*M_PI;
|
||||
p2d1.SetX(xx);
|
||||
|
||||
}
|
||||
if (Evive.Value(icplus).IsSame(edgecouture)){
|
||||
xx=p2d2.X();
|
||||
if (PI2&&!PI1) xx=xx+2*PI;
|
||||
if (!PI2&&PI1) xx=xx-2*PI;
|
||||
if (PI2&&!PI1) xx=xx+2*M_PI;
|
||||
if (!PI2&&PI1) xx=xx-2*M_PI;
|
||||
p2d2.SetX(xx);
|
||||
}
|
||||
}
|
||||
|
@@ -363,7 +363,7 @@ void ChFi3d_Builder::Trunc(const Handle(ChFiDS_SurfData)& SD,
|
||||
Standard_Real Ang = dsp.Angle(ded);
|
||||
Standard_Real dis1 = psp.Distance(ped);
|
||||
Standard_Real dis2 = p1.Distance(p2);
|
||||
if(Ang > PI/18.) tron = Standard_True;
|
||||
if(Ang > M_PI/18.) tron = Standard_True;
|
||||
if(dis1 >= 0.1*dis2) tron = Standard_True;
|
||||
Standard_Integer ivois;
|
||||
if(!tron && YaUnVoisin(Spine,iedge,ivois,isfirst)) {
|
||||
|
@@ -746,9 +746,9 @@ void ChFi3d_ChBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD ) const
|
||||
gp_Cone Co = AS.Cone();
|
||||
Standard_Real rad = Co.RefRadius(), sang = Co.SemiAngle();
|
||||
//#ifndef DEB
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/PI + 1);
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||
//#else
|
||||
// Standard_Integer n = 36.*ang/PI + 1;
|
||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
||||
//#endif
|
||||
if(n<2) n = 2;
|
||||
sec = new ChFiDS_SecHArray1(1, n);
|
||||
@@ -2133,7 +2133,7 @@ void ChFi3d_ChBuilder::SetRegul()
|
||||
gp_Pnt p;
|
||||
gp_Vec n1,n2,du,dv;
|
||||
BRep_Builder B;
|
||||
Standard_Real Seuil = PI/360.;
|
||||
Standard_Real Seuil = M_PI/360.;
|
||||
Standard_Real Seuil2 = Seuil * Seuil;
|
||||
for (it.Initialize(myRegul); it.More(); it.Next()){
|
||||
const ChFiDS_Regul& reg = it.Value();
|
||||
|
@@ -542,9 +542,9 @@ void ChFi3d_FilBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD) const
|
||||
gp_Torus To = AS.Torus();
|
||||
Standard_Real majr = To.MajorRadius(), minr = To.MinorRadius();
|
||||
//#ifndef DEB
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/PI + 1);
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||
//#else
|
||||
// Standard_Integer n = 36.*ang/PI + 1;
|
||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
||||
//#endif
|
||||
if(n<2) n = 2;
|
||||
sec = new ChFiDS_SecHArray1(1, n);
|
||||
@@ -565,9 +565,9 @@ void ChFi3d_FilBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD) const
|
||||
gp_Sphere Sp = AS.Sphere();
|
||||
Standard_Real rad = Sp.Radius();
|
||||
//#ifndef DEB
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/PI + 1);
|
||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||
//#else
|
||||
// Standard_Integer n = 36.*ang/PI + 1;
|
||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
||||
//#endif
|
||||
if(n<2) n = 2;
|
||||
sec = new ChFiDS_SecHArray1(1, n);
|
||||
|
@@ -220,7 +220,7 @@ void ChFi3d_FilBuilder::PerformTwoCorner(const Standard_Integer Index)
|
||||
if (Sens2==-1) dir2.Reverse();
|
||||
Standard_Real ang1;
|
||||
ang1=Abs(dir1.Angle(dir2));
|
||||
if (ang1<PI/180.) {
|
||||
if (ang1<M_PI/180.) {
|
||||
PerformMoreThreeCorner(Index,2);
|
||||
done=1;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user