mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0023604: Uninitialized variables in debug mode
Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code.
This commit is contained in:
parent
bd92cc2a59
commit
7a06c690fb
@ -1102,11 +1102,7 @@ void AIS::ComputeLengthBetweenCurvilinearFaces( const TopoDS_Face & FirstFa
|
|||||||
{
|
{
|
||||||
GeomAPI_ProjectPointOnSurf aProjector;
|
GeomAPI_ProjectPointOnSurf aProjector;
|
||||||
Quantity_Parameter U, V;
|
Quantity_Parameter U, V;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_State State = TopAbs_UNKNOWN;
|
TopAbs_State State = TopAbs_UNKNOWN;
|
||||||
#else
|
|
||||||
TopAbs_State State;
|
|
||||||
#endif
|
|
||||||
if (AutomaticPos)
|
if (AutomaticPos)
|
||||||
{
|
{
|
||||||
TopExp_Explorer Explo( FirstFace, TopAbs_VERTEX );
|
TopExp_Explorer Explo( FirstFace, TopAbs_VERTEX );
|
||||||
@ -1147,11 +1143,7 @@ void AIS::ComputeLengthBetweenCurvilinearFaces( const TopoDS_Face & FirstFa
|
|||||||
DirAttach = gp_Dir( D1U ^ D1V );
|
DirAttach = gp_Dir( D1U ^ D1V );
|
||||||
|
|
||||||
aProjector.Init( FirstAttach, SecondSurf );
|
aProjector.Init( FirstAttach, SecondSurf );
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Index = 0;
|
Standard_Integer Index = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Index;
|
|
||||||
#endif
|
|
||||||
Quantity_Length MinDist = RealLast();
|
Quantity_Length MinDist = RealLast();
|
||||||
gp_Dir LocalDir;
|
gp_Dir LocalDir;
|
||||||
for (Standard_Integer i = 1; i <= aProjector.NbPoints(); i++)
|
for (Standard_Integer i = 1; i <= aProjector.NbPoints(); i++)
|
||||||
|
@ -651,11 +651,7 @@ static Standard_Boolean CircleFromPlanarFace(const TopoDS_Face& aFace,
|
|||||||
void AIS_DiameterDimension::ComputeOnePlanarFaceDiameter(const Handle(Prs3d_Presentation)& aPresentation)
|
void AIS_DiameterDimension::ComputeOnePlanarFaceDiameter(const Handle(Prs3d_Presentation)& aPresentation)
|
||||||
{
|
{
|
||||||
gp_Pnt curPos ;
|
gp_Pnt curPos ;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real parfirst =0., parend =0.;
|
Standard_Real parfirst =0., parend =0.;
|
||||||
#else
|
|
||||||
Standard_Real parfirst, parend;
|
|
||||||
#endif
|
|
||||||
if (myAutomaticPosition) {
|
if (myAutomaticPosition) {
|
||||||
Handle(Geom_Curve) curv;
|
Handle(Geom_Curve) curv;
|
||||||
gp_Pnt ptfirst,ptend;
|
gp_Pnt ptfirst,ptend;
|
||||||
|
@ -309,13 +309,8 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::PerformFirstSection
|
|||||||
|
|
||||||
Standard_Boolean recadp1, recadp2, recadrst1, recadrst2;
|
Standard_Boolean recadp1, recadp2, recadrst1, recadrst2;
|
||||||
Standard_Real wp1, wp2, wrst1, wrst2;
|
Standard_Real wp1, wp2, wrst1, wrst2;
|
||||||
#ifndef DEB
|
|
||||||
Blend_Status State = Blend_OnRst12;
|
Blend_Status State = Blend_OnRst12;
|
||||||
Standard_Real trst11 = 0., trst12 = 0., trst21 = 0., trst22 = 0.;
|
Standard_Real trst11 = 0., trst12 = 0., trst21 = 0., trst22 = 0.;
|
||||||
#else
|
|
||||||
Blend_Status State;
|
|
||||||
Standard_Real trst11, trst12, trst21, trst22;
|
|
||||||
#endif
|
|
||||||
math_Vector infbound(1, 2), supbound(1, 2), tolerance(1, 2);
|
math_Vector infbound(1, 2), supbound(1, 2), tolerance(1, 2);
|
||||||
math_Vector solinvp1(1, 2), solinvp2(1, 2), solinvrst1(1, 3), solinvrst2(1, 3);
|
math_Vector solinvp1(1, 2), solinvp2(1, 2), solinvrst1(1, 3), solinvrst2(1, 3);
|
||||||
Handle(Adaptor3d_HVertex) Vtxp1, Vtxp2, Vtxrst1, Vtxrst2, Vtxc;
|
Handle(Adaptor3d_HVertex) Vtxp1, Vtxp2, Vtxrst1, Vtxrst2, Vtxc;
|
||||||
@ -555,13 +550,8 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
|
|||||||
if (sens* (parprec - Bound) >= -tolgui) {
|
if (sens* (parprec - Bound) >= -tolgui) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Blend_Status State = Blend_OnRst12;
|
Blend_Status State = Blend_OnRst12;
|
||||||
Standard_Real trst11 = 0., trst12 = 0., trst21 = 0., trst22 = 0.;
|
Standard_Real trst11 = 0., trst12 = 0., trst21 = 0., trst22 = 0.;
|
||||||
#else
|
|
||||||
Blend_Status State;
|
|
||||||
Standard_Real trst11, trst12, trst21, trst22;
|
|
||||||
#endif
|
|
||||||
TopAbs_State situonc1, situonc2;
|
TopAbs_State situonc1, situonc2;
|
||||||
Blend_DecrochStatus decroch;
|
Blend_DecrochStatus decroch;
|
||||||
Standard_Boolean Arrive, recadp1, recadp2, recadrst1, recadrst2, echecrecad;
|
Standard_Boolean Arrive, recadp1, recadp2, recadrst1, recadrst2, echecrecad;
|
||||||
@ -996,10 +986,8 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
|
|||||||
Arrive = Standard_True;
|
Arrive = Standard_True;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if (Arrive) {
|
if (Arrive) {
|
||||||
if (sens > 0.) {
|
if (sens > 0.) {
|
||||||
@ -1390,11 +1378,7 @@ void BRepBlend_RstRstLineBuilder::MakeExtremity(BRepBlend_Extremity&
|
|||||||
else {
|
else {
|
||||||
Extrem.SetVertex(Vtx);
|
Extrem.SetVertex(Vtx);
|
||||||
while (Iter->More()) {
|
while (Iter->More()) {
|
||||||
//#ifndef DEB
|
|
||||||
Handle(Adaptor2d_HCurve2d) arc = Iter->Value();
|
Handle(Adaptor2d_HCurve2d) arc = Iter->Value();
|
||||||
//#else
|
|
||||||
// Handle(Adaptor2d_HCurve2d)& arc = Iter->Value();
|
|
||||||
//#endif
|
|
||||||
if (arc != Arc) {
|
if (arc != Arc) {
|
||||||
Iter->Initialize(arc);
|
Iter->Initialize(arc);
|
||||||
Iter->InitVertexIterator();
|
Iter->InitVertexIterator();
|
||||||
@ -1442,11 +1426,7 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst1(const Blend_Poin
|
|||||||
prevTg = previousP.TangentOnC1();
|
prevTg = previousP.TangentOnC1();
|
||||||
}
|
}
|
||||||
Standard_Real Norme, curNorme;
|
Standard_Real Norme, curNorme;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real prevNorme = 0.;
|
Standard_Real prevNorme = 0.;
|
||||||
#else
|
|
||||||
Standard_Real prevNorme;
|
|
||||||
#endif
|
|
||||||
gp_Vec Corde(prevP, Psurf);
|
gp_Vec Corde(prevP, Psurf);
|
||||||
Norme = Corde.SquareMagnitude();
|
Norme = Corde.SquareMagnitude();
|
||||||
if (!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
if (!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
||||||
@ -1524,11 +1504,7 @@ Blend_Status BRepBlend_RstRstLineBuilder::CheckDeflectionOnRst2(const Blend_Poin
|
|||||||
prevTg = previousP.TangentOnC2();
|
prevTg = previousP.TangentOnC2();
|
||||||
}
|
}
|
||||||
Standard_Real Norme, curNorme;
|
Standard_Real Norme, curNorme;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real prevNorme = 0.;
|
Standard_Real prevNorme = 0.;
|
||||||
#else
|
|
||||||
Standard_Real prevNorme;
|
|
||||||
#endif
|
|
||||||
gp_Vec Corde(prevP, Psurf);
|
gp_Vec Corde(prevP, Psurf);
|
||||||
Norme = Corde.SquareMagnitude();
|
Norme = Corde.SquareMagnitude();
|
||||||
if (!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
if (!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
||||||
@ -1598,11 +1574,7 @@ Blend_Status BRepBlend_RstRstLineBuilder::TestArret(Blend_RstRstFunction& Func,
|
|||||||
gp_Vec tgrst1, tgrst2;
|
gp_Vec tgrst1, tgrst2;
|
||||||
gp_Vec2d tg2drst1, tg2drst2;
|
gp_Vec2d tg2drst1, tg2drst2;
|
||||||
Blend_Status StateRst1, StateRst2;
|
Blend_Status StateRst1, StateRst2;
|
||||||
#ifndef DEB
|
|
||||||
IntSurf_TypeTrans trarst1 = IntSurf_Undecided, trarst2 = IntSurf_Undecided;
|
IntSurf_TypeTrans trarst1 = IntSurf_Undecided, trarst2 = IntSurf_Undecided;
|
||||||
#else
|
|
||||||
IntSurf_TypeTrans trarst1, trarst2;
|
|
||||||
#endif
|
|
||||||
Blend_Point curpoint;
|
Blend_Point curpoint;
|
||||||
|
|
||||||
if (Func.IsSolution(sol, tolesp)) {
|
if (Func.IsSolution(sol, tolesp)) {
|
||||||
|
@ -340,13 +340,8 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::PerformFirstSection
|
|||||||
else {
|
else {
|
||||||
sens = -1.;
|
sens = -1.;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Blend_Status State = Blend_OnRst12;
|
Blend_Status State = Blend_OnRst12;
|
||||||
Standard_Real trst = 0.;
|
Standard_Real trst = 0.;
|
||||||
#else
|
|
||||||
Blend_Status State;
|
|
||||||
Standard_Real trst;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean recadp,recadrst,recads;
|
Standard_Boolean recadp,recadrst,recads;
|
||||||
Standard_Real wp,wrst,ws;
|
Standard_Real wp,wrst,ws;
|
||||||
Standard_Real U,V;
|
Standard_Real U,V;
|
||||||
@ -515,21 +510,13 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
|
|||||||
if (sens*(parprec - Bound) >= -tolgui) {
|
if (sens*(parprec - Bound) >= -tolgui) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Blend_Status State = Blend_OnRst12;
|
Blend_Status State = Blend_OnRst12;
|
||||||
#else
|
|
||||||
Blend_Status State;
|
|
||||||
#endif
|
|
||||||
TopAbs_State situonc,situons;
|
TopAbs_State situonc,situons;
|
||||||
Standard_Boolean decroch;
|
Standard_Boolean decroch;
|
||||||
Standard_Boolean Arrive,recadp,recadrst,recads,echecrecad;
|
Standard_Boolean Arrive,recadp,recadrst,recads,echecrecad;
|
||||||
Standard_Real wp,wrst,ws;
|
Standard_Real wp,wrst,ws;
|
||||||
Standard_Real U,V;
|
Standard_Real U,V;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real trst = 0.;
|
Standard_Real trst = 0.;
|
||||||
#else
|
|
||||||
Standard_Real trst;
|
|
||||||
#endif
|
|
||||||
math_Vector infbound(1,3),supbound(1,3);
|
math_Vector infbound(1,3),supbound(1,3);
|
||||||
math_Vector parinit(1,3),tolerance(1,3);
|
math_Vector parinit(1,3),tolerance(1,3);
|
||||||
math_Vector solinvp(1,3),solinvrst(1,4),solinvs(1,3);
|
math_Vector solinvp(1,3),solinvrst(1,4),solinvs(1,3);
|
||||||
@ -894,10 +881,8 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
|
|||||||
Arrive = Standard_True;
|
Arrive = Standard_True;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if (Arrive) {
|
if (Arrive) {
|
||||||
if (sens > 0.) {
|
if (sens > 0.) {
|
||||||
@ -1265,11 +1250,7 @@ void BRepBlend_SurfRstLineBuilder::MakeExtremity(BRepBlend_Extremity&
|
|||||||
else {
|
else {
|
||||||
Extrem.SetVertex(Vtx);
|
Extrem.SetVertex(Vtx);
|
||||||
while (Iter->More()) {
|
while (Iter->More()) {
|
||||||
//#ifndef DEB
|
|
||||||
Handle(Adaptor2d_HCurve2d) arc = Iter->Value();
|
Handle(Adaptor2d_HCurve2d) arc = Iter->Value();
|
||||||
//#else
|
|
||||||
// Handle(Adaptor2d_HCurve2d)& arc = Iter->Value();
|
|
||||||
//#endif
|
|
||||||
if (arc != Arc) {
|
if (arc != Arc) {
|
||||||
Iter->Initialize(arc);
|
Iter->Initialize(arc);
|
||||||
Iter->InitVertexIterator();
|
Iter->InitVertexIterator();
|
||||||
@ -1316,11 +1297,7 @@ Blend_Status BRepBlend_SurfRstLineBuilder::CheckDeflectionOnSurf(const Blend_Poi
|
|||||||
if(!prevpointistangent){
|
if(!prevpointistangent){
|
||||||
prevTg = previousP.TangentOnS();
|
prevTg = previousP.TangentOnS();
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Norme,prevNorme = 0.;
|
Standard_Real Norme,prevNorme = 0.;
|
||||||
#else
|
|
||||||
Standard_Real Norme,prevNorme;
|
|
||||||
#endif
|
|
||||||
gp_Vec Corde(prevP,Psurf);
|
gp_Vec Corde(prevP,Psurf);
|
||||||
Norme = Corde.SquareMagnitude();
|
Norme = Corde.SquareMagnitude();
|
||||||
// if(!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
// if(!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
||||||
@ -1396,11 +1373,7 @@ Blend_Status BRepBlend_SurfRstLineBuilder::CheckDeflectionOnRst(const Blend_Poin
|
|||||||
if(!prevpointistangent){
|
if(!prevpointistangent){
|
||||||
prevTg = previousP.TangentOnC();
|
prevTg = previousP.TangentOnC();
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Norme,prevNorme = 0.;
|
Standard_Real Norme,prevNorme = 0.;
|
||||||
#else
|
|
||||||
Standard_Real Norme,prevNorme;
|
|
||||||
#endif
|
|
||||||
gp_Vec Corde(prevP,Psurf);
|
gp_Vec Corde(prevP,Psurf);
|
||||||
Norme = Corde.SquareMagnitude();
|
Norme = Corde.SquareMagnitude();
|
||||||
// if(!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
// if(!curpointistangent) curNorme = Tgsurf.SquareMagnitude();
|
||||||
@ -1470,11 +1443,7 @@ Blend_Status BRepBlend_SurfRstLineBuilder::TestArret(Blend_SurfRstFunction& Func
|
|||||||
gp_Vec tgs,tgrst;
|
gp_Vec tgs,tgrst;
|
||||||
gp_Vec2d tg2ds,tg2drst;
|
gp_Vec2d tg2ds,tg2drst;
|
||||||
Blend_Status StateS,StateRst;
|
Blend_Status StateS,StateRst;
|
||||||
#ifndef DEB
|
|
||||||
IntSurf_TypeTrans tras = IntSurf_Undecided, trarst = IntSurf_Undecided;
|
IntSurf_TypeTrans tras = IntSurf_Undecided, trarst = IntSurf_Undecided;
|
||||||
#else
|
|
||||||
IntSurf_TypeTrans tras,trarst;
|
|
||||||
#endif
|
|
||||||
Blend_Point curpoint;
|
Blend_Point curpoint;
|
||||||
|
|
||||||
if (Func.IsSolution(sol,tolesp)) {
|
if (Func.IsSolution(sol,tolesp)) {
|
||||||
|
@ -181,10 +181,8 @@ void BRepCheck::Print(const BRepCheck_Status stat,
|
|||||||
case BRepCheck_CheckFail:
|
case BRepCheck_CheckFail:
|
||||||
OS << "BRepCheck_CheckFail\n";
|
OS << "BRepCheck_CheckFail\n";
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,10 +91,8 @@ void BRepCheck_Analyzer::Put(const TopoDS_Shape& S,
|
|||||||
case TopAbs_COMPSOLID:
|
case TopAbs_COMPSOLID:
|
||||||
case TopAbs_COMPOUND:
|
case TopAbs_COMPOUND:
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
myMap.Bind(S,HR);
|
myMap.Bind(S,HR);
|
||||||
for(TopoDS_Iterator theIterator(S);theIterator.More();theIterator.Next()) {
|
for(TopoDS_Iterator theIterator(S);theIterator.More();theIterator.Next()) {
|
||||||
|
@ -684,29 +684,13 @@ static Standard_Boolean IsInside(const TopoDS_Wire& wir,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gp_Pnt2d pt2d(C2d->Value(prm));
|
gp_Pnt2d pt2d(C2d->Value(prm));
|
||||||
#ifdef DEB
|
|
||||||
TopAbs_State st2=
|
|
||||||
#endif
|
|
||||||
FClass2d.Perform(pt2d,Standard_False);
|
|
||||||
//-- if(st1!=st2) {
|
|
||||||
//-- static int p=0;
|
|
||||||
//-- printf("\n point p%d %g %g \n",++p,pt2d.X(),pt2d.Y());
|
|
||||||
//-- }
|
|
||||||
|
|
||||||
if(WireBienOriente) {
|
if(WireBienOriente) {
|
||||||
#ifndef DEB
|
|
||||||
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_OUT);
|
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_OUT);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_IN);
|
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_IN);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
return(st2 == TopAbs_OUT);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return(st2 == TopAbs_IN);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return Standard_False;
|
return Standard_False;
|
||||||
}
|
}
|
||||||
|
@ -548,11 +548,7 @@ BRepCheck_Status BRepCheck_Wire::Orientation(const TopoDS_Face& F,
|
|||||||
theOstat = BRepCheck_NoError;
|
theOstat = BRepCheck_NoError;
|
||||||
|
|
||||||
TopoDS_Vertex VF,VL;
|
TopoDS_Vertex VF,VL;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation orient, ortmp = TopAbs_FORWARD;
|
TopAbs_Orientation orient, ortmp = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation orient, ortmp;
|
|
||||||
#endif
|
|
||||||
TopTools_ListOfShape ledge, ListOfPassedEdge;
|
TopTools_ListOfShape ledge, ListOfPassedEdge;
|
||||||
TopExp_Explorer exp,vte;
|
TopExp_Explorer exp,vte;
|
||||||
TopTools_MapOfShape mapS;
|
TopTools_MapOfShape mapS;
|
||||||
@ -1492,11 +1488,7 @@ static TopAbs_Orientation GetOrientation(const TopTools_MapOfShape& mapE,
|
|||||||
Standard_Real MinAngle, MaxAngle, angle;
|
Standard_Real MinAngle, MaxAngle, angle;
|
||||||
Standard_Real gpResolution=gp::Resolution();
|
Standard_Real gpResolution=gp::Resolution();
|
||||||
TopAbs_Orientation aVOrientation, aEdgOrientation;
|
TopAbs_Orientation aVOrientation, aEdgOrientation;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real dist2d = 0, p = 0;
|
Standard_Real dist2d = 0, p = 0;
|
||||||
#else
|
|
||||||
Standard_Real dist2d, p;
|
|
||||||
#endif
|
|
||||||
Standard_Real f, l, parpiv;
|
Standard_Real f, l, parpiv;
|
||||||
Standard_Real tolv = BRep_Tool::Tolerance(V);
|
Standard_Real tolv = BRep_Tool::Tolerance(V);
|
||||||
BRepAdaptor_Surface Ads(F,Standard_False); // no restriction
|
BRepAdaptor_Surface Ads(F,Standard_False); // no restriction
|
||||||
|
@ -909,12 +909,8 @@ Standard_Integer BRepClass3d_SolidExplorer::Segment(const gp_Pnt& P,
|
|||||||
|
|
||||||
IntCurvesFace_Intersector& BRepClass3d_SolidExplorer::Intersector(const TopoDS_Face& F) const {
|
IntCurvesFace_Intersector& BRepClass3d_SolidExplorer::Intersector(const TopoDS_Face& F) const {
|
||||||
void *ptr = (void*)(myMapOfInter.Find(F));
|
void *ptr = (void*)(myMapOfInter.Find(F));
|
||||||
#ifndef DEB
|
|
||||||
IntCurvesFace_Intersector& curr = (*((IntCurvesFace_Intersector *)ptr));
|
IntCurvesFace_Intersector& curr = (*((IntCurvesFace_Intersector *)ptr));
|
||||||
return curr;
|
return curr;
|
||||||
#else
|
|
||||||
return(*((IntCurvesFace_Intersector *)ptr));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -786,11 +786,7 @@ void BRepFeat_MakeDPrism::PerformFromEnd(const TopoDS_Shape& Until)
|
|||||||
LocOpe_CSIntersector ASI2(mySbase);
|
LocOpe_CSIntersector ASI2(mySbase);
|
||||||
ASI1.Perform(scur);
|
ASI1.Perform(scur);
|
||||||
ASI2.Perform(scur);
|
ASI2.Perform(scur);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OrU = TopAbs_FORWARD, OrF = TopAbs_FORWARD;
|
TopAbs_Orientation OrU = TopAbs_FORWARD, OrF = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OrU, OrF;
|
|
||||||
#endif
|
|
||||||
TopoDS_Face FUntil, FFrom;
|
TopoDS_Face FUntil, FFrom;
|
||||||
if (ASI1.IsDone() && ASI1.NbPoints(1) >=1) {
|
if (ASI1.IsDone() && ASI1.NbPoints(1) >=1) {
|
||||||
OrU = ASI1.Point(1,1).Orientation();
|
OrU = ASI1.Point(1,1).Orientation();
|
||||||
|
@ -984,11 +984,7 @@ void BRepFeat_MakeLinearForm::Perform()
|
|||||||
TopExp_Explorer Ex;
|
TopExp_Explorer Ex;
|
||||||
TopoDS_Edge eb, ec;
|
TopoDS_Edge eb, ec;
|
||||||
gp_Pnt p1, p2;
|
gp_Pnt p1, p2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real t1 = 0., t2 = 0.;
|
Standard_Real t1 = 0., t2 = 0.;
|
||||||
#else
|
|
||||||
Standard_Real t1, t2;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean c1f, c2f, c1l, c2l;
|
Standard_Boolean c1f, c2f, c1l, c2l;
|
||||||
|
|
||||||
for (Ex.Init(sect.Shape(), TopAbs_EDGE); Ex.More(); Ex.Next()) {
|
for (Ex.Init(sect.Shape(), TopAbs_EDGE); Ex.More(); Ex.Next()) {
|
||||||
|
@ -832,11 +832,7 @@ void BRepFeat_MakePrism::PerformFromEnd(const TopoDS_Shape& Until)
|
|||||||
LocOpe_CSIntersector ASI2(mySbase);
|
LocOpe_CSIntersector ASI2(mySbase);
|
||||||
ASI1.Perform(scur);
|
ASI1.Perform(scur);
|
||||||
ASI2.Perform(scur);
|
ASI2.Perform(scur);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OrU = TopAbs_FORWARD, OrF = TopAbs_FORWARD;
|
TopAbs_Orientation OrU = TopAbs_FORWARD, OrF = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OrU, OrF;
|
|
||||||
#endif
|
|
||||||
TopoDS_Face FUntil, FFrom;
|
TopoDS_Face FUntil, FFrom;
|
||||||
if (ASI1.IsDone() && ASI1.NbPoints(1) >=1) {
|
if (ASI1.IsDone() && ASI1.NbPoints(1) >=1) {
|
||||||
OrU = ASI1.Point(1,1).Orientation();
|
OrU = ASI1.Point(1,1).Orientation();
|
||||||
@ -1126,11 +1122,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,
|
|||||||
BRepBndLib::Add(theSbase,Box);
|
BRepBndLib::Add(theSbase,Box);
|
||||||
BRepBndLib::Add(theSkface,Box);
|
BRepBndLib::Add(theSkface,Box);
|
||||||
if(!theSFrom.IsNull()) {
|
if(!theSFrom.IsNull()) {
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean FacRevolInfini = Standard_False;
|
Standard_Boolean FacRevolInfini = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean FacRevolInfini;
|
|
||||||
#endif
|
|
||||||
TopExp_Explorer exp;
|
TopExp_Explorer exp;
|
||||||
exp.Init(theSFrom, TopAbs_EDGE);
|
exp.Init(theSFrom, TopAbs_EDGE);
|
||||||
for(; exp.More(); exp.Next()) {
|
for(; exp.More(); exp.Next()) {
|
||||||
@ -1145,11 +1137,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,
|
|||||||
BRepBndLib::Add(theSFrom,Box);
|
BRepBndLib::Add(theSFrom,Box);
|
||||||
}
|
}
|
||||||
if(!theSUntil.IsNull()) {
|
if(!theSUntil.IsNull()) {
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean FacRevolInfini = Standard_False;
|
|
||||||
#else
|
|
||||||
Standard_Boolean FacRevolInfini;
|
Standard_Boolean FacRevolInfini;
|
||||||
#endif
|
|
||||||
TopExp_Explorer exp;
|
TopExp_Explorer exp;
|
||||||
exp.Init(theSUntil, TopAbs_EDGE);
|
exp.Init(theSUntil, TopAbs_EDGE);
|
||||||
for(; exp.More(); exp.Next()) {
|
for(; exp.More(); exp.Next()) {
|
||||||
|
@ -91,11 +91,7 @@ Standard_Integer DetectKPart(const TopoDS_Edge& Edge1,
|
|||||||
// find the particular case
|
// find the particular case
|
||||||
gp_Pnt pos1, pos;
|
gp_Pnt pos1, pos;
|
||||||
Standard_Real dist;
|
Standard_Real dist;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real dist1 =0.;
|
Standard_Real dist1 =0.;
|
||||||
#else
|
|
||||||
Standard_Real dist1;
|
|
||||||
#endif
|
|
||||||
gp_Ax1 axe1, axe;
|
gp_Ax1 axe1, axe;
|
||||||
|
|
||||||
if (degen1) {
|
if (degen1) {
|
||||||
|
@ -468,11 +468,7 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
|
|||||||
gp_Mat M1, M2, DM1, DM2;
|
gp_Mat M1, M2, DM1, DM2;
|
||||||
Standard_Real First, Last, EpsNul = 1.e-12;
|
Standard_Real First, Last, EpsNul = 1.e-12;
|
||||||
Standard_Real TolEps = SpatialTolerance;
|
Standard_Real TolEps = SpatialTolerance;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean Ok_D1 = Standard_False;
|
Standard_Boolean Ok_D1 = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean Ok_D1;
|
|
||||||
#endif
|
|
||||||
TopoDS_Vertex V;
|
TopoDS_Vertex V;
|
||||||
TopoDS_Edge E;
|
TopoDS_Edge E;
|
||||||
TColgp_Array1OfPnt2d Bid1 (1,1);
|
TColgp_Array1OfPnt2d Bid1 (1,1);
|
||||||
|
@ -759,11 +759,7 @@ void BRepFill_NSections::Init(const TColStd_SequenceOfReal & P,
|
|||||||
|
|
||||||
Standard_Integer jj;
|
Standard_Integer jj;
|
||||||
GeomAbs_Shape cont_jj;
|
GeomAbs_Shape cont_jj;
|
||||||
#ifndef DEB
|
|
||||||
GeomAbs_Shape cont = GeomAbs_C0;
|
GeomAbs_Shape cont = GeomAbs_C0;
|
||||||
#else
|
|
||||||
GeomAbs_Shape cont;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (jj=1; jj<=myShapes.Length(); jj++) {
|
for (jj=1; jj<=myShapes.Length(); jj++) {
|
||||||
|
|
||||||
|
@ -458,10 +458,8 @@ TopoDS_Shape BRepFill_Pipe::MakeShape(const TopoDS_Shape& S,
|
|||||||
explode = Standard_True;
|
explode = Standard_True;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (explode) {
|
if (explode) {
|
||||||
@ -644,10 +642,8 @@ Standard_Integer BRepFill_Pipe::FindEdge(const TopoDS_Shape& S,
|
|||||||
case TopAbs_COMPSOLID :
|
case TopAbs_COMPSOLID :
|
||||||
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -712,10 +708,8 @@ Standard_Integer BRepFill_Pipe::FindVertex(const TopoDS_Shape& S,
|
|||||||
case TopAbs_COMPSOLID :
|
case TopAbs_COMPSOLID :
|
||||||
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -164,11 +164,7 @@ static Standard_Real EvalPhase(const TopoDS_Edge& Edge,
|
|||||||
{
|
{
|
||||||
gp_Pnt2d PE1,PE2,PF1,PF2;
|
gp_Pnt2d PE1,PE2,PF1,PF2;
|
||||||
Standard_Real VDeg;
|
Standard_Real VDeg;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real V = 0.;
|
Standard_Real V = 0.;
|
||||||
#else
|
|
||||||
Standard_Real V;
|
|
||||||
#endif
|
|
||||||
BRep_Tool::UVPoints(Edge,Face,PE1,PE2);
|
BRep_Tool::UVPoints(Edge,Face,PE1,PE2);
|
||||||
VDeg = PE1.Y();
|
VDeg = PE1.Y();
|
||||||
TopExp_Explorer Exp(Face,TopAbs_EDGE);
|
TopExp_Explorer Exp(Face,TopAbs_EDGE);
|
||||||
|
@ -148,11 +148,7 @@ Standard_Boolean BRepLib::CheckSameRange(const TopoDS_Edge& AnEdge,
|
|||||||
((*((Handle(BRep_TEdge)*)&AnEdge.TShape()))->ChangeCurves());
|
((*((Handle(BRep_TEdge)*)&AnEdge.TShape()))->ChangeCurves());
|
||||||
|
|
||||||
Standard_Real first, last;
|
Standard_Real first, last;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real current_first =0., current_last =0. ;
|
Standard_Real current_first =0., current_last =0. ;
|
||||||
#else
|
|
||||||
Standard_Real current_first,current_last ;
|
|
||||||
#endif
|
|
||||||
Handle(BRep_GCurve) geometric_representation_ptr ;
|
Handle(BRep_GCurve) geometric_representation_ptr ;
|
||||||
|
|
||||||
while (IsSameRange && an_Iterator.More()) {
|
while (IsSameRange && an_Iterator.More()) {
|
||||||
@ -961,11 +957,7 @@ void BRepLib::SameParameter(const TopoDS_Edge& AnEdge,
|
|||||||
GeomAdaptor_Curve& GAC = HC->ChangeCurve();
|
GeomAdaptor_Curve& GAC = HC->ChangeCurve();
|
||||||
Geom2dAdaptor_Curve& GAC2d = HC2d->ChangeCurve2d();
|
Geom2dAdaptor_Curve& GAC2d = HC2d->ChangeCurve2d();
|
||||||
GeomAdaptor_Surface& GAS = HS->ChangeSurface();
|
GeomAdaptor_Surface& GAS = HS->ChangeSurface();
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real f3d =0.,l3d =0.;
|
Standard_Real f3d =0.,l3d =0.;
|
||||||
#else
|
|
||||||
Standard_Real f3d,l3d;
|
|
||||||
#endif
|
|
||||||
TopLoc_Location L3d;
|
TopLoc_Location L3d;
|
||||||
Handle(Geom_Curve) C3d;
|
Handle(Geom_Curve) C3d;
|
||||||
|
|
||||||
@ -1522,11 +1514,7 @@ static Standard_Boolean tgtfaces(const TopoDS_Edge& Ed,
|
|||||||
Standard_Boolean rev1 = (F1.Orientation() == TopAbs_REVERSED);
|
Standard_Boolean rev1 = (F1.Orientation() == TopAbs_REVERSED);
|
||||||
Standard_Boolean rev2 = (F2.Orientation() == TopAbs_REVERSED);
|
Standard_Boolean rev2 = (F2.Orientation() == TopAbs_REVERSED);
|
||||||
Standard_Real f,l,eps, angmax = -M_PI;
|
Standard_Real f,l,eps, angmax = -M_PI;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real ang =0.;
|
Standard_Real ang =0.;
|
||||||
#else
|
|
||||||
Standard_Real ang;
|
|
||||||
#endif
|
|
||||||
BRep_Tool::Range(E,f,l);
|
BRep_Tool::Range(E,f,l);
|
||||||
Extrema_LocateExtPC ext;
|
Extrema_LocateExtPC ext;
|
||||||
Standard_Boolean IsInitialized = Standard_False;
|
Standard_Boolean IsInitialized = Standard_False;
|
||||||
|
@ -80,11 +80,7 @@ void BRepLib_MakeWire::Add(const TopTools_ListOfShape& L)
|
|||||||
rlist.Prepend(edVer);
|
rlist.Prepend(edVer);
|
||||||
nlist.Prepend(edVer);
|
nlist.Prepend(edVer);
|
||||||
if (!mapLocale.Contains(edVer)) {
|
if (!mapLocale.Contains(edVer)) {
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean notYetFound = Standard_True;
|
Standard_Boolean notYetFound = Standard_True;
|
||||||
#else
|
|
||||||
Standard_Boolean notYetFound;
|
|
||||||
#endif
|
|
||||||
Standard_Real gap=BRep_Tool::Tolerance(edVer);
|
Standard_Real gap=BRep_Tool::Tolerance(edVer);
|
||||||
gp_Pnt pVer=BRep_Tool::Pnt(edVer);
|
gp_Pnt pVer=BRep_Tool::Pnt(edVer);
|
||||||
for (itMS.Initialize(mapLocale); itMS.More(); itMS.Next()) {
|
for (itMS.Initialize(mapLocale); itMS.More(); itMS.Next()) {
|
||||||
@ -135,11 +131,7 @@ void BRepLib_MakeWire::Add(const TopTools_ListOfShape& L)
|
|||||||
TopoDS_Vertex vf, vl;
|
TopoDS_Vertex vf, vl;
|
||||||
TopoDS_Shape theKey;
|
TopoDS_Shape theKey;
|
||||||
Standard_Boolean usedVertex;
|
Standard_Boolean usedVertex;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean closedEdge = Standard_False;
|
Standard_Boolean closedEdge = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean closedEdge;
|
|
||||||
#endif
|
|
||||||
Standard_Integer vvInd, lastInd;
|
Standard_Integer vvInd, lastInd;
|
||||||
do {
|
do {
|
||||||
if (!VL.IsNull() && lesMeres.Contains(VL)) {
|
if (!VL.IsNull() && lesMeres.Contains(VL)) {
|
||||||
|
@ -1374,11 +1374,7 @@ static Standard_Boolean UpdateVertex(TopoDS_Vertex V,
|
|||||||
BRepAdaptor_Curve NC(NE);
|
BRepAdaptor_Curve NC(NE);
|
||||||
Standard_Real Of = OC.FirstParameter(); Standard_Real Ol = OC.LastParameter();
|
Standard_Real Of = OC.FirstParameter(); Standard_Real Ol = OC.LastParameter();
|
||||||
Standard_Real Nf = NC.FirstParameter(); Standard_Real Nl = NC.LastParameter();
|
Standard_Real Nf = NC.FirstParameter(); Standard_Real Nl = NC.LastParameter();
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real U = 0.;
|
Standard_Real U = 0.;
|
||||||
#else
|
|
||||||
Standard_Real U;
|
|
||||||
#endif
|
|
||||||
Standard_Real ParTol = Precision::PConfusion();
|
Standard_Real ParTol = Precision::PConfusion();
|
||||||
gp_Pnt P = BRep_Tool::Pnt(V);
|
gp_Pnt P = BRep_Tool::Pnt(V);
|
||||||
Standard_Boolean OK = Standard_False;
|
Standard_Boolean OK = Standard_False;
|
||||||
|
@ -1532,10 +1532,8 @@ TopoDS_Shape BRepOffset_Offset::Generated(const TopoDS_Shape& Shape) const
|
|||||||
aShape.Reverse();
|
aShape.Reverse();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return aShape;
|
return aShape;
|
||||||
|
@ -492,10 +492,8 @@ static void BuildPCurves (const TopoDS_Edge& E,
|
|||||||
case GeomAbs_BSplineCurve:
|
case GeomAbs_BSplineCurve:
|
||||||
C2d = Proj.BSpline();
|
C2d = Proj.BSpline();
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AS.IsUPeriodic() || AS.IsVPeriodic()) {
|
if (AS.IsUPeriodic() || AS.IsVPeriodic()) {
|
||||||
@ -2201,11 +2199,7 @@ static Standard_Boolean ProjectVertexOnEdge(TopoDS_Vertex& V,
|
|||||||
#endif
|
#endif
|
||||||
BRep_Builder B;
|
BRep_Builder B;
|
||||||
Standard_Real f,l;
|
Standard_Real f,l;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real U = 0.;
|
Standard_Real U = 0.;
|
||||||
#else
|
|
||||||
Standard_Real U;
|
|
||||||
#endif
|
|
||||||
TopLoc_Location L;
|
TopLoc_Location L;
|
||||||
Standard_Boolean found = Standard_False;
|
Standard_Boolean found = Standard_False;
|
||||||
|
|
||||||
@ -2360,11 +2354,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real U1 = 0.,U2 = 0.;
|
Standard_Real U1 = 0.,U2 = 0.;
|
||||||
#else
|
|
||||||
Standard_Real U1,U2;
|
|
||||||
#endif
|
|
||||||
gp_Pnt2d P2d;
|
gp_Pnt2d P2d;
|
||||||
if (itry == 1) {
|
if (itry == 1) {
|
||||||
fl1[0] = C1->FirstParameter(); fl1[1] = C1->LastParameter();
|
fl1[0] = C1->FirstParameter(); fl1[1] = C1->LastParameter();
|
||||||
@ -3379,11 +3369,7 @@ static Standard_Boolean TryParameter (const TopoDS_Edge& OE,
|
|||||||
BRepAdaptor_Curve NC(NE);
|
BRepAdaptor_Curve NC(NE);
|
||||||
Standard_Real Of = OC.FirstParameter(); Standard_Real Ol = OC.LastParameter();
|
Standard_Real Of = OC.FirstParameter(); Standard_Real Ol = OC.LastParameter();
|
||||||
Standard_Real Nf = NC.FirstParameter(); Standard_Real Nl = NC.LastParameter();
|
Standard_Real Nf = NC.FirstParameter(); Standard_Real Nl = NC.LastParameter();
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real U = 0.;
|
Standard_Real U = 0.;
|
||||||
#else
|
|
||||||
Standard_Real U;
|
|
||||||
#endif
|
|
||||||
gp_Pnt P = BRep_Tool::Pnt(V);
|
gp_Pnt P = BRep_Tool::Pnt(V);
|
||||||
Standard_Boolean OK = Standard_False;
|
Standard_Boolean OK = Standard_False;
|
||||||
|
|
||||||
|
@ -936,10 +936,8 @@ Standard_Integer offsetparameter(Draw_Interpretor& di,
|
|||||||
//case GeomAbs_Intersection: cout << " Intersection"; break;
|
//case GeomAbs_Intersection: cout << " Intersection"; break;
|
||||||
case GeomAbs_Arc: di << " Arc"; break;
|
case GeomAbs_Arc: di << " Arc"; break;
|
||||||
case GeomAbs_Intersection: di << " Intersection"; break;
|
case GeomAbs_Intersection: di << " Intersection"; break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break ;
|
break ;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
//cout << endl;
|
//cout << endl;
|
||||||
di << "\n";
|
di << "\n";
|
||||||
|
@ -102,10 +102,8 @@ static Standard_Integer contblend(Draw_Interpretor& di, Standard_Integer narg, c
|
|||||||
//cout << "C2"<<endl;
|
//cout << "C2"<<endl;
|
||||||
di << "C2"<<"\n";
|
di << "C2"<<"\n";
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -828,11 +828,7 @@ void BRepTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
|
|||||||
Standard_Real PfX,PfY,PlX,PlY;
|
Standard_Real PfX,PfY,PlX,PlY;
|
||||||
gp_Pnt2d aPf, aPl;
|
gp_Pnt2d aPf, aPl;
|
||||||
Standard_Boolean closed;
|
Standard_Boolean closed;
|
||||||
#ifndef DEB
|
|
||||||
GeomAbs_Shape reg = GeomAbs_C0;
|
GeomAbs_Shape reg = GeomAbs_C0;
|
||||||
#else
|
|
||||||
GeomAbs_Shape reg;
|
|
||||||
#endif
|
|
||||||
switch (T) {
|
switch (T) {
|
||||||
|
|
||||||
|
|
||||||
|
@ -595,11 +595,7 @@ static TopAbs_Orientation Orientation(const TopoDS_Edge& E,
|
|||||||
const TopoDS_Face& F,
|
const TopoDS_Face& F,
|
||||||
const TopTools_ListOfShape& L)
|
const TopTools_ListOfShape& L)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation Orien = TopAbs_FORWARD;
|
TopAbs_Orientation Orien = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation Orien;
|
|
||||||
#endif
|
|
||||||
TopTools_ListIteratorOfListOfShape itld;
|
TopTools_ListIteratorOfListOfShape itld;
|
||||||
for ( itld.Initialize(L); itld.More(); itld.Next()) {
|
for ( itld.Initialize(L); itld.More(); itld.Next()) {
|
||||||
if ( itld.Value().IsSame(E)) {
|
if ( itld.Value().IsSame(E)) {
|
||||||
|
@ -765,11 +765,7 @@ void BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
|
|||||||
gp_Pnt2d aPf, aPl;
|
gp_Pnt2d aPf, aPl;
|
||||||
Standard_Boolean closed, bval;
|
Standard_Boolean closed, bval;
|
||||||
Standard_SStream aMsg;
|
Standard_SStream aMsg;
|
||||||
#ifndef DEB
|
|
||||||
GeomAbs_Shape reg = GeomAbs_C0;
|
GeomAbs_Shape reg = GeomAbs_C0;
|
||||||
#else
|
|
||||||
GeomAbs_Shape reg;
|
|
||||||
#endif
|
|
||||||
try {
|
try {
|
||||||
OCC_CATCH_SIGNALS
|
OCC_CATCH_SIGNALS
|
||||||
switch (T) {
|
switch (T) {
|
||||||
|
@ -451,9 +451,7 @@ GeomAbs_Shape Bisector_BisecCC::Continuity() const
|
|||||||
case GeomAbs_C2 : return GeomAbs_C1;
|
case GeomAbs_C2 : return GeomAbs_C1;
|
||||||
case GeomAbs_C3 : return GeomAbs_C2;
|
case GeomAbs_C3 : return GeomAbs_C2;
|
||||||
case GeomAbs_CN : return GeomAbs_CN;
|
case GeomAbs_CN : return GeomAbs_CN;
|
||||||
#ifndef DEB
|
|
||||||
default: break;
|
default: break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return GeomAbs_C0;
|
return GeomAbs_C0;
|
||||||
}
|
}
|
||||||
@ -497,9 +495,7 @@ GeomAbs_Shape Bisector_BisecCC::IntervalContinuity() const
|
|||||||
case GeomAbs_C2 : return GeomAbs_C1;
|
case GeomAbs_C2 : return GeomAbs_C1;
|
||||||
case GeomAbs_C3 : return GeomAbs_C2;
|
case GeomAbs_C3 : return GeomAbs_C2;
|
||||||
case GeomAbs_CN : return GeomAbs_CN;
|
case GeomAbs_CN : return GeomAbs_CN;
|
||||||
#ifndef DEB
|
|
||||||
default: break;
|
default: break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return GeomAbs_C0;
|
return GeomAbs_C0;
|
||||||
}
|
}
|
||||||
@ -1125,11 +1121,7 @@ gp_Pnt2d Bisector_BisecCC::Extension (const Standard_Real U,
|
|||||||
Bisector_PointOnBis PRef;
|
Bisector_PointOnBis PRef;
|
||||||
gp_Pnt2d P,P1,P2,PBis;
|
gp_Pnt2d P,P1,P2,PBis;
|
||||||
gp_Vec2d T1,Tang;
|
gp_Vec2d T1,Tang;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real dU = 0.;
|
Standard_Real dU = 0.;
|
||||||
#else
|
|
||||||
Standard_Real dU;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean ExtensionTangent = Standard_False;
|
Standard_Boolean ExtensionTangent = Standard_False;
|
||||||
|
|
||||||
if (myPolygon.Length() == 0) {
|
if (myPolygon.Length() == 0) {
|
||||||
@ -1633,12 +1625,8 @@ Standard_Real Bisector_BisecCC::SearchBound (const Standard_Real U1,
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
static Standard_Real ProjOnCurve (const gp_Pnt2d& P,
|
static Standard_Real ProjOnCurve (const gp_Pnt2d& P,
|
||||||
const Handle(Geom2d_Curve)& C)
|
const Handle(Geom2d_Curve)& C)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real UOnCurve =0.;
|
Standard_Real UOnCurve =0.;
|
||||||
#else
|
|
||||||
Standard_Real UOnCurve;
|
|
||||||
#endif
|
|
||||||
gp_Pnt2d PF,PL;
|
gp_Pnt2d PF,PL;
|
||||||
gp_Vec2d TF,TL;
|
gp_Vec2d TF,TL;
|
||||||
|
|
||||||
|
@ -240,9 +240,7 @@ GeomAbs_Shape Bisector_BisecPC::Continuity() const
|
|||||||
case GeomAbs_C2 : return GeomAbs_C1;
|
case GeomAbs_C2 : return GeomAbs_C1;
|
||||||
case GeomAbs_C3 : return GeomAbs_C2;
|
case GeomAbs_C3 : return GeomAbs_C2;
|
||||||
case GeomAbs_CN : return GeomAbs_CN;
|
case GeomAbs_CN : return GeomAbs_CN;
|
||||||
#ifndef DEB
|
|
||||||
default: break;
|
default: break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return GeomAbs_C0;
|
return GeomAbs_C0;
|
||||||
}
|
}
|
||||||
@ -286,9 +284,7 @@ GeomAbs_Shape Bisector_BisecPC::IntervalContinuity() const
|
|||||||
case GeomAbs_C2 : return GeomAbs_C1;
|
case GeomAbs_C2 : return GeomAbs_C1;
|
||||||
case GeomAbs_C3 : return GeomAbs_C2;
|
case GeomAbs_C3 : return GeomAbs_C2;
|
||||||
case GeomAbs_CN : return GeomAbs_CN;
|
case GeomAbs_CN : return GeomAbs_CN;
|
||||||
#ifndef DEB
|
|
||||||
default: break;
|
default: break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return GeomAbs_C0;
|
return GeomAbs_C0;
|
||||||
}
|
}
|
||||||
@ -605,11 +601,7 @@ Standard_Real Bisector_BisecPC::SearchBound (const Standard_Real U1,
|
|||||||
const Standard_Real U2) const
|
const Standard_Real U2) const
|
||||||
{
|
{
|
||||||
Standard_Real Dist1,Dist2,DistMid,U11,U22;
|
Standard_Real Dist1,Dist2,DistMid,U11,U22;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real UMid = 0.;
|
Standard_Real UMid = 0.;
|
||||||
#else
|
|
||||||
Standard_Real UMid;
|
|
||||||
#endif
|
|
||||||
Standard_Real Tol = Precision::PConfusion();
|
Standard_Real Tol = Precision::PConfusion();
|
||||||
Standard_Real DistMax2 = distMax*distMax;
|
Standard_Real DistMax2 = distMax*distMax;
|
||||||
U11 = U1; U22 = U2;
|
U11 = U1; U22 = U2;
|
||||||
@ -646,11 +638,7 @@ void Bisector_BisecPC::CuspFilter()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
void Bisector_BisecPC::ComputeIntervals ()
|
void Bisector_BisecPC::ComputeIntervals ()
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real U1 =0.,U2 =0.,UProj =0.;
|
Standard_Real U1 =0.,U2 =0.,UProj =0.;
|
||||||
#else
|
|
||||||
Standard_Real U1,U2,UProj;
|
|
||||||
#endif
|
|
||||||
Standard_Real UStart,UEnd;
|
Standard_Real UStart,UEnd;
|
||||||
Standard_Real Dist1,Dist2,DistProj;
|
Standard_Real Dist1,Dist2,DistProj;
|
||||||
isEmpty = Standard_False;
|
isEmpty = Standard_False;
|
||||||
@ -787,11 +775,7 @@ Standard_Real Bisector_BisecPC::Parameter(const gp_Pnt2d& P) const
|
|||||||
return U + endIntervals.Value(bisInterval);
|
return U + endIntervals.Value(bisInterval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real UOnCurve = 0.;
|
Standard_Real UOnCurve = 0.;
|
||||||
#else
|
|
||||||
Standard_Real UOnCurve;
|
|
||||||
#endif
|
|
||||||
Geom2dAPI_ProjectPointOnCurve Proj(P,curve,
|
Geom2dAPI_ProjectPointOnCurve Proj(P,curve,
|
||||||
curve->FirstParameter(),curve->LastParameter());
|
curve->FirstParameter(),curve->LastParameter());
|
||||||
if (Proj.NbPoints() > 0) {
|
if (Proj.NbPoints() > 0) {
|
||||||
|
@ -329,11 +329,7 @@ void Bisector_Inter::NeighbourPerform(const Handle(Bisector_BisecCC)& Bis1,
|
|||||||
const Standard_Real Tol)
|
const Standard_Real Tol)
|
||||||
{
|
{
|
||||||
Standard_Real USol,U1,U2,Dist;
|
Standard_Real USol,U1,U2,Dist;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real UMin =0.,UMax =0.;
|
Standard_Real UMin =0.,UMax =0.;
|
||||||
#else
|
|
||||||
Standard_Real UMin,UMax;
|
|
||||||
#endif
|
|
||||||
Standard_Real Eps = Precision::PConfusion();
|
Standard_Real Eps = Precision::PConfusion();
|
||||||
gp_Pnt2d PSol;
|
gp_Pnt2d PSol;
|
||||||
|
|
||||||
|
@ -914,10 +914,8 @@ void CDM_Document::Close()
|
|||||||
Standard_Failure::Raise("cannot close this document because a document "
|
Standard_Failure::Raise("cannot close this document because a document "
|
||||||
"referencing it refuses");
|
"referencing it refuses");
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if(FromReferencesNumber() != 0) {
|
if(FromReferencesNumber() != 0) {
|
||||||
CDM_ListIteratorOfListOfReferences it(myFromReferences);
|
CDM_ListIteratorOfListOfReferences it(myFromReferences);
|
||||||
|
@ -275,30 +275,28 @@ void ChFi3d_Builder::Compute()
|
|||||||
|
|
||||||
//construct fillets on each vertex + feed the Ds
|
//construct fillets on each vertex + feed the Ds
|
||||||
if (done) {
|
if (done) {
|
||||||
//Standard_Integer nbresult=0;
|
|
||||||
// for (Standard_Integer j=1;j<=myVDataMap.Extent();j++) {
|
|
||||||
#ifndef DEB
|
|
||||||
static
|
|
||||||
#endif //to avoid Linux warning:<< variable `j' might be clobbered by `longjmp' or `vfork' >>
|
|
||||||
Standard_Integer j;
|
Standard_Integer j;
|
||||||
for (j=1;j<=myVDataMap.Extent();j++) {
|
for (j=1;j<=myVDataMap.Extent();j++)
|
||||||
try {
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
OCC_CATCH_SIGNALS
|
OCC_CATCH_SIGNALS
|
||||||
PerformFilletOnVertex(j);
|
PerformFilletOnVertex(j);
|
||||||
}
|
}
|
||||||
catch(Standard_Failure) {
|
catch(Standard_Failure)
|
||||||
Handle(Standard_Failure) exc = Standard_Failure::Caught();
|
{
|
||||||
|
Handle(Standard_Failure) exc = Standard_Failure::Caught();
|
||||||
#ifdef DEB
|
#ifdef DEB
|
||||||
cout <<"EXCEPTION Corner compute " << exc << endl;
|
cout <<"EXCEPTION Corner compute " << exc << endl;
|
||||||
#endif
|
#endif
|
||||||
badvertices.Append(myVDataMap.FindKey(j));
|
badvertices.Append(myVDataMap.FindKey(j));
|
||||||
hasresult=Standard_False;
|
hasresult=Standard_False;
|
||||||
done = Standard_True;
|
done = Standard_True;
|
||||||
}
|
}
|
||||||
if (!done) badvertices.Append(myVDataMap.FindKey(j));
|
if (!done) badvertices.Append(myVDataMap.FindKey(j));
|
||||||
done = Standard_True;
|
done = Standard_True;
|
||||||
}
|
}
|
||||||
if (!hasresult) done = badvertices.IsEmpty();
|
if (!hasresult) done = badvertices.IsEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -575,11 +573,7 @@ void ChFi3d_Builder::PerformSingularCorner
|
|||||||
|
|
||||||
Handle(ChFiDS_SurfData) Fd;
|
Handle(ChFiDS_SurfData) Fd;
|
||||||
Standard_Integer i, Icurv;
|
Standard_Integer i, Icurv;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Ivtx = 0;
|
Standard_Integer Ivtx = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Ivtx;
|
|
||||||
#endif
|
|
||||||
for (It.Initialize(myVDataMap(Index)), i=0; It.More(); It.Next(),i++){
|
for (It.Initialize(myVDataMap(Index)), i=0; It.More(); It.Next(),i++){
|
||||||
stripe = It.Value();
|
stripe = It.Value();
|
||||||
// SurfData concerned and its CommonPoints,
|
// SurfData concerned and its CommonPoints,
|
||||||
@ -647,11 +641,7 @@ void ChFi3d_Builder::PerformFilletOnVertex
|
|||||||
Standard_Integer i;
|
Standard_Integer i;
|
||||||
Standard_Boolean nondegenere = Standard_True;
|
Standard_Boolean nondegenere = Standard_True;
|
||||||
Standard_Boolean toujoursdegenere = Standard_True;
|
Standard_Boolean toujoursdegenere = Standard_True;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean isfirst = Standard_False;
|
Standard_Boolean isfirst = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean isfirst;
|
|
||||||
#endif
|
|
||||||
for (It.Initialize(myVDataMap(Index)), i=0; It.More(); It.Next(),i++){
|
for (It.Initialize(myVDataMap(Index)), i=0; It.More(); It.Next(),i++){
|
||||||
stripe = It.Value();
|
stripe = It.Value();
|
||||||
sp = stripe->Spine();
|
sp = stripe->Spine();
|
||||||
|
@ -658,11 +658,7 @@ Standard_Boolean ChFi3d_Builder::PerformElement(const Handle(ChFiDS_Spine)& Spin
|
|||||||
|
|
||||||
Standard_Boolean Fini = Standard_False;
|
Standard_Boolean Fini = Standard_False;
|
||||||
Standard_Integer Nb;
|
Standard_Integer Nb;
|
||||||
#ifndef DEB
|
|
||||||
ChFiDS_State CurSt = ChFiDS_Closed;
|
ChFiDS_State CurSt = ChFiDS_Closed;
|
||||||
#else
|
|
||||||
ChFiDS_State CurSt;
|
|
||||||
#endif
|
|
||||||
if (VStart.IsSame(LVEc)) {//case if only one edge is closed
|
if (VStart.IsSame(LVEc)) {//case if only one edge is closed
|
||||||
CEc.Initialize(Ec);
|
CEc.Initialize(Ec);
|
||||||
Wl = BRep_Tool::Parameter(VStart,Ec);
|
Wl = BRep_Tool::Parameter(VStart,Ec);
|
||||||
|
@ -471,11 +471,7 @@ Standard_Boolean IsG1(const ChFiDS_Map& TheMap,
|
|||||||
// in which case FVoi = FRef is returned (less frequent case).
|
// in which case FVoi = FRef is returned (less frequent case).
|
||||||
TopExp_Explorer Ex;
|
TopExp_Explorer Ex;
|
||||||
Standard_Boolean orset = Standard_False;
|
Standard_Boolean orset = Standard_False;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation orient = TopAbs_FORWARD ;
|
TopAbs_Orientation orient = TopAbs_FORWARD ;
|
||||||
#else
|
|
||||||
TopAbs_Orientation orient;
|
|
||||||
#endif
|
|
||||||
TopoDS_Edge ed;
|
TopoDS_Edge ed;
|
||||||
for(Ex.Init(FRef,TopAbs_EDGE); Ex.More(); Ex.Next()){
|
for(Ex.Init(FRef,TopAbs_EDGE); Ex.More(); Ex.Next()){
|
||||||
ed = TopoDS::Edge(Ex.Current());
|
ed = TopoDS::Edge(Ex.Current());
|
||||||
@ -810,11 +806,7 @@ void ChFi3d_Builder::StartSol(const Handle(ChFiDS_Stripe)& Stripe,
|
|||||||
Standard_Real wl = 0.9973 * Spine->LastParameter(nbed) +
|
Standard_Real wl = 0.9973 * Spine->LastParameter(nbed) +
|
||||||
0.0027 * Spine->FirstParameter(nbed);
|
0.0027 * Spine->FirstParameter(nbed);
|
||||||
|
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real TolE = 1.0e-7;
|
Standard_Real TolE = 1.0e-7;
|
||||||
#else
|
|
||||||
Standard_Real TolE;
|
|
||||||
#endif
|
|
||||||
BRepAdaptor_Surface AS;
|
BRepAdaptor_Surface AS;
|
||||||
|
|
||||||
Standard_Integer nbessai;
|
Standard_Integer nbessai;
|
||||||
@ -825,11 +817,7 @@ void ChFi3d_Builder::StartSol(const Handle(ChFiDS_Stripe)& Stripe,
|
|||||||
TopoDS_Edge cured;
|
TopoDS_Edge cured;
|
||||||
TopoDS_Face f1,f2;
|
TopoDS_Face f1,f2;
|
||||||
TopAbs_Orientation Or1,Or2;
|
TopAbs_Orientation Or1,Or2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Choix = 0;
|
Standard_Integer Choix = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Choix;
|
|
||||||
#endif
|
|
||||||
math_Vector SolDep(1,4);
|
math_Vector SolDep(1,4);
|
||||||
Handle(Geom2d_Curve) PC;
|
Handle(Geom2d_Curve) PC;
|
||||||
Extrema_ExtPC PExt;
|
Extrema_ExtPC PExt;
|
||||||
@ -2006,11 +1994,7 @@ void ChFi3d_Builder::PerformSetOfSurfOnElSpine
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Standard_Real MaxStep = (bidl-bidf)*0.05/nbed;
|
Standard_Real MaxStep = (bidl-bidf)*0.05/nbed;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Firstsov = 0.;
|
Standard_Real Firstsov = 0.;
|
||||||
#else
|
|
||||||
Standard_Real Firstsov;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean intf = 0, intl = 0;
|
Standard_Boolean intf = 0, intl = 0;
|
||||||
while(!fini){
|
while(!fini){
|
||||||
// are these the ends (no extension on periodic).
|
// are these the ends (no extension on periodic).
|
||||||
@ -2931,11 +2915,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
|
|||||||
Standard_Real fp = cursd->FirstSpineParam();
|
Standard_Real fp = cursd->FirstSpineParam();
|
||||||
Standard_Real lp = cursd->LastSpineParam();
|
Standard_Real lp = cursd->LastSpineParam();
|
||||||
Standard_Integer j;
|
Standard_Integer j;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer jf = 0, jl = 0;
|
Standard_Integer jf = 0, jl = 0;
|
||||||
#else
|
|
||||||
Standard_Integer jf,jl;
|
|
||||||
#endif
|
|
||||||
if(lp < WF+tolesp || fp > WL-tolesp) continue;
|
if(lp < WF+tolesp || fp > WL-tolesp) continue;
|
||||||
for(j = IF; j < IL; j++){
|
for(j = IF; j < IL; j++){
|
||||||
jf = j;
|
jf = j;
|
||||||
|
@ -656,11 +656,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
|
|||||||
if(checkcurve.IsNull()) checkcurve = new GeomAdaptor_HCurve();
|
if(checkcurve.IsNull()) checkcurve = new GeomAdaptor_HCurve();
|
||||||
GeomAdaptor_Curve& chc = checkcurve->ChangeCurve();
|
GeomAdaptor_Curve& chc = checkcurve->ChangeCurve();
|
||||||
Standard_Real tolget3d, tolget2d, tolaux, tolC1, tolcheck;
|
Standard_Real tolget3d, tolget2d, tolaux, tolC1, tolcheck;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real tolC2 = 0.;
|
Standard_Real tolC2 = 0.;
|
||||||
#else
|
|
||||||
Standard_Real tolC2;
|
|
||||||
#endif
|
|
||||||
approx.TolReached(tolget3d, tolget2d);
|
approx.TolReached(tolget3d, tolget2d);
|
||||||
tolaux = approx.TolCurveOnSurf(1);
|
tolaux = approx.TolCurveOnSurf(1);
|
||||||
tolC1 = tolget3d + tolaux;
|
tolC1 = tolget3d + tolaux;
|
||||||
@ -959,11 +955,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
|
|||||||
Standard_Real MS = MaxStep;
|
Standard_Real MS = MaxStep;
|
||||||
Standard_Integer again = 0;
|
Standard_Integer again = 0;
|
||||||
Standard_Integer nbptmin = 3; //jlr
|
Standard_Integer nbptmin = 3; //jlr
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Nbpnt = 0;
|
Standard_Integer Nbpnt = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Nbpnt;
|
|
||||||
#endif
|
|
||||||
// the initial solution is reframed if necessary.
|
// the initial solution is reframed if necessary.
|
||||||
math_Vector ParSol(1,3);
|
math_Vector ParSol(1,3);
|
||||||
Standard_Real NewFirst = PFirst;
|
Standard_Real NewFirst = PFirst;
|
||||||
@ -1095,11 +1087,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
|
|||||||
Standard_Real MS = MaxStep;
|
Standard_Real MS = MaxStep;
|
||||||
Standard_Integer again = 0;
|
Standard_Integer again = 0;
|
||||||
Standard_Integer nbptmin = 3; //jlr
|
Standard_Integer nbptmin = 3; //jlr
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Nbpnt = 0;
|
Standard_Integer Nbpnt = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Nbpnt;
|
|
||||||
#endif
|
|
||||||
// the initial solution is reframed if necessary.
|
// the initial solution is reframed if necessary.
|
||||||
math_Vector ParSol(1,2);
|
math_Vector ParSol(1,2);
|
||||||
Standard_Real NewFirst = PFirst;
|
Standard_Real NewFirst = PFirst;
|
||||||
@ -1229,11 +1217,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
|
|||||||
|
|
||||||
Standard_Real MS = MaxStep;
|
Standard_Real MS = MaxStep;
|
||||||
Standard_Integer again = 0;
|
Standard_Integer again = 0;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Nbpnt = 0;
|
Standard_Integer Nbpnt = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Nbpnt;
|
|
||||||
#endif
|
|
||||||
// the starting solution is reframed if needed.
|
// the starting solution is reframed if needed.
|
||||||
math_Vector ParSol(1,3);
|
math_Vector ParSol(1,3);
|
||||||
Standard_Real NewFirst = PFirst;
|
Standard_Real NewFirst = PFirst;
|
||||||
@ -1359,11 +1343,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
|
|||||||
|
|
||||||
Standard_Real MS = MaxStep;
|
Standard_Real MS = MaxStep;
|
||||||
Standard_Integer again = 0;
|
Standard_Integer again = 0;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Nbpnt = 0;
|
Standard_Integer Nbpnt = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Nbpnt;
|
|
||||||
#endif
|
|
||||||
// The initial solution is reframed if necessary.
|
// The initial solution is reframed if necessary.
|
||||||
math_Vector ParSol(1,2);
|
math_Vector ParSol(1,2);
|
||||||
Standard_Real NewFirst = PFirst;
|
Standard_Real NewFirst = PFirst;
|
||||||
@ -1581,11 +1561,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
|
|||||||
//******************************************************************//
|
//******************************************************************//
|
||||||
Standard_Integer again = 0;
|
Standard_Integer again = 0;
|
||||||
Standard_Boolean tchernobyl = 0;
|
Standard_Boolean tchernobyl = 0;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real u1sov = 0., u2sov = 0.;
|
Standard_Real u1sov = 0., u2sov = 0.;
|
||||||
#else
|
|
||||||
Standard_Real u1sov, u2sov;
|
|
||||||
#endif
|
|
||||||
TopoDS_Face bif;
|
TopoDS_Face bif;
|
||||||
//Max step is relevant, but too great, the vector is required to detect
|
//Max step is relevant, but too great, the vector is required to detect
|
||||||
//the twists.
|
//the twists.
|
||||||
@ -2110,11 +2086,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
|
|||||||
}
|
}
|
||||||
|
|
||||||
Standard_Real Targetsov = Target;
|
Standard_Real Targetsov = Target;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real u1sov = 0., u2sov = 0.;
|
Standard_Real u1sov = 0., u2sov = 0.;
|
||||||
#else
|
|
||||||
Standard_Real u1sov, u2sov;
|
|
||||||
#endif
|
|
||||||
// on recadre la solution de depart a la demande.
|
// on recadre la solution de depart a la demande.
|
||||||
math_Vector ParSol(1,4);
|
math_Vector ParSol(1,4);
|
||||||
Standard_Real NewFirst = PFirst;
|
Standard_Real NewFirst = PFirst;
|
||||||
|
@ -235,11 +235,9 @@ static Standard_Boolean Update(Handle(Adaptor3d_HSurface)& fb,
|
|||||||
//are already in place at this stage.
|
//are already in place at this stage.
|
||||||
//Modif lvt : the periodic cases are reframed, espercially if nothing was found.
|
//Modif lvt : the periodic cases are reframed, espercially if nothing was found.
|
||||||
Standard_Real w,uf = ct->FirstParameter(),ul = ct->LastParameter();
|
Standard_Real w,uf = ct->FirstParameter(),ul = ct->LastParameter();
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real wbis = 0.;
|
Standard_Real wbis = 0.;
|
||||||
#else
|
|
||||||
Standard_Real wbis;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean isperiodic = ct->IsPeriodic(),recadrebis = Standard_False;
|
Standard_Boolean isperiodic = ct->IsPeriodic(),recadrebis = Standard_False;
|
||||||
Intersection.Perform(ct,fb);
|
Intersection.Perform(ct,fb);
|
||||||
if (Intersection.IsDone()) {
|
if (Intersection.IsDone()) {
|
||||||
@ -628,11 +626,7 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
TopoDS_Edge Arcpiv,Arcprol,Arcspine;
|
TopoDS_Edge Arcpiv,Arcprol,Arcspine;
|
||||||
if (isfirst) Arcspine = spine->Edges(1);
|
if (isfirst) Arcspine = spine->Edges(1);
|
||||||
else Arcspine = spine->Edges(spine->NbEdges());
|
else Arcspine = spine->Edges(spine->NbEdges());
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OArcprolv = TopAbs_FORWARD, OArcprolop = TopAbs_FORWARD;
|
TopAbs_Orientation OArcprolv = TopAbs_FORWARD, OArcprolop = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OArcprolv,OArcprolop;
|
|
||||||
#endif
|
|
||||||
Standard_Integer ICurve;
|
Standard_Integer ICurve;
|
||||||
Handle(BRepAdaptor_HSurface) HBs = new BRepAdaptor_HSurface();
|
Handle(BRepAdaptor_HSurface) HBs = new BRepAdaptor_HSurface();
|
||||||
Handle(BRepAdaptor_HSurface) HBad = new BRepAdaptor_HSurface();
|
Handle(BRepAdaptor_HSurface) HBad = new BRepAdaptor_HSurface();
|
||||||
@ -643,11 +637,7 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
Handle(Geom_Curve) Cc;
|
Handle(Geom_Curve) Cc;
|
||||||
Handle(Geom2d_Curve) Pc,Ps;
|
Handle(Geom2d_Curve) Pc,Ps;
|
||||||
Standard_Real Ubid,Vbid;//,mu,Mu,mv,Mv;
|
Standard_Real Ubid,Vbid;//,mu,Mu,mv,Mv;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Udeb = 0.,Ufin = 0.;
|
Standard_Real Udeb = 0.,Ufin = 0.;
|
||||||
#else
|
|
||||||
Standard_Real Udeb,Ufin;
|
|
||||||
#endif
|
|
||||||
// gp_Pnt2d UVf1,UVl1,UVf2,UVl2;
|
// gp_Pnt2d UVf1,UVl1,UVf2,UVl2;
|
||||||
// Standard_Real Du,Dv,Step;
|
// Standard_Real Du,Dv,Step;
|
||||||
Standard_Boolean inters = Standard_True;
|
Standard_Boolean inters = Standard_True;
|
||||||
@ -830,13 +820,8 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
TopoDS_Edge edgecouture;
|
TopoDS_Edge edgecouture;
|
||||||
Standard_Boolean couture,intcouture=Standard_False;;
|
Standard_Boolean couture,intcouture=Standard_False;;
|
||||||
Standard_Real tolreached;
|
Standard_Real tolreached;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real par1 =0.,par2 =0.;
|
Standard_Real par1 =0.,par2 =0.;
|
||||||
Standard_Integer indpt = 0,Icurv1 = 0,Icurv2 = 0;
|
Standard_Integer indpt = 0,Icurv1 = 0,Icurv2 = 0;
|
||||||
#else
|
|
||||||
Standard_Real par1,par2;
|
|
||||||
Standard_Integer indpt,Icurv1,Icurv2;
|
|
||||||
#endif
|
|
||||||
Handle(Geom_TrimmedCurve) curv1,curv2;
|
Handle(Geom_TrimmedCurve) curv1,curv2;
|
||||||
Handle(Geom2d_Curve) c2d1,c2d2;
|
Handle(Geom2d_Curve) c2d1,c2d2;
|
||||||
|
|
||||||
@ -940,11 +925,7 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
Standard_NotImplemented::Raise("OneCorner : bouchon non ecrit");
|
Standard_NotImplemented::Raise("OneCorner : bouchon non ecrit");
|
||||||
}
|
}
|
||||||
Standard_Integer IShape = DStr.AddShape(Fv);
|
Standard_Integer IShape = DStr.AddShape(Fv);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation Et = TopAbs_FORWARD;
|
TopAbs_Orientation Et = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation Et;
|
|
||||||
#endif
|
|
||||||
if (IFadArc == 1) {
|
if (IFadArc == 1) {
|
||||||
TopExp_Explorer Exp;
|
TopExp_Explorer Exp;
|
||||||
for (Exp.Init(Fv.Oriented(TopAbs_FORWARD),
|
for (Exp.Init(Fv.Oriented(TopAbs_FORWARD),
|
||||||
@ -1245,11 +1226,7 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
// First of all the ponts are cut with the edge of the spine.
|
// First of all the ponts are cut with the edge of the spine.
|
||||||
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
||||||
Standard_Integer IVtx = DStr.AddShape(Vtx);
|
Standard_Integer IVtx = DStr.AddShape(Vtx);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OVtx;
|
|
||||||
#endif
|
|
||||||
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
||||||
ex.More(); ex.Next()) {
|
ex.More(); ex.Next()) {
|
||||||
if (Vtx.IsSame(ex.Current())) {
|
if (Vtx.IsSame(ex.Current())) {
|
||||||
@ -1754,11 +1731,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
|||||||
// gp_Pnt2d p2d;
|
// gp_Pnt2d p2d;
|
||||||
Standard_Real dist;
|
Standard_Real dist;
|
||||||
Standard_Integer Ishape1=Fd->IndexOfS1();
|
Standard_Integer Ishape1=Fd->IndexOfS1();
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation trafil1 = TopAbs_FORWARD;
|
TopAbs_Orientation trafil1 = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation trafil1;
|
|
||||||
#endif
|
|
||||||
if (Ishape1 != 0) {
|
if (Ishape1 != 0) {
|
||||||
if (Ishape1 > 0) {
|
if (Ishape1 > 0) {
|
||||||
trafil1 = DStr.Shape(Ishape1).Orientation();
|
trafil1 = DStr.Shape(Ishape1).Orientation();
|
||||||
@ -2588,11 +2561,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
|
|||||||
// storage for the face
|
// storage for the face
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation ori = TopAbs_FORWARD;
|
TopAbs_Orientation ori = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation ori;
|
|
||||||
#endif
|
|
||||||
orface=Face[nb-1].Orientation();
|
orface=Face[nb-1].Orientation();
|
||||||
if (orface==orsurfdata ) orien = TopAbs::Reverse(orcourbe);
|
if (orface==orsurfdata ) orien = TopAbs::Reverse(orcourbe);
|
||||||
else orien = orcourbe ;
|
else orien = orcourbe ;
|
||||||
@ -3827,11 +3796,7 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
|||||||
if(isfirst) Arcspine = spine->Edges(1);
|
if(isfirst) Arcspine = spine->Edges(1);
|
||||||
else Arcspine = spine->Edges(spine->NbEdges());
|
else Arcspine = spine->Edges(spine->NbEdges());
|
||||||
TopAbs_Orientation OArcprolbis;
|
TopAbs_Orientation OArcprolbis;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OArcprolv = TopAbs_FORWARD, OArcprolop = TopAbs_FORWARD;
|
TopAbs_Orientation OArcprolv = TopAbs_FORWARD, OArcprolop = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OArcprolv, OArcprolop;
|
|
||||||
#endif
|
|
||||||
Standard_Integer ICurve;
|
Standard_Integer ICurve;
|
||||||
Handle(BRepAdaptor_HSurface) HBs = new BRepAdaptor_HSurface();
|
Handle(BRepAdaptor_HSurface) HBs = new BRepAdaptor_HSurface();
|
||||||
Handle(BRepAdaptor_HSurface) HBad = new BRepAdaptor_HSurface();
|
Handle(BRepAdaptor_HSurface) HBad = new BRepAdaptor_HSurface();
|
||||||
@ -3842,11 +3807,7 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
|||||||
Handle(Geom_Curve) Cc;
|
Handle(Geom_Curve) Cc;
|
||||||
Handle(Geom2d_Curve) Pc,Ps;
|
Handle(Geom2d_Curve) Pc,Ps;
|
||||||
Standard_Real Ubid,Vbid;//,mu,Mu,mv,Mv;
|
Standard_Real Ubid,Vbid;//,mu,Mu,mv,Mv;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Udeb = 0.,Ufin = 0.;
|
Standard_Real Udeb = 0.,Ufin = 0.;
|
||||||
#else
|
|
||||||
Standard_Real Udeb,Ufin;
|
|
||||||
#endif
|
|
||||||
//gp_Pnt2d UVf1,UVl1,UVf2,UVl2;
|
//gp_Pnt2d UVf1,UVl1,UVf2,UVl2;
|
||||||
//Standard_Real Du,Dv,Step;
|
//Standard_Real Du,Dv,Step;
|
||||||
Standard_Boolean inters = Standard_True;
|
Standard_Boolean inters = Standard_True;
|
||||||
@ -4023,13 +3984,8 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
|||||||
TopoDS_Edge edgecouture;
|
TopoDS_Edge edgecouture;
|
||||||
Standard_Boolean couture,intcouture=Standard_False;;
|
Standard_Boolean couture,intcouture=Standard_False;;
|
||||||
Standard_Real tolreached;
|
Standard_Real tolreached;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real par1 = 0.,par2 = 0.;
|
Standard_Real par1 = 0.,par2 = 0.;
|
||||||
Standard_Integer indpt =0,Icurv1 =0,Icurv2 =0;
|
Standard_Integer indpt =0,Icurv1 =0,Icurv2 =0;
|
||||||
#else
|
|
||||||
Standard_Real par1,par2;
|
|
||||||
Standard_Integer indpt,Icurv1,Icurv2;
|
|
||||||
#endif
|
|
||||||
Handle(Geom_TrimmedCurve) curv1,curv2;
|
Handle(Geom_TrimmedCurve) curv1,curv2;
|
||||||
Handle(Geom2d_Curve) c2d1,c2d2;
|
Handle(Geom2d_Curve) c2d1,c2d2;
|
||||||
|
|
||||||
@ -4132,11 +4088,7 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
|||||||
Standard_NotImplemented::Raise("OneCorner : cap not written");
|
Standard_NotImplemented::Raise("OneCorner : cap not written");
|
||||||
}
|
}
|
||||||
Standard_Integer IShape = DStr.AddShape(Fv);
|
Standard_Integer IShape = DStr.AddShape(Fv);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation Et = TopAbs_FORWARD;
|
TopAbs_Orientation Et = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation Et;
|
|
||||||
#endif
|
|
||||||
if(IFadArc == 1){
|
if(IFadArc == 1){
|
||||||
TopExp_Explorer Exp;
|
TopExp_Explorer Exp;
|
||||||
for (Exp.Init(Fv.Oriented(TopAbs_FORWARD),
|
for (Exp.Init(Fv.Oriented(TopAbs_FORWARD),
|
||||||
@ -4252,11 +4204,7 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
|||||||
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
||||||
Standard_Integer IVtx = DStr.AddShape(Vtx);
|
Standard_Integer IVtx = DStr.AddShape(Vtx);
|
||||||
TopAbs_Orientation OVtx2;
|
TopAbs_Orientation OVtx2;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OVtx;
|
|
||||||
#endif
|
|
||||||
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
||||||
ex.More(); ex.Next()){
|
ex.More(); ex.Next()){
|
||||||
if(Vtx.IsSame(ex.Current())) {
|
if(Vtx.IsSame(ex.Current())) {
|
||||||
|
@ -402,11 +402,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
|
|||||||
// on the opposing face with the surface of the big,
|
// on the opposing face with the surface of the big,
|
||||||
// and finally intersect the big with the face at end
|
// and finally intersect the big with the face at end
|
||||||
// between this point and the point on arc.
|
// between this point and the point on arc.
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean parcrois = Standard_False ;
|
Standard_Boolean parcrois = Standard_False ;
|
||||||
#else
|
|
||||||
Standard_Boolean parcrois;
|
|
||||||
#endif
|
|
||||||
TopExp_Explorer Expl;
|
TopExp_Explorer Expl;
|
||||||
for(Expl.Init(pivot.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
for(Expl.Init(pivot.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
||||||
Expl.More(); Expl.Next()){
|
Expl.More(); Expl.Next()){
|
||||||
|
@ -483,11 +483,7 @@ static void CalculBatten (const Handle (GeomAdaptor_HSurface) ASurf,
|
|||||||
Handle (Geom2d_Curve)& pcurve)
|
Handle (Geom2d_Curve)& pcurve)
|
||||||
{
|
{
|
||||||
Standard_Boolean isplane;
|
Standard_Boolean isplane;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean anglebig = Standard_False;
|
Standard_Boolean anglebig = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean anglebig;
|
|
||||||
#endif
|
|
||||||
isplane=ASurf->GetType()==GeomAbs_Plane;
|
isplane=ASurf->GetType()==GeomAbs_Plane;
|
||||||
gp_Dir2d dir1 (xdir, ydir);
|
gp_Dir2d dir1 (xdir, ydir);
|
||||||
Geom2dLProp_CLProps2d CL1(curv2d1, picicplus, 1, 1.e-4);
|
Geom2dLProp_CLProps2d CL1(curv2d1, picicplus, 1, 1.e-4);
|
||||||
@ -609,11 +605,7 @@ static void OrientationAreteViveConsecutive (const TopoDS_Shape & Fviveicicplus,
|
|||||||
TopAbs_Orientation & orien)
|
TopAbs_Orientation & orien)
|
||||||
|
|
||||||
{ // orinterf is orientation of edge ic corresponding to face Fviveicicplus taken FORWARD
|
{ // orinterf is orientation of edge ic corresponding to face Fviveicicplus taken FORWARD
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation orinterf = TopAbs_FORWARD;
|
TopAbs_Orientation orinterf = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation orinterf;
|
|
||||||
#endif
|
|
||||||
TopoDS_Face F=TopoDS::Face( Fviveicicplus);
|
TopoDS_Face F=TopoDS::Face( Fviveicicplus);
|
||||||
TopoDS_Edge E=TopoDS::Edge( Eviveic);
|
TopoDS_Edge E=TopoDS::Edge( Eviveic);
|
||||||
TopExp_Explorer ex;
|
TopExp_Explorer ex;
|
||||||
@ -1832,11 +1824,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
|||||||
// between edges (or stripes ) icmoins and indfin.
|
// between edges (or stripes ) icmoins and indfin.
|
||||||
// Then this courbe3d is projected on all faces (nbface) that
|
// Then this courbe3d is projected on all faces (nbface) that
|
||||||
// separate icmoins and indfin
|
// separate icmoins and indfin
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer nbface = 0;
|
Standard_Integer nbface = 0;
|
||||||
#else
|
|
||||||
Standard_Integer nbface;
|
|
||||||
#endif
|
|
||||||
Standard_Real error;
|
Standard_Real error;
|
||||||
TColGeom2d_Array1OfCurve proj2d1(0,size);
|
TColGeom2d_Array1OfCurve proj2d1(0,size);
|
||||||
TColGeom2d_Array1OfCurve proj2d2(0,size);
|
TColGeom2d_Array1OfCurve proj2d2(0,size);
|
||||||
@ -1997,11 +1985,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
|||||||
Standard_Boolean intersection=Standard_False, introuve;
|
Standard_Boolean intersection=Standard_False, introuve;
|
||||||
if (nconges==2 && !deuxconges) {
|
if (nconges==2 && !deuxconges) {
|
||||||
gp_Pnt P1,P2,P3,P4;
|
gp_Pnt P1,P2,P3,P4;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer ic1 = 0,ic2 = 0;
|
Standard_Integer ic1 = 0,ic2 = 0;
|
||||||
#else
|
|
||||||
Standard_Integer ic1,ic2;
|
|
||||||
#endif
|
|
||||||
trouve=Standard_False;
|
trouve=Standard_False;
|
||||||
for (ic=0;ic<nedge&&!trouve;ic++) {
|
for (ic=0;ic<nedge&&!trouve;ic++) {
|
||||||
if (!sharp.Value(ic)){
|
if (!sharp.Value(ic)){
|
||||||
@ -2685,11 +2669,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
|||||||
else
|
else
|
||||||
Arcspine= CD.Value(ic)->Spine()->Edges(nbedge);
|
Arcspine= CD.Value(ic)->Spine()->Edges(nbedge);
|
||||||
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
Standard_Integer IArcspine = DStr.AddShape(Arcspine);
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
TopAbs_Orientation OVtx = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation OVtx;
|
|
||||||
#endif
|
|
||||||
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
for(ex.Init(Arcspine.Oriented(TopAbs_FORWARD),TopAbs_VERTEX);
|
||||||
ex.More(); ex.Next()){
|
ex.More(); ex.Next()){
|
||||||
if(V1.IsSame(ex.Current())) {
|
if(V1.IsSame(ex.Current())) {
|
||||||
@ -2742,11 +2722,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
|||||||
// the curves from ic to icplus the pcurves of Plate
|
// the curves from ic to icplus the pcurves of Plate
|
||||||
// all have the same orientation
|
// all have the same orientation
|
||||||
Standard_Integer Ishape1,Ishape2;
|
Standard_Integer Ishape1,Ishape2;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation trafil1 = TopAbs_FORWARD, trafil2 = TopAbs_FORWARD;
|
TopAbs_Orientation trafil1 = TopAbs_FORWARD, trafil2 = TopAbs_FORWARD;
|
||||||
#else
|
|
||||||
TopAbs_Orientation trafil1,trafil2;
|
|
||||||
#endif
|
|
||||||
Ishape1 = Fd->IndexOfS1();
|
Ishape1 = Fd->IndexOfS1();
|
||||||
Ishape2 = Fd->IndexOfS2();
|
Ishape2 = Fd->IndexOfS2();
|
||||||
const ChFiDS_FaceInterference& Fi1 = Fd->InterferenceOnS1();
|
const ChFiDS_FaceInterference& Fi1 = Fd->InterferenceOnS1();
|
||||||
|
@ -660,11 +660,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
|
|||||||
Standard_Real pitol = Precision::PIntersection();
|
Standard_Real pitol = Precision::PIntersection();
|
||||||
|
|
||||||
ChFiKPart_RstMap M1, M2;
|
ChFiKPart_RstMap M1, M2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer iH1 = 0,iH2 = 0;
|
Standard_Integer iH1 = 0,iH2 = 0;
|
||||||
#else
|
|
||||||
Standard_Integer iH1,iH2;
|
|
||||||
#endif
|
|
||||||
Standard_Integer Nb1 = 1,Nb2 = 1;
|
Standard_Integer Nb1 = 1,Nb2 = 1;
|
||||||
|
|
||||||
// Cutting of tangency lines (hatching).
|
// Cutting of tangency lines (hatching).
|
||||||
|
@ -761,11 +761,7 @@ void ChFi3d_ChBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD ) const
|
|||||||
Standard_Real ang = (u2-u1);
|
Standard_Real ang = (u2-u1);
|
||||||
gp_Cone Co = AS.Cone();
|
gp_Cone Co = AS.Cone();
|
||||||
Standard_Real rad = Co.RefRadius(), sang = Co.SemiAngle();
|
Standard_Real rad = Co.RefRadius(), sang = Co.SemiAngle();
|
||||||
//#ifndef DEB
|
|
||||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||||
//#else
|
|
||||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
|
||||||
//#endif
|
|
||||||
if(n<2) n = 2;
|
if(n<2) n = 2;
|
||||||
sec = new ChFiDS_SecHArray1(1, n);
|
sec = new ChFiDS_SecHArray1(1, n);
|
||||||
for (Standard_Integer i = 1; i <= n; i++) {
|
for (Standard_Integer i = 1; i <= n; i++) {
|
||||||
@ -1904,11 +1900,7 @@ void ChFi3d_ChBuilder::ExtentOneCorner(const TopoDS_Vertex& V,
|
|||||||
void ChFi3d_ChBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
|
void ChFi3d_ChBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
|
||||||
const ChFiDS_ListOfStripe& LS)
|
const ChFiDS_ListOfStripe& LS)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Sens = 0;
|
Standard_Integer Sens = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Sens;
|
|
||||||
#endif
|
|
||||||
ChFiDS_ListIteratorOfListOfStripe itel(LS);
|
ChFiDS_ListIteratorOfListOfStripe itel(LS);
|
||||||
Standard_Boolean FF = Standard_True;
|
Standard_Boolean FF = Standard_True;
|
||||||
Standard_Boolean isfirst[2];
|
Standard_Boolean isfirst[2];
|
||||||
@ -2030,11 +2022,7 @@ void ChFi3d_ChBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
|
|||||||
void ChFi3d_ChBuilder::ExtentThreeCorner(const TopoDS_Vertex& V,
|
void ChFi3d_ChBuilder::ExtentThreeCorner(const TopoDS_Vertex& V,
|
||||||
const ChFiDS_ListOfStripe& LS)
|
const ChFiDS_ListOfStripe& LS)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Sens = 0;
|
Standard_Integer Sens = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Sens;
|
|
||||||
#endif
|
|
||||||
ChFiDS_ListOfStripe check;
|
ChFiDS_ListOfStripe check;
|
||||||
Standard_Boolean isfirst[3];
|
Standard_Boolean isfirst[3];
|
||||||
Standard_Integer Iedge[3];
|
Standard_Integer Iedge[3];
|
||||||
@ -2239,11 +2227,7 @@ void ChFi3d_ChBuilder::ConexFaces (const Handle(ChFiDS_Spine)& Spine,
|
|||||||
Standard_Integer ChFi3d_ChBuilder::FindChoiceDistAngle(const Standard_Integer Choice,
|
Standard_Integer ChFi3d_ChBuilder::FindChoiceDistAngle(const Standard_Integer Choice,
|
||||||
const Standard_Boolean DisOnF1) const
|
const Standard_Boolean DisOnF1) const
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer ch = 0;
|
Standard_Integer ch = 0;
|
||||||
#else
|
|
||||||
Standard_Integer ch;
|
|
||||||
#endif
|
|
||||||
if (!DisOnF1) {
|
if (!DisOnF1) {
|
||||||
|
|
||||||
switch (Choice) {
|
switch (Choice) {
|
||||||
|
@ -171,11 +171,7 @@ void ChFi3d_FilBuilder::SetFilletShape(const ChFi3d_FilletShape FShape)
|
|||||||
|
|
||||||
ChFi3d_FilletShape ChFi3d_FilBuilder::GetFilletShape() const
|
ChFi3d_FilletShape ChFi3d_FilBuilder::GetFilletShape() const
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
ChFi3d_FilletShape filshape = ChFi3d_Rational; // need to set default value
|
ChFi3d_FilletShape filshape = ChFi3d_Rational; // need to set default value
|
||||||
#else
|
|
||||||
ChFi3d_FilletShape filshape;
|
|
||||||
#endif
|
|
||||||
switch (myShape) {
|
switch (myShape) {
|
||||||
case BlendFunc_Rational:
|
case BlendFunc_Rational:
|
||||||
filshape= ChFi3d_Rational;
|
filshape= ChFi3d_Rational;
|
||||||
@ -557,11 +553,7 @@ void ChFi3d_FilBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD) const
|
|||||||
Standard_Real ang = (u2-u1);
|
Standard_Real ang = (u2-u1);
|
||||||
gp_Torus To = AS.Torus();
|
gp_Torus To = AS.Torus();
|
||||||
Standard_Real majr = To.MajorRadius(), minr = To.MinorRadius();
|
Standard_Real majr = To.MajorRadius(), minr = To.MinorRadius();
|
||||||
//#ifndef DEB
|
|
||||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||||
//#else
|
|
||||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
|
||||||
//#endif
|
|
||||||
if(n<2) n = 2;
|
if(n<2) n = 2;
|
||||||
sec = new ChFiDS_SecHArray1(1, n);
|
sec = new ChFiDS_SecHArray1(1, n);
|
||||||
for (Standard_Integer i = 1; i <= n; i++) {
|
for (Standard_Integer i = 1; i <= n; i++) {
|
||||||
@ -580,11 +572,7 @@ void ChFi3d_FilBuilder::SimulKPart(const Handle(ChFiDS_SurfData)& SD) const
|
|||||||
Standard_Real ang = (u2-u1);
|
Standard_Real ang = (u2-u1);
|
||||||
gp_Sphere Sp = AS.Sphere();
|
gp_Sphere Sp = AS.Sphere();
|
||||||
Standard_Real rad = Sp.Radius();
|
Standard_Real rad = Sp.Radius();
|
||||||
//#ifndef DEB
|
|
||||||
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
Standard_Integer n = (Standard_Integer) (36.*ang/M_PI + 1);
|
||||||
//#else
|
|
||||||
// Standard_Integer n = 36.*ang/M_PI + 1;
|
|
||||||
//#endif
|
|
||||||
if(n<2) n = 2;
|
if(n<2) n = 2;
|
||||||
sec = new ChFiDS_SecHArray1(1, n);
|
sec = new ChFiDS_SecHArray1(1, n);
|
||||||
for (Standard_Integer i = 1; i <= n; i++) {
|
for (Standard_Integer i = 1; i <= n; i++) {
|
||||||
@ -1863,11 +1851,7 @@ void ChFi3d_FilBuilder::ExtentOneCorner(const TopoDS_Vertex& V,
|
|||||||
{
|
{
|
||||||
// review by using the data at end of fillets (point, radius, normal
|
// review by using the data at end of fillets (point, radius, normal
|
||||||
// to the faces and tangents of the guideline).
|
// to the faces and tangents of the guideline).
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Sens = 0;
|
Standard_Integer Sens = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Sens;
|
|
||||||
#endif
|
|
||||||
Standard_Real Coeff = 0.5;
|
Standard_Real Coeff = 0.5;
|
||||||
Handle(ChFiDS_Spine) Spine = S->Spine();
|
Handle(ChFiDS_Spine) Spine = S->Spine();
|
||||||
ChFi3d_IndexOfSurfData(V,S,Sens);
|
ChFi3d_IndexOfSurfData(V,S,Sens);
|
||||||
@ -1961,11 +1945,7 @@ void ChFi3d_FilBuilder::ExtentThreeCorner(const TopoDS_Vertex& V,
|
|||||||
{
|
{
|
||||||
// Review by using the data at end of fillets (point, radius, normal
|
// Review by using the data at end of fillets (point, radius, normal
|
||||||
// to faces and tangents to the guideline.
|
// to faces and tangents to the guideline.
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer Sens = 0;
|
Standard_Integer Sens = 0;
|
||||||
#else
|
|
||||||
Standard_Integer Sens;
|
|
||||||
#endif
|
|
||||||
Standard_Real Coeff = 0.1;
|
Standard_Real Coeff = 0.1;
|
||||||
ChFiDS_ListOfStripe check;
|
ChFiDS_ListOfStripe check;
|
||||||
// Standard_Boolean FF = Standard_True;
|
// Standard_Boolean FF = Standard_True;
|
||||||
|
@ -346,13 +346,8 @@ void ChFi3d_FilBuilder::PerformTwoCorner(const Standard_Integer Index)
|
|||||||
yapiv = (pivot.IsSame(CP2.Arc()));
|
yapiv = (pivot.IsSame(CP2.Arc()));
|
||||||
}
|
}
|
||||||
Handle(BRepAdaptor_HCurve) Hpivot;
|
Handle(BRepAdaptor_HCurve) Hpivot;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean sameparam = Standard_False;
|
Standard_Boolean sameparam = Standard_False;
|
||||||
Standard_Real parCP1 = 0., parCP2 = 0.;
|
Standard_Real parCP1 = 0., parCP2 = 0.;
|
||||||
#else
|
|
||||||
Standard_Boolean sameparam;
|
|
||||||
Standard_Real parCP1, parCP2;
|
|
||||||
#endif
|
|
||||||
if(yapiv) {
|
if(yapiv) {
|
||||||
Hpivot = new BRepAdaptor_HCurve(pivot);
|
Hpivot = new BRepAdaptor_HCurve(pivot);
|
||||||
parCP1 = CP1.ParameterOnArc();
|
parCP1 = CP1.ParameterOnArc();
|
||||||
@ -372,11 +367,7 @@ void ChFi3d_FilBuilder::PerformTwoCorner(const Standard_Integer Index)
|
|||||||
BRFaCo.Initialize(FaCo);
|
BRFaCo.Initialize(FaCo);
|
||||||
|
|
||||||
TopoDS_Face FF1,FF2,F,FaPiv;
|
TopoDS_Face FF1,FF2,F,FaPiv;
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_Orientation pctrans = TopAbs_FORWARD ;
|
TopAbs_Orientation pctrans = TopAbs_FORWARD ;
|
||||||
#else
|
|
||||||
TopAbs_Orientation pctrans;
|
|
||||||
#endif
|
|
||||||
Handle(Geom2d_BSplineCurve) PCurveOnPiv;
|
Handle(Geom2d_BSplineCurve) PCurveOnPiv;
|
||||||
FF1 = TopoDS::Face(DStr.Shape(sd1->Index(IFaArc1)));
|
FF1 = TopoDS::Face(DStr.Shape(sd1->Index(IFaArc1)));
|
||||||
FF2 = TopoDS::Face(DStr.Shape(sd2->Index(IFaArc2)));
|
FF2 = TopoDS::Face(DStr.Shape(sd2->Index(IFaArc2)));
|
||||||
@ -728,15 +719,9 @@ void ChFi3d_FilBuilder::PerformTwoCorner(const Standard_Integer Index)
|
|||||||
}
|
}
|
||||||
Handle(ChFiDS_Stripe) stsam, stdif;
|
Handle(ChFiDS_Stripe) stsam, stdif;
|
||||||
Handle(ChFiDS_SurfData) sdsam, sddif;
|
Handle(ChFiDS_SurfData) sdsam, sddif;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real uintpcsam = 0., uintpcdif = 0.;
|
Standard_Real uintpcsam = 0., uintpcdif = 0.;
|
||||||
Standard_Integer ifacosam = 0, ifacodif = 0, ifaopsam = 0, ifaopdif = 0;
|
Standard_Integer ifacosam = 0, ifacodif = 0, ifaopsam = 0, ifaopdif = 0;
|
||||||
Standard_Boolean isfirstsam = Standard_False, isfirstdif = Standard_False;
|
Standard_Boolean isfirstsam = Standard_False, isfirstdif = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Real uintpcsam, uintpcdif;
|
|
||||||
Standard_Integer ifacosam, ifacodif, ifaopsam, ifaopdif;
|
|
||||||
Standard_Boolean isfirstsam, isfirstdif;
|
|
||||||
#endif
|
|
||||||
if(Stat1 == ChFiDS_OnSame && Stat2 == ChFiDS_OnDiff){
|
if(Stat1 == ChFiDS_OnSame && Stat2 == ChFiDS_OnDiff){
|
||||||
stsam = st1; sdsam = sd1; uintpcsam = UIntPC1;
|
stsam = st1; sdsam = sd1; uintpcsam = UIntPC1;
|
||||||
ifacosam = IFaCo1; ifaopsam = IFaArc1; isfirstsam = isfirst1;
|
ifacosam = IFaCo1; ifaopsam = IFaArc1; isfirstsam = isfirst1;
|
||||||
|
@ -503,11 +503,7 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
|
|||||||
|
|
||||||
Handle(Law_Composite) loi = new Law_Composite();
|
Handle(Law_Composite) loi = new Law_Composite();
|
||||||
Law_Laws& list = loi->ChangeLaws();
|
Law_Laws& list = loi->ChangeLaws();
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real Rdeb = 0., Rfin = 0., Rcur;
|
Standard_Real Rdeb = 0., Rfin = 0., Rcur;
|
||||||
#else
|
|
||||||
Standard_Real Rdeb, Rfin, Rcur;
|
|
||||||
#endif
|
|
||||||
Standard_Integer icur = 1;
|
Standard_Integer icur = 1;
|
||||||
Handle(Law_S) sl;
|
Handle(Law_S) sl;
|
||||||
Handle(Law_Constant) lastloi;
|
Handle(Law_Constant) lastloi;
|
||||||
|
@ -107,10 +107,8 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
|||||||
return UFirst - fp;
|
return UFirst - fp;
|
||||||
case GeomAbs_Circle:
|
case GeomAbs_Circle:
|
||||||
return C.Circle().Radius()*(UFirst-fp);
|
return C.Circle().Radius()*(UFirst-fp);
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
Standard_NotImplemented::Raise("calcul abscisse not processed");
|
Standard_NotImplemented::Raise("calcul abscisse not processed");
|
||||||
return 0.;
|
return 0.;
|
||||||
@ -135,11 +133,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
|||||||
|
|
||||||
Handle(ChFiDS_FilSpine) Spine = Handle(ChFiDS_FilSpine)::DownCast(Sp);
|
Handle(ChFiDS_FilSpine) Spine = Handle(ChFiDS_FilSpine)::DownCast(Sp);
|
||||||
Handle(ChFiDS_ChamfSpine) CSpine = Handle(ChFiDS_ChamfSpine)::DownCast(Sp);
|
Handle(ChFiDS_ChamfSpine) CSpine = Handle(ChFiDS_ChamfSpine)::DownCast(Sp);
|
||||||
#ifndef DEB
|
|
||||||
Standard_Boolean surfok = Standard_False;
|
Standard_Boolean surfok = Standard_False;
|
||||||
#else
|
|
||||||
Standard_Boolean surfok;
|
|
||||||
#endif
|
|
||||||
GeomAbs_SurfaceType typ1 = S1->GetType();
|
GeomAbs_SurfaceType typ1 = S1->GetType();
|
||||||
GeomAbs_SurfaceType typ2 = S2->GetType();
|
GeomAbs_SurfaceType typ2 = S2->GetType();
|
||||||
GeomAbs_CurveType ctyp;
|
GeomAbs_CurveType ctyp;
|
||||||
|
@ -392,11 +392,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
|||||||
gp_Vec DirSOrC = VecTranslCyl.Normalized();
|
gp_Vec DirSOrC = VecTranslCyl.Normalized();
|
||||||
Standard_Real cosA1 = DirSOrC.Dot(VecTranslPln.Normalized());
|
Standard_Real cosA1 = DirSOrC.Dot(VecTranslPln.Normalized());
|
||||||
Standard_Real sinA1 = Sqrt(1. - cosA1 * cosA1);
|
Standard_Real sinA1 = Sqrt(1. - cosA1 * cosA1);
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real dis1 = 0.;
|
Standard_Real dis1 = 0.;
|
||||||
#else
|
|
||||||
Standard_Real dis1;
|
|
||||||
#endif
|
|
||||||
Standard_Real dis2, ray = Cyl.Radius();
|
Standard_Real dis2, ray = Cyl.Radius();
|
||||||
Standard_Boolean IsDisOnP = ( (plandab && DisOnP) || (!plandab && !DisOnP) );
|
Standard_Boolean IsDisOnP = ( (plandab && DisOnP) || (!plandab && !DisOnP) );
|
||||||
|
|
||||||
|
@ -323,11 +323,7 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
|
|||||||
// command
|
// command
|
||||||
di << "COMMAND : ";
|
di << "COMMAND : ";
|
||||||
if (D->HasOpenCommand()) di << " Is Open";
|
if (D->HasOpenCommand()) di << " Is Open";
|
||||||
#ifndef DEB
|
|
||||||
else di << " Is Not Open";
|
else di << " Is Not Open";
|
||||||
#else
|
|
||||||
else " Is Not Open"; // ???
|
|
||||||
#endif
|
|
||||||
// undo
|
// undo
|
||||||
di << "UNDO :";
|
di << "UNDO :";
|
||||||
di << " limit :" << D->GetUndoLimit();
|
di << " limit :" << D->GetUndoLimit();
|
||||||
|
@ -106,10 +106,8 @@ void Draw_Display::DrawMarker (const gp_Pnt2d& pt,
|
|||||||
C.SetLocation(pt);
|
C.SetLocation(pt);
|
||||||
Draw(C, 0, 2*M_PI, Standard_False);
|
Draw(C, 0, 2*M_PI, Standard_False);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Draw_Bounds = Standard_True;
|
Draw_Bounds = Standard_True;
|
||||||
|
@ -85,10 +85,8 @@ void DrawDim::DrawShapeName (const TopoDS_Shape& ashape,
|
|||||||
position = BRep_Tool::Pnt(TopoDS::Vertex(ashape));
|
position = BRep_Tool::Pnt(TopoDS::Vertex(ashape));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
t+=aname; //Name();
|
t+=aname; //Name();
|
||||||
Handle(Draw_Text3D) text = new Draw_Text3D (position,t.ToCString(),Draw_blanc);
|
Handle(Draw_Text3D) text = new Draw_Text3D (position,t.ToCString(),Draw_blanc);
|
||||||
|
@ -980,10 +980,8 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
|
|||||||
length);
|
length);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,10 +476,8 @@ void DsgPrs_LengthPresentation::Add (const Handle(Prs3d_Presentation)& aPrs,
|
|||||||
aDrawer->LengthAspect()->Arrow1Aspect()->Angle(),
|
aDrawer->LengthAspect()->Arrow1Aspect()->Angle(),
|
||||||
aDrawer->LengthAspect()->Arrow1Aspect()->Length());
|
aDrawer->LengthAspect()->Arrow1Aspect()->Length());
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
Prs3d_Root::CurrentGroup(aPrs)->EndPrimitives();
|
Prs3d_Root::CurrentGroup(aPrs)->EndPrimitives();
|
||||||
|
|
||||||
|
@ -158,11 +158,7 @@ Handle(Expr_GeneralExpression) Expr_Product::ShallowSimplified () const
|
|||||||
Standard_Integer max = NbOperands();
|
Standard_Integer max = NbOperands();
|
||||||
Handle(Expr_GeneralExpression) op;
|
Handle(Expr_GeneralExpression) op;
|
||||||
Expr_SequenceOfGeneralExpression newops;
|
Expr_SequenceOfGeneralExpression newops;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real vals = 0.;
|
Standard_Real vals = 0.;
|
||||||
#else
|
|
||||||
Standard_Real vals;
|
|
||||||
#endif
|
|
||||||
Standard_Integer nbvals = 0;
|
Standard_Integer nbvals = 0;
|
||||||
Standard_Boolean subprod = Standard_False;
|
Standard_Boolean subprod = Standard_False;
|
||||||
for (i=1; (i<= max) && !subprod; i++) {
|
for (i=1; (i<= max) && !subprod; i++) {
|
||||||
|
@ -167,11 +167,7 @@ Handle(Expr_GeneralExpression) Expr_Sum::ShallowSimplified () const
|
|||||||
sumop = new Expr_Sum(newops);
|
sumop = new Expr_Sum(newops);
|
||||||
return sumop->ShallowSimplified();
|
return sumop->ShallowSimplified();
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real vals = 0.;
|
Standard_Real vals = 0.;
|
||||||
#else
|
|
||||||
Standard_Real vals;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean noone = Standard_True;
|
Standard_Boolean noone = Standard_True;
|
||||||
for (i = 1; i <= max ; i++) {
|
for (i = 1; i <= max ; i++) {
|
||||||
op = Operand(i);
|
op = Operand(i);
|
||||||
|
@ -421,10 +421,8 @@ static void PerformExtPElC (Extrema_ExtPElC& E,
|
|||||||
case GeomAbs_Parabola:
|
case GeomAbs_Parabola:
|
||||||
E.Perform(P, C->Parabola(), Tol, -Precision::Infinite(),Precision::Infinite());
|
E.Perform(P, C->Parabola(), Tol, -Precision::Infinite(),Precision::Infinite());
|
||||||
return;
|
return;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,10 +120,8 @@ static void PerformExtPElC (Extrema_ExtPElC& E,
|
|||||||
case GeomAbs_Parabola:
|
case GeomAbs_Parabola:
|
||||||
E.Perform(P, C->Parabola(), Tol, -Precision::Infinite(),Precision::Infinite());
|
E.Perform(P, C->Parabola(), Tol, -Precision::Infinite(),Precision::Infinite());
|
||||||
return;
|
return;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
return ;
|
return ;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +45,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
|||||||
|
|
||||||
Standard_Integer GeomFill_SnglrFunc::NbIntervals(const GeomAbs_Shape S)
|
Standard_Integer GeomFill_SnglrFunc::NbIntervals(const GeomAbs_Shape S)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
GeomAbs_Shape HCS=GeomAbs_C0;
|
GeomAbs_Shape HCS=GeomAbs_C0;
|
||||||
#else
|
|
||||||
GeomAbs_Shape HCS;
|
|
||||||
#endif
|
|
||||||
switch(S) {
|
switch(S) {
|
||||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||||
@ -61,11 +57,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
|||||||
|
|
||||||
void GeomFill_SnglrFunc::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S)
|
void GeomFill_SnglrFunc::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
GeomAbs_Shape HCS=GeomAbs_C0;
|
GeomAbs_Shape HCS=GeomAbs_C0;
|
||||||
#else
|
|
||||||
GeomAbs_Shape HCS ;
|
|
||||||
#endif
|
|
||||||
switch(S) {
|
switch(S) {
|
||||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||||
|
@ -97,10 +97,8 @@ static Standard_Integer NbConstraint(const AppParCurves_Constraint C1,
|
|||||||
N = 3;
|
N = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (C2) {
|
switch (C2) {
|
||||||
@ -119,10 +117,8 @@ static Standard_Integer NbConstraint(const AppParCurves_Constraint C1,
|
|||||||
N += 3;
|
N += 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return N;
|
return N;
|
||||||
}
|
}
|
||||||
|
@ -193,10 +193,8 @@ void Graphic2d_HidingGraphicObject::Draw (const Handle(Graphic2d_Drawer)& aDrawe
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
myXmin = myYmin = RealLast();
|
myXmin = myYmin = RealLast();
|
||||||
myXmax = myYmax = RealFirst();
|
myXmax = myYmax = RealFirst();
|
||||||
|
@ -328,10 +328,8 @@ Standard_Real IntCurve_IConicTool::FindParameter(const gp_Pnt2d& P) const {
|
|||||||
,P);
|
,P);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return(Param);
|
return(Param);
|
||||||
|
@ -83,10 +83,8 @@ void IntCurve_PConicTool::D1(const IntCurve_PConic& PConic,
|
|||||||
ElCLib::HyperbolaD1(U,PConic.Axis2(),PConic.Param1(),
|
ElCLib::HyperbolaD1(U,PConic.Axis2(),PConic.Param1(),
|
||||||
PConic.Param2(),Pt,Tan);
|
PConic.Param2(),Pt,Tan);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,10 +119,8 @@ void IntCurve_PConicTool::D2(const IntCurve_PConic& PConic,
|
|||||||
ElCLib::HyperbolaD2(U,PConic.Axis2(),PConic.Param1(),
|
ElCLib::HyperbolaD2(U,PConic.Axis2(),PConic.Param1(),
|
||||||
PConic.Param2(),Pt,Tan,Norm);
|
PConic.Param2(),Pt,Tan,Norm);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,10 +70,8 @@ Standard_Real IntCurve_ProjectOnPConicTool::FindParameter
|
|||||||
,ThePConic.Param2(),P);
|
,ThePConic.Param2(),P);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if(ParamInf!=ParamSup) {
|
if(ParamInf!=ParamSup) {
|
||||||
if(Param<ParamInf) return(ParamInf);
|
if(Param<ParamInf) return(ParamInf);
|
||||||
@ -122,10 +120,8 @@ Standard_Real IntCurve_ProjectOnPConicTool::FindParameter
|
|||||||
,ThePConic.Param2(),P);
|
,ThePConic.Param2(),P);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return(Param);
|
return(Param);
|
||||||
|
@ -1185,11 +1185,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
|
|||||||
const Handle(Adaptor3d_TopolTool)& myDom2,
|
const Handle(Adaptor3d_TopolTool)& myDom2,
|
||||||
const Standard_Real TolArc) {
|
const Standard_Real TolArc) {
|
||||||
|
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer i=1,nbvtx;
|
Standard_Integer i=1,nbvtx;
|
||||||
#else
|
|
||||||
Standard_Integer i,nbvtx;
|
|
||||||
#endif
|
|
||||||
Standard_Real firstp,lastp;
|
Standard_Real firstp,lastp;
|
||||||
Standard_Real Tol = Precision::PConfusion()*100.; // JMB le 13 Jan 2000. Report de la correction du PRO19653
|
Standard_Real Tol = Precision::PConfusion()*100.; // JMB le 13 Jan 2000. Report de la correction du PRO19653
|
||||||
GeomAbs_SurfaceType typs1 = mySurf1->GetType();
|
GeomAbs_SurfaceType typs1 = mySurf1->GetType();
|
||||||
|
@ -339,11 +339,7 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
|
|||||||
Standard_Integer colP = Pivotm1 - ligP * nbdeltaVp1;
|
Standard_Integer colP = Pivotm1 - ligP * nbdeltaVp1;
|
||||||
|
|
||||||
// Point sur Edge position in the MaTriangle and edge typ :
|
// Point sur Edge position in the MaTriangle and edge typ :
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer ligE = 0, colE = 0, typE = 0;
|
Standard_Integer ligE = 0, colE = 0, typE = 0;
|
||||||
#else
|
|
||||||
Standard_Integer ligE, colE, typE;
|
|
||||||
#endif
|
|
||||||
if (Pedge!=0) {
|
if (Pedge!=0) {
|
||||||
ligE= (Pedge-1)/nbdeltaVp1;
|
ligE= (Pedge-1)/nbdeltaVp1;
|
||||||
colE= (Pedge-1) - (ligE * nbdeltaVp1);
|
colE= (Pedge-1) - (ligE * nbdeltaVp1);
|
||||||
@ -359,13 +355,8 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Triangle position General case :
|
// Triangle position General case :
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer linT = 0, colT = 0;
|
Standard_Integer linT = 0, colT = 0;
|
||||||
Standard_Integer linO = 0, colO = 0;
|
Standard_Integer linO = 0, colO = 0;
|
||||||
#else
|
|
||||||
Standard_Integer linT, colT;
|
|
||||||
Standard_Integer linO, colO;
|
|
||||||
#endif
|
|
||||||
Standard_Integer t,tt;
|
Standard_Integer t,tt;
|
||||||
if (Triang!=0) {
|
if (Triang!=0) {
|
||||||
t = (Triang-1)/(nbdeltaVm2);
|
t = (Triang-1)/(nbdeltaVm2);
|
||||||
|
@ -2409,11 +2409,7 @@ void CalculPtsInterTriEdgeCoplanaires2(const Standard_Integer TriSurfID,
|
|||||||
Standard_Real pe2p= Cote.Dot(PE2);
|
Standard_Real pe2p= Cote.Dot(PE2);
|
||||||
Standard_Real pt1p= Cote.Dot(PT1);
|
Standard_Real pt1p= Cote.Dot(PT1);
|
||||||
Standard_Real pt2p= Cote.Dot(PT2);
|
Standard_Real pt2p= Cote.Dot(PT2);
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real lambda1 =0.,lambda2 =0.,alpha1 =0.,alpha2 =0.;
|
Standard_Real lambda1 =0.,lambda2 =0.,alpha1 =0.,alpha2 =0.;
|
||||||
#else
|
|
||||||
Standard_Real lambda1,lambda2,alpha1,alpha2;
|
|
||||||
#endif
|
|
||||||
IntPolyh_Point PEP1,PTP1,PEP2,PTP2;
|
IntPolyh_Point PEP1,PTP1,PEP2,PTP2;
|
||||||
|
|
||||||
if (pe1p>pe2p) {
|
if (pe1p>pe2p) {
|
||||||
|
@ -76,10 +76,8 @@ void LProp_AnalyticCurInf::Perform (const GeomAbs_CurveType CType,
|
|||||||
Result.AddExtCur(0.0 , Standard_True);
|
Result.AddExtCur(0.0 , Standard_True);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,11 +75,7 @@ void MAT2d_MiniPath::Perform
|
|||||||
TColStd_SequenceOfInteger Set2;
|
TColStd_SequenceOfInteger Set2;
|
||||||
Standard_Real DistS1S2;
|
Standard_Real DistS1S2;
|
||||||
Standard_Integer IndiceLine1,IndiceLine2;
|
Standard_Integer IndiceLine1,IndiceLine2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer ISuiv =0,MinOnSet1 =0,MinOnSet2 =0;
|
Standard_Integer ISuiv =0,MinOnSet1 =0,MinOnSet2 =0;
|
||||||
#else
|
|
||||||
Standard_Integer ISuiv,MinOnSet1,MinOnSet2;
|
|
||||||
#endif
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// - 0 Set1 est initialise avec la ligne de depart.
|
// - 0 Set1 est initialise avec la ligne de depart.
|
||||||
// Set2 contient toutes les autres.
|
// Set2 contient toutes les autres.
|
||||||
@ -292,17 +288,9 @@ Handle(MAT2d_Connexion) MAT2d_MiniPath::MinimumL1L2
|
|||||||
const Standard_Integer IL2) const
|
const Standard_Integer IL2) const
|
||||||
{
|
{
|
||||||
Extrema_POnCurv2d PointOnCurv1,PointOnCurv2;
|
Extrema_POnCurv2d PointOnCurv1,PointOnCurv2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Integer IC1,IC2,IMinC1 =0,IMinC2 =0,i;
|
Standard_Integer IC1,IC2,IMinC1 =0,IMinC2 =0,i;
|
||||||
#else
|
|
||||||
Standard_Integer IC1,IC2,IMinC1,IMinC2,i;
|
|
||||||
#endif
|
|
||||||
Standard_Real DistL1L2_2,DistP1P2_2;
|
Standard_Real DistL1L2_2,DistP1P2_2;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real ParameterOnC1 =0.,ParameterOnC2 =0.;
|
Standard_Real ParameterOnC1 =0.,ParameterOnC2 =0.;
|
||||||
#else
|
|
||||||
Standard_Real ParameterOnC1,ParameterOnC2;
|
|
||||||
#endif
|
|
||||||
TColGeom2d_SequenceOfGeometry L1,L2;
|
TColGeom2d_SequenceOfGeometry L1,L2;
|
||||||
gp_Pnt2d Point1,Point2,P1,P2;
|
gp_Pnt2d Point1,Point2,P1,P2;
|
||||||
Handle(Geom2d_Curve) Item1;
|
Handle(Geom2d_Curve) Item1;
|
||||||
|
@ -138,10 +138,8 @@ Handle(PTopoDS_HShape) MgtTopoDS::Translate
|
|||||||
//TrTool.UpdateCompound(aShape,pHShape);
|
//TrTool.UpdateCompound(aShape,pHShape);
|
||||||
TrTool->UpdateShape(aShape,pHShape);
|
TrTool->UpdateShape(aShape,pHShape);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind and copy the sub-elements
|
// bind and copy the sub-elements
|
||||||
@ -269,10 +267,8 @@ void MgtTopoDS::Translate
|
|||||||
//TrTool.UpdateCompound(aHShape,theShape);
|
//TrTool.UpdateCompound(aHShape,theShape);
|
||||||
TrTool->UpdateShape(aHShape,theShape);
|
TrTool->UpdateShape(aHShape,theShape);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind and copy the sub-elements
|
// bind and copy the sub-elements
|
||||||
@ -369,10 +365,8 @@ void MgtTopoDS::Translate1
|
|||||||
TrTool->MakeCompound(aPShape);
|
TrTool->MakeCompound(aPShape);
|
||||||
TrTool->UpdateShape(aShape,aPShape);
|
TrTool->UpdateShape(aShape,aPShape);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind and copy the sub-elements
|
// bind and copy the sub-elements
|
||||||
@ -490,10 +484,8 @@ void MgtTopoDS::Translate1
|
|||||||
//TrTool.UpdateCompound(aPShape,aShape);
|
//TrTool.UpdateCompound(aPShape,aShape);
|
||||||
TrTool->UpdateShape(aPShape,aShape);
|
TrTool->UpdateShape(aPShape,aShape);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind and copy the sub-elements
|
// bind and copy the sub-elements
|
||||||
|
@ -137,10 +137,8 @@ void OSD_Error::Perror() {
|
|||||||
buffer += "Lock is already blocked by another process";
|
buffer += "Lock is already blocked by another process";
|
||||||
extCode = ERR_FDEADLK;
|
extCode = ERR_FDEADLK;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
@ -262,10 +260,8 @@ void OSD_Error::Perror() {
|
|||||||
buffer += "File is locked";
|
buffer += "File is locked";
|
||||||
extCode = ERR_FLOCKED;
|
extCode = ERR_FLOCKED;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
@ -277,10 +273,8 @@ void OSD_Error::Perror() {
|
|||||||
buffer += "File is locked";
|
buffer += "File is locked";
|
||||||
extCode = ERR_FLOCKED;
|
extCode = ERR_FLOCKED;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -376,7 +376,7 @@ OSD_Path::OSD_Path(const TCollection_AsciiString& aDependentName,
|
|||||||
MacExtract(aDependentName,myDisk,myTrek,myName,myExtension);
|
MacExtract(aDependentName,myDisk,myTrek,myName,myExtension);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
#ifndef DEB
|
#ifdef DEB
|
||||||
cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << endl;
|
cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << endl;
|
||||||
#endif
|
#endif
|
||||||
break ;
|
break ;
|
||||||
|
@ -408,10 +408,8 @@ void PlotMgt_PlotterParameter::Normalize ()
|
|||||||
case _T_LSTR: {
|
case _T_LSTR: {
|
||||||
ProcessParamVal (NULL, FLAG_DEFVAL, myDefValue);
|
ProcessParamVal (NULL, FLAG_DEFVAL, myDefValue);
|
||||||
} break;
|
} break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break ;
|
break ;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
// Check the configuration
|
// Check the configuration
|
||||||
if (myFlags & FLAG_DEFVAL && myDefValue.IsEmpty())
|
if (myFlags & FLAG_DEFVAL && myDefValue.IsEmpty())
|
||||||
|
@ -486,11 +486,7 @@ void ProjLib_ProjectOnPlane::Load(const Handle(Adaptor3d_HCurve)& C,
|
|||||||
GeomAbs_CurveType Type = C->GetType();
|
GeomAbs_CurveType Type = C->GetType();
|
||||||
|
|
||||||
gp_Ax2 Axis;
|
gp_Ax2 Axis;
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real R1 =0., R2 =0.;
|
Standard_Real R1 =0., R2 =0.;
|
||||||
#else
|
|
||||||
Standard_Real R1, R2;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( Type != GeomAbs_Line) // on garde le parametrage
|
if ( Type != GeomAbs_Line) // on garde le parametrage
|
||||||
myKeepParam = Standard_True;
|
myKeepParam = Standard_True;
|
||||||
|
@ -102,10 +102,8 @@ void QANewBRepNaming::LoadNamedShape (TNaming_Builder& theBuilder,
|
|||||||
{
|
{
|
||||||
theBuilder.Select(theNS, theOS);
|
theBuilder.Select(theNS, theOS);
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,11 +87,7 @@ Matches(const Standard_Real X,
|
|||||||
const Standard_Real aTol,
|
const Standard_Real aTol,
|
||||||
Standard_Real& DMin)
|
Standard_Real& DMin)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
Standard_Real DMin2 = 0.;
|
Standard_Real DMin2 = 0.;
|
||||||
#else
|
|
||||||
Standard_Real DMin2;
|
|
||||||
#endif
|
|
||||||
Standard_Real Xmin,Ymin,Xmax,Ymax;
|
Standard_Real Xmin,Ymin,Xmax,Ymax;
|
||||||
if(!Bnd_Box2d(mybox2d).IsVoid())
|
if(!Bnd_Box2d(mybox2d).IsVoid())
|
||||||
{
|
{
|
||||||
|
@ -98,10 +98,8 @@ Matches(const Standard_Real X,
|
|||||||
case Select3D_TOS_INTERIOR:
|
case Select3D_TOS_INTERIOR:
|
||||||
Res = Status(X,Y,aTol,DMin);
|
Res = Status(X,Y,aTol,DMin);
|
||||||
return (Res==0 || Res == 1);
|
return (Res==0 || Res == 1);
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
|
@ -288,10 +288,8 @@ Activate(const Handle(SelectMgr_SelectableObject)& anObject,
|
|||||||
Sel->UpdateStatus(SelectMgr_TOU_None);
|
Sel->UpdateStatus(SelectMgr_TOU_None);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
curview->Activate(Sel,AutomaticProj);
|
curview->Activate(Sel,AutomaticProj);
|
||||||
@ -328,10 +326,8 @@ Activate(const Handle(SelectMgr_SelectableObject)& anObject,
|
|||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
Sel->UpdateStatus(SelectMgr_TOU_None);
|
Sel->UpdateStatus(SelectMgr_TOU_None);
|
||||||
|
|
||||||
@ -654,10 +650,8 @@ RecomputeSelection (const Handle(SelectMgr_SelectableObject)& anObject,
|
|||||||
case SelectMgr_TOU_Partial:
|
case SelectMgr_TOU_Partial:
|
||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if(Found){
|
if(Found){
|
||||||
VS->Convert(Sel);
|
VS->Convert(Sel);
|
||||||
@ -692,10 +686,8 @@ void SelectMgr_SelectionManager::Update(const Handle(SelectMgr_SelectableObject)
|
|||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
wasrecomputed = Standard_True;
|
wasrecomputed = Standard_True;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
Sel->UpdateStatus(SelectMgr_TOU_None);
|
Sel->UpdateStatus(SelectMgr_TOU_None);
|
||||||
}
|
}
|
||||||
@ -714,10 +706,8 @@ void SelectMgr_SelectionManager::Update(const Handle(SelectMgr_SelectableObject)
|
|||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
wasrecomputed = Standard_True;
|
wasrecomputed = Standard_True;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if(wasrecomputed)
|
if(wasrecomputed)
|
||||||
VS->Convert(Sel);
|
VS->Convert(Sel);
|
||||||
@ -758,10 +748,8 @@ Update(const Handle(SelectMgr_SelectableObject)& anObject,
|
|||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
wasrecomputed = Standard_True;
|
wasrecomputed = Standard_True;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
Sel->UpdateStatus(SelectMgr_TOU_None);
|
Sel->UpdateStatus(SelectMgr_TOU_None);
|
||||||
}
|
}
|
||||||
@ -775,10 +763,8 @@ Update(const Handle(SelectMgr_SelectableObject)& anObject,
|
|||||||
anObject->UpdateLocation(Sel);
|
anObject->UpdateLocation(Sel);
|
||||||
wasrecomputed = Standard_True;
|
wasrecomputed = Standard_True;
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if(wasrecomputed)
|
if(wasrecomputed)
|
||||||
aViewSel->Convert(Sel);
|
aViewSel->Convert(Sel);
|
||||||
|
@ -243,11 +243,7 @@ void TestTopOpe_BOOP::Booope(const char* key,const char *namres)
|
|||||||
|
|
||||||
else if (o == BOOP_C12 || o == BOOP_C21 || o == BOOP_COM || o == BOOP_FUS) {
|
else if (o == BOOP_C12 || o == BOOP_C21 || o == BOOP_COM || o == BOOP_FUS) {
|
||||||
|
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_State t1=TopAbs_UNKNOWN,t2=TopAbs_UNKNOWN;
|
TopAbs_State t1=TopAbs_UNKNOWN,t2=TopAbs_UNKNOWN;
|
||||||
#else
|
|
||||||
TopAbs_State t1,t2;
|
|
||||||
#endif
|
|
||||||
if (o == BOOP_C12) { t1 = TopAbs_OUT; t2 = TopAbs_IN; }
|
if (o == BOOP_C12) { t1 = TopAbs_OUT; t2 = TopAbs_IN; }
|
||||||
else if (o == BOOP_C21) { t1 = TopAbs_IN; t2 = TopAbs_OUT; }
|
else if (o == BOOP_C21) { t1 = TopAbs_IN; t2 = TopAbs_OUT; }
|
||||||
else if (o == BOOP_COM) { t1 = TopAbs_IN; t2 = TopAbs_IN; }
|
else if (o == BOOP_COM) { t1 = TopAbs_IN; t2 = TopAbs_IN; }
|
||||||
|
@ -49,10 +49,8 @@ void TestTopOpe_BOOP::SetTol(const TopOpeBRepDS_Kind K,const Standard_Integer in
|
|||||||
Poin.Tolerance(tol);
|
Poin.Tolerance(tol);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
TopOpeBRepDS::Print(K, index, cout);
|
TopOpeBRepDS::Print(K, index, cout);
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
|
@ -888,11 +888,7 @@ Standard_Integer tsee(Draw_Interpretor& di,Standard_Integer na_in,const char** a
|
|||||||
// SeeAnyKI
|
// SeeAnyKI
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
Standard_Integer SeeAnyKI(const TopOpeBRepDS_Kind TK,const Standard_Integer I) {
|
Standard_Integer SeeAnyKI(const TopOpeBRepDS_Kind TK,const Standard_Integer I) {
|
||||||
#ifndef DEB
|
|
||||||
TopAbs_ShapeEnum TS = TopAbs_COMPOUND;
|
TopAbs_ShapeEnum TS = TopAbs_COMPOUND;
|
||||||
#else
|
|
||||||
TopAbs_ShapeEnum TS;
|
|
||||||
#endif
|
|
||||||
Standard_Boolean isshape,isgeome; isshape = isgeome = Standard_False;
|
Standard_Boolean isshape,isgeome; isshape = isgeome = Standard_False;
|
||||||
isshape = TopOpeBRepDS::IsTopology(TK);
|
isshape = TopOpeBRepDS::IsTopology(TK);
|
||||||
if (isshape) TS = TopOpeBRepDS::KindToShape(TK);
|
if (isshape) TS = TopOpeBRepDS::KindToShape(TK);
|
||||||
|
@ -135,10 +135,8 @@ gp_Pnt TestTopOpeDraw_DrawableSHA::Pnt() const
|
|||||||
P = SU.Value(u,v);
|
P = SU.Value(u,v);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return P;
|
return P;
|
||||||
|
@ -290,11 +290,8 @@ void TopOpeBRep_FaceEdgeFiller::StoreInterference
|
|||||||
// appendtoG = Standard_True;
|
// appendtoG = Standard_True;
|
||||||
// BDS.ChangePointInterferences(G).Append(I);
|
// BDS.ChangePointInterferences(G).Append(I);
|
||||||
break;
|
break;
|
||||||
#ifndef DEB
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEB
|
#ifdef DEB
|
||||||
|
@ -466,12 +466,7 @@ void TopOpeBRepBuild_HBuilder::MakeCurveAncestorMap()
|
|||||||
return;
|
return;
|
||||||
mySectEdgeDSCurve.Clear();
|
mySectEdgeDSCurve.Clear();
|
||||||
myMakeCurveAncestorIsDone = Standard_True;
|
myMakeCurveAncestorIsDone = Standard_True;
|
||||||
#ifndef DEB
|
|
||||||
// static const TopOpeBRepDS_DataStructure& DS = DataStructure()->DS();
|
|
||||||
const TopOpeBRepDS_DataStructure& DS = DataStructure()->DS(); // How to do static <--> const
|
|
||||||
#else
|
|
||||||
const TopOpeBRepDS_DataStructure& DS = DataStructure()->DS();
|
const TopOpeBRepDS_DataStructure& DS = DataStructure()->DS();
|
||||||
#endif
|
|
||||||
TopTools_ListIteratorOfListOfShape itloe;
|
TopTools_ListIteratorOfListOfShape itloe;
|
||||||
TopOpeBRepDS_CurveExplorer cex(DS,Standard_True);
|
TopOpeBRepDS_CurveExplorer cex(DS,Standard_True);
|
||||||
// Standard_Integer ic, icm;
|
// Standard_Integer ic, icm;
|
||||||
|
@ -62,12 +62,8 @@ static Standard_Integer FUN_getAncestorFsp(TopOpeBRepBuild_Builder& B,TopOpeBRep
|
|||||||
|
|
||||||
static Standard_Integer FUN_getAncestorFsp(TopOpeBRepBuild_Builder& B,TopOpeBRepTool_ShapeClassifier& SC,const TopTools_ListOfShape& LF,const TopoDS_Shape& fsp,Standard_Boolean& p3ddef,gp_Pnt& p3d)
|
static Standard_Integer FUN_getAncestorFsp(TopOpeBRepBuild_Builder& B,TopOpeBRepTool_ShapeClassifier& SC,const TopTools_ListOfShape& LF,const TopoDS_Shape& fsp,Standard_Boolean& p3ddef,gp_Pnt& p3d)
|
||||||
{
|
{
|
||||||
#ifndef DEB
|
|
||||||
// static const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS();
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS(); // How to do static <--> const
|
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS(); // How to do static <--> const
|
||||||
#else
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS();
|
|
||||||
#endif
|
|
||||||
TopTools_ListIteratorOfListOfShape itf(LF);
|
TopTools_ListIteratorOfListOfShape itf(LF);
|
||||||
for (; itf.More(); itf.Next()){
|
for (; itf.More(); itf.Next()){
|
||||||
const TopoDS_Face& f = TopoDS::Face(itf.Value());
|
const TopoDS_Face& f = TopoDS::Face(itf.Value());
|
||||||
@ -99,11 +95,7 @@ static Standard_Integer FUN_getAncestorFsp(TopOpeBRepBuild_Builder& B,TopOpeBRep
|
|||||||
{
|
{
|
||||||
// IMPORTANT : fsp is split IN/OUT of F1,so it has only one ancestor face
|
// IMPORTANT : fsp is split IN/OUT of F1,so it has only one ancestor face
|
||||||
// LF1 faces sdm with LF2
|
// LF1 faces sdm with LF2
|
||||||
#ifndef DEB
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS();
|
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS();
|
||||||
#else
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = B.DataStructure()->DS();
|
|
||||||
#endif
|
|
||||||
Standard_Boolean of1,of2; FUNBUILD_ANCESTORRANKGET(B,fsp,of1,of2);
|
Standard_Boolean of1,of2; FUNBUILD_ANCESTORRANKGET(B,fsp,of1,of2);
|
||||||
Standard_Integer rkfsp = 0;
|
Standard_Integer rkfsp = 0;
|
||||||
if (of1 && !of2) rkfsp = 1;
|
if (of1 && !of2) rkfsp = 1;
|
||||||
@ -182,12 +174,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
|
|||||||
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
|
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
|
||||||
if(tSPS)cout<<endl;
|
if(tSPS)cout<<endl;
|
||||||
#endif
|
#endif
|
||||||
#ifndef DEB
|
|
||||||
// static const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
|
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
|
||||||
#else
|
|
||||||
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
|
|
||||||
#endif
|
|
||||||
Standard_Boolean tosplit = GToSplit(FOR,TB1);
|
Standard_Boolean tosplit = GToSplit(FOR,TB1);
|
||||||
Standard_Boolean tomerge = GToMerge(FOR);
|
Standard_Boolean tomerge = GToMerge(FOR);
|
||||||
#ifdef DEB
|
#ifdef DEB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user