--- File: Contap.cdl
--- Created: Fri Feb 5 11:50:39 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
+-- File: Contap.cdl
+-- Created: Fri Feb 5 11:50:39 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
package Contap
end Contap;
-
--- File: Contap_ArcFunction.cdl
--- Created: Thu Jun 3 12:32:05 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
-
+-- File: Contap_ArcFunction.cdl
+-- Created: Thu Jun 3 12:32:05 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
generic class ArcFunction from Contap
(TheArc as any;
+// File: Contap_ArcFunction.gxx
+// Created: Thu Jun 3 12:32:05 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
-
-
Contap_ArcFunction::Contap_ArcFunction ():
myMean(1.),
myType(Contap_ContourStd),
{
gp_Pnt2d pt2d;
gp_Vec2d d2d;
-#ifndef DEB
Standard_Real dfu =0.,dfv =0.;
-#else
- Standard_Real dfu,dfv;
-#endif
// gp_Vec d1u,d1v,d2u,d2v,d2uv;
TheArcTool::D1(myArc,U,pt2d,d2d);
// TheSurfaceTool::D2(mySurf,pt2d.X(),pt2d.Y(),solpt,d1u,d1v,d2u,d2v,d2uv);
{
gp_Pnt2d pt2d;
gp_Vec2d d2d;
-#ifndef DEB
Standard_Real dfu =0.,dfv =0.;
-#else
- Standard_Real dfu,dfv;
-#endif
// gp_Vec d1u,d1v,d2u,d2v,d2uv;
TheArcTool::D1(myArc,U,pt2d,d2d);
// TheSurfaceTool::D2(mySurf,pt2d.X(),pt2d.Y(),solpt,d1u,d1v,d2u,d2v,d2uv);
+// File: Contap_ArcFunction.lxx
+// Created: Thu Jun 3 12:32:05 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
inline void Contap_ArcFunction::Set(const gp_Dir& Direction,
const Standard_Real Angle)
{
{
return seqpt(Index);
}
-
--- File: Contap_ArcTool.cdl
--- Created: Wed May 12 09:09:34 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_ArcTool.cdl
+-- Created: Wed May 12 09:09:34 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
deferred generic class ArcTool from Contap
end ArcTool;
-
-
--- File: Contap_ContAna.cdl
--- Created: Thu Mar 4 10:51:23 1993
--- Author: Jacques GOUSSARD
--- <jag@form4>
----Copyright: Matra Datavision 1993
-
-
+-- File: Contap_ContAna.cdl
+-- Created: Thu Mar 4 10:51:23 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
class ContAna from Contap
+// File: Contap_ContAna.cxx
+// Created: Thu Mar 4 10:51:23 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <Contap_ContAna.ixx>
#include <gp_XYZ.hxx>
#include <gp.hxx>
-
-
#define Tolpetit 1.e-8
-
Contap_ContAna::Contap_ContAna (): done(Standard_False) {}
void Contap_ContAna::Perform (const gp_Sphere& S,
- const gp_Dir& D)
+ const gp_Dir& D)
{
done = Standard_False;
typL = GeomAbs_Circle;
}
void Contap_ContAna::Perform (const gp_Sphere& S,
- const gp_Dir& D,
- const Standard_Real Angle)
+ const gp_Dir& D,
+ const Standard_Real Angle)
{
done = Standard_False;
typL = GeomAbs_Circle;
}
void Contap_ContAna::Perform (const gp_Sphere& S,
- const gp_Pnt& Eye)
+ const gp_Pnt& Eye)
{
done = Standard_False;
done = Standard_True;
}
-
void Contap_ContAna::Perform (const gp_Cylinder& C,
- const gp_Dir& D)
-
+ const gp_Dir& D)
{
done = Standard_False;
}
void Contap_ContAna::Perform (const gp_Cylinder& C,
- const gp_Dir& D,
- const Standard_Real Angle)
-
+ const gp_Dir& D,
+ const Standard_Real Angle)
{
done = Standard_False;
}
void Contap_ContAna::Perform (const gp_Cylinder& C,
- const gp_Pnt& Eye)
-
+ const gp_Pnt& Eye)
{
done = Standard_False;
done = Standard_True;
}
-
void Contap_ContAna::Perform (const gp_Cone& C,
- const gp_Dir& D)
-
+ const gp_Dir& D)
{
done = Standard_False;
done = Standard_True;
}
-
void Contap_ContAna::Perform (const gp_Cone& C,
- const gp_Dir& D,
- const Standard_Real Angle)
-
+ const gp_Dir& D,
+ const Standard_Real Angle)
{
done = Standard_False;
nbSol = 0;
}
done = Standard_True;
-
-
}
void Contap_ContAna::Perform (const gp_Cone& C,
- const gp_Pnt& Eye)
-
+ const gp_Pnt& Eye)
{
done = Standard_False;
nbSol = 0;
}
done = Standard_True;
-
}
-
gp_Lin Contap_ContAna::Line (const Standard_Integer Index) const
{
if (!done) {StdFail_NotDone::Raise();}
case 4:
return gp_Lin(pt4,dir4);
}
- Standard_OutOfRange::Raise("Erreur de programmation dans Contap_ContAna");
+ Standard_OutOfRange::Raise("Program error in Contap_ContAna");
return gp_Lin();
}
-
+// File: Contap_ContAna.lxx
+// Created: Thu Mar 4 10:51:23 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <StdFail_NotDone.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_OutOfRange.hxx>
if (typL != GeomAbs_Circle || nbSol == 0) {Standard_DomainError::Raise();}
return gp_Circ(gp_Ax2(pt1,dir1,dir2),prm);
}
-
--- File: Contap_ContourGen.cdl
--- Created: Fri Feb 5 09:39:18 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_ContourGen.cdl
+-- Created: Fri Feb 5 09:39:18 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
generic class ContourGen from Contap
(TheVertex as any;
+// File: Contap_ContourGen.gxx
+// Created: Fri Feb 5 09:39:18 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <ElCLib.hxx>
#include <gp_Pln.hxx>
+// File: Contap_ContourGen.lxx
+// Created: Fri Feb 5 09:39:18 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <StdFail_NotDone.hxx>
inline Standard_Boolean Contap_ContourGen::IsDone () const
+// File: Contap_ContourGen_1.gxx
+// Created: Fri Feb 5 09:39:18 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <Standard_ConstructionError.hxx>
-//----------------------------------------------
-//-- C o n t a p _ C o n t o u r _ 2 . g x x --
-//----------------------------------------------
-
+// File: Contap_ContourGen_2.gxx
+// Created: Fri Feb 5 09:39:18 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
#include <math_Vector.hxx>
#include <math_Matrix.hxx>
Standard_Integer nbvtx = L.NbVertex();
//-- cout<<" WLine -> "<<nbvtx<<" vtx"<<endl;
for(Standard_Integer i=1;i<nbvtx;i++) {
-//#ifndef DEB
Standard_Integer firstp = (Standard_Integer) L.Vertex(i).ParameterOnLine();
Standard_Integer lastp = (Standard_Integer) L.Vertex(i+1).ParameterOnLine();
-//#else
-// Standard_Integer firstp = L.Vertex(i).ParameterOnLine();
-// Standard_Integer lastp = L.Vertex(i+1).ParameterOnLine();
-//#endif
if(firstp!=lastp) {
Standard_Integer pmid = (firstp+lastp)/2; //-- entiers
const IntSurf_PntOn2S& Pmid = L.Point(pmid);
Contap_ThePathPointOfTheSearch PStartf,PStartl;
Standard_Boolean dofirst,dolast,procf,procl;
-#ifndef DEB
Standard_Real paramf =0.,paraml =0.,U;
-#else
- Standard_Real paramf,paraml,U;
-#endif
Contap_TheLine theline;
gp_Vec tgline;//,norm1,norm2;
gp_Pnt pcour;
gp_Pnt2d p2d;
gp_Vec2d d2d;
- Standard_Boolean found,ok
-#ifndef DEB
- = Standard_False
-#endif
- ,toutvu,solution;
+ Standard_Boolean found,ok = Standard_False,toutvu,solution;
Standard_Real paramp,paraminf,paramsup,toler;
if (Line.TypeContour() != Contap_Restriction) {
Standard_Integer indexinf,indexsup,index;
gp_Vec tgt, vecref, vectest, vtestb, vecregard;
//gp_Pnt pprec,pcour;
- Standard_Boolean found,ok
-#ifndef DEB
- = Standard_False
-#endif
- ,toutvu,solution;
-
- Standard_Real paramp
-#ifndef DEB
- = Standard_False
-#endif
- ,U,V;
+ Standard_Boolean found,ok = Standard_False,toutvu,solution;
+ Standard_Real paramp = 0.,U,V;
math_Vector XInf(1,2),XSup(1,2),X(1,2),F(1,1);
math_Matrix DF(1,1,1,2);
-//-- Contap_ContourGen_3.gxx
+// File: Contap_ContourGen_3.gxx
+// Created: Fri Feb 5 09:39:18 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
#define Tolpetit 1.e-10 // pour dist au carre
#include <ElSLib.hxx>
ElSLib::Parameters(TheSurfaceTool::Sphere(Surf),P,u,v);
break;
}
-#ifndef DEB
default:
break;
-#endif
}
return(ComputeTransitionOnLine(SFunc,u,v,T));
}
ElSLib::Parameters(TheSurfaceTool::Sphere(Surf),P,u,v);
break;
}
-#ifndef DEB
default:
break;
-#endif
}
return(ComputeTransitionOnLine(SFunc,u,v,T));
-
}
{
}
}
-#ifndef DEB
default:
break;
-#endif
}
break;
}
-//-- File: Contap_HContToolGen.cdl
-//-- Created: Fri Jul 2 13:19:22 1995
-//-- Author: Laurent BUCHARD
-//-- <lbr@mastox>
-//---Copyright: Matra Datavision 1995
-
-
+// File: Contap_HContToolGen.gxx
+// Created: Fri Jul 2 13:19:22 1995
+// Author: Laurent BUCHARD
+// Copyright: OPEN CASCADE 2000
#include <Extrema_EPCOfExtPC2d.hxx>
#include <Extrema_POnCurv2d.hxx>
default:
nbsOnC = 10;
}
-//#ifndef DEB
return (Standard_Integer)(nbsOnC);
-//#else
-// return(nbsOnC);
-//#endif
}
--- File: Contap_HCurve2dToolGen.cdl
--- Created: Mon Jul 17 16:25:23 1995
--- Author: Laurent BUCHARD
--- <lbr@mastox>
----Copyright: Matra Datavision 1995
+-- File: Contap_HCurve2dToolGen.cdl
+-- Created: Mon Jul 17 16:25:23 1995
+-- Author: Laurent BUCHARD
+---Copyright: Matra Datavision 1995
generic class HCurve2dToolGen from Contap (
returns Integer from Standard;
end HCurve2dToolGen;
-
-
-// File: Contap_HCurve2dToolGen.gxx
-// Created: Mon Jul 17 17:39:39 1995
-// Author: Modelistation
-// <model@mastox>
+// File: Contap_HCurve2dToolGen.gxx
+// Created: Mon Jul 17 17:39:39 1995
+// Author: Modelistation
+// Copyright: OPEN CASCADE 2000
#include CurveGen_hxx
#include <GeomAbs_CurveType.hxx>
#include <TColStd_Array1OfReal.hxx>
-
//============================================================
Standard_Integer Contap_HCurve2dToolGen::NbSamples (const CurveGen& C,
- const Standard_Real U0,
- const Standard_Real U1) {
- GeomAbs_CurveType typC = C->GetType();
- static Standard_Real nbsOther = 10.0;
- Standard_Real nbs = nbsOther;
-
- if(typC == GeomAbs_Line)
- nbs = 2;
- else if(typC == GeomAbs_BezierCurve)
- nbs = 3 + C->NbPoles();
- else if(typC == GeomAbs_BSplineCurve) {
- nbs = C->NbKnots();
- nbs*= C->Degree();
- nbs*= C->LastParameter()- C->FirstParameter();
- nbs/= U1-U0;
- if(nbs < 2.0) nbs=2;
+ const Standard_Real U0,
+ const Standard_Real U1)
+{
+ Standard_Real nbs = 10.0;
+ switch (C->GetType())
+ {
+ case GeomAbs_Line:
+ nbs = 2.;
+ break;
+ case GeomAbs_BezierCurve:
+ nbs = 3. + C->NbPoles();
+ break;
+ case GeomAbs_BSplineCurve:
+ nbs = C->NbKnots();
+ nbs*= C->Degree();
+ nbs*= C->LastParameter()- C->FirstParameter();
+ nbs/= U1-U0;
+ if(nbs < 2.0) nbs = 2.;
+ break;
}
- if(nbs>50)
- nbs = 50;
+ if (nbs>50.)
+ nbs = 50.;
return((Standard_Integer)nbs);
}
-// File: Contap_HCurve2dToolGen.lxx
-// Created: Thu Oct 22 12:14:59 1992
-// Author: Laurent BUCHARD
-// <lbr@sdsun2>
-
+// File: Contap_HCurve2dToolGen.lxx
+// Created: Thu Oct 22 12:14:59 1992
+// Author: Laurent BUCHARD
+// Copyright: OPEN CASCADE 2000
#include CurveGen_hxx
return(C->BSpline());
}
//============================================================
-
-
-
-
-
-
-
-
-
-
-
-
-
-
--- File: Contap_Line.cdl
--- Created: Fri Feb 5 12:13:00 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_Line.cdl
+-- Created: Fri Feb 5 12:13:00 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
generic class Line from Contap
(TheVertex as any;
-//--------------------------------------------------
-//-- C o n t a p _ L i n e . g x x --
-//--------------------------------------------------
+// File: Contap_Line.gxx
+// Created: Fri Feb 5 12:13:00 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
Contap_Line::Contap_Line () {
svtx = new TheHSequenceOfPoint ();
svtx = new TheHSequenceOfPoint ();
}
-
-
void Contap_Line::Add(const ThePoint& P) {
Standard_Integer n = svtx->Length();
if(n==0) {
}
}
-
-
-
void Contap_Line::Clear () {
if(!curv.IsNull())
curv->Clear();
return(Trans);
}
-
const TheArc& Contap_Line::Arc () const
{
if (typL != Contap_Restriction) {Standard_DomainError::Raise();}
return thearc;
}
-
+// File: Contap_Line.lxx
+// Created: Fri Feb 5 12:13:00 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <Standard_DomainError.hxx>
#include <TColgp_HSequenceOfPnt.hxx>
#include <gp_Lin.hxx>
#include <IntSurf_PntOn2S.hxx>
#include <IntSurf_LineOn2S.hxx>
-
#include TheHSequenceOfPoint_hxx
inline const Handle(IntSurf_LineOn2S)& Contap_Line::LineOn2S () const
if (typL != Contap_Circle) {Standard_DomainError::Raise();}
return gp_Circ(gp_Ax2(pt,dir1,dir2),rad);
}
-
--- File: Contap_Point.cdl
--- Created: Thu Mar 4 17:22:45 1993
--- Author: Jacques GOUSSARD
--- <jag@form4>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_Point.cdl
+-- Created: Thu Mar 4 17:22:45 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
generic class Point from Contap
(TheVertex as any;
+// File: Contap_Point.gxx
+// Created: Thu Mar 4 17:22:45 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
Contap_Point::Contap_Point ():
onarc(Standard_False),isvtx(Standard_False),ismult(Standard_False),
myInternal(Standard_False)
pt(Pt),uparam(U),vparam(V),onarc(Standard_False),isvtx(Standard_False),
ismult(Standard_False),myInternal(Standard_False)
{}
-
-#include <Standard_DomainError.hxx>
+// File: Contap_Point.lxx
+// Created: Thu Mar 4 17:22:45 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+#include <Standard_DomainError.hxx>
inline void Contap_Point::SetValue (const gp_Pnt& Pt,
const Standard_Real U,
if (!isvtx) {Standard_DomainError::Raise();}
return vtx;
}
-
--- File: Contap_SurfFunction.cdl
--- Created: Thu Jun 3 15:23:20 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
+-- File: Contap_SurfFunction.cdl
+-- Created: Thu Jun 3 15:23:20 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
generic class SurfFunction from Contap
+// File: Contap_SurfFunction.gxx
+// Created: Thu Jun 3 15:23:20 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
// jag 940616 #define Tolpetit 1.e-16
+// File: Contap_SurfFunction.lxx
+// Created: Thu Jun 3 15:23:20 1993
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
+
#include <StdFail_UndefinedDerivative.hxx>
inline void Contap_SurfFunction::Set(const gp_Pnt& Eye)
--- File: Contap_SurfProps.cdl
--- Created: Fri Feb 24 15:30:15 1995
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1995
+-- File: Contap_SurfProps.cdl
+-- Created: Fri Feb 24 15:30:15 1995
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1995
generic class SurfProps from Contap
-// File: Contap_SurfProps.gxx
-// Created: Fri Feb 24 15:37:28 1995
-// Author: Jacques GOUSSARD
-// <jag@topsn2>
-
+// File: Contap_SurfProps.gxx
+// Created: Fri Feb 24 15:37:28 1995
+// Author: Jacques GOUSSARD
+// Copyright: OPEN CASCADE 2000
#include <ElSLib.hxx>
break;
}
}
-
--- File: Contap_SurfaceTool.cdl
--- Created: Wed May 12 09:11:00 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_SurfaceTool.cdl
+-- Created: Wed May 12 09:11:00 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
deferred generic class SurfaceTool from Contap
--- File: Contap_TopolTool.cdl
--- Created: Wed May 12 09:16:05 1993
--- Author: Jacques GOUSSARD
--- <jag@topsn2>
----Copyright: Matra Datavision 1993
-
+-- File: Contap_TopolTool.cdl
+-- Created: Wed May 12 09:16:05 1993
+-- Author: Jacques GOUSSARD
+---Copyright: Matra Datavision 1993
deferred generic class TopolTool from Contap
--- File: HLRAlgo.cdl
--- Created: Tue Feb 18 17:18:30 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo.cdl
+-- Created: Tue Feb 18 17:18:30 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
package HLRAlgo
--- Purpose: In order to have the precision required in
-// File: HLRAlgo.cxx
-// Created: Tue Sep 12 17:05:53 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo.cxx
+// Created: Tue Sep 12 17:05:53 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo.ixx>
-static Standard_Real cosu0 = cos(0*PI/14);
-static Standard_Real sinu0 = sin(0*PI/14);
-static Standard_Real cosu1 = cos(1*PI/14);
-static Standard_Real sinu1 = sin(1*PI/14);
-static Standard_Real cosu2 = cos(2*PI/14);
-static Standard_Real sinu2 = sin(2*PI/14);
-static Standard_Real cosu3 = cos(3*PI/14);
-static Standard_Real sinu3 = sin(3*PI/14);
-static Standard_Real cosu4 = cos(4*PI/14);
-static Standard_Real sinu4 = sin(4*PI/14);
-static Standard_Real cosu5 = cos(5*PI/14);
-static Standard_Real sinu5 = sin(5*PI/14);
-static Standard_Real cosu6 = cos(6*PI/14);
-static Standard_Real sinu6 = sin(6*PI/14);
+static const Standard_Real cosu0 = cos(0.*PI/14.);
+static const Standard_Real sinu0 = sin(0.*PI/14.);
+static const Standard_Real cosu1 = cos(1.*PI/14.);
+static const Standard_Real sinu1 = sin(1.*PI/14.);
+static const Standard_Real cosu2 = cos(2.*PI/14.);
+static const Standard_Real sinu2 = sin(2.*PI/14.);
+static const Standard_Real cosu3 = cos(3.*PI/14.);
+static const Standard_Real sinu3 = sin(3.*PI/14.);
+static const Standard_Real cosu4 = cos(4.*PI/14.);
+static const Standard_Real sinu4 = sin(4.*PI/14.);
+static const Standard_Real cosu5 = cos(5.*PI/14.);
+static const Standard_Real sinu5 = sin(5.*PI/14.);
+static const Standard_Real cosu6 = cos(6.*PI/14.);
+static const Standard_Real sinu6 = sin(6.*PI/14.);
//=======================================================================
//function : UpdateMinMax
//=======================================================================
void HLRAlgo::UpdateMinMax (const Standard_Real x,
- const Standard_Real y,
- const Standard_Real z,
- const Standard_Address Min,
- const Standard_Address Max)
+ const Standard_Real y,
+ const Standard_Real z,
+ const Standard_Address Min,
+ const Standard_Address Max)
{
- Standard_Real d00,d01,d02,d03,d04,d05,d06,d07;
- Standard_Real d08,d09,d10,d11,d12,d13,d14,d15;
- d00 = cosu0 * x + sinu0 * y;
- d01 = sinu0 * x - cosu0 * y;
- d02 = cosu1 * x + sinu1 * y;
- d03 = sinu1 * x - cosu1 * y;
- d04 = cosu2 * x + sinu2 * y;
- d05 = sinu2 * x - cosu2 * y;
- d06 = cosu3 * x + sinu3 * y;
- d07 = sinu3 * x - cosu3 * y;
- d08 = cosu4 * x + sinu4 * y;
- d09 = sinu4 * x - cosu4 * y;
- d10 = cosu5 * x + sinu5 * y;
- d11 = sinu5 * x - cosu5 * y;
- d12 = cosu6 * x + sinu6 * y;
- d13 = sinu6 * x - cosu6 * y;
- d14 = z;
- d15 = z;
-
- if (((Standard_Real*)Min)[ 0] > d00) ((Standard_Real*)Min) [ 0] = d00;
- if (((Standard_Real*)Max)[ 0] < d00) ((Standard_Real*)Max) [ 0] = d00;
- if (((Standard_Real*)Min)[ 1] > d01) ((Standard_Real*)Min) [ 1] = d01;
- if (((Standard_Real*)Max)[ 1] < d01) ((Standard_Real*)Max) [ 1] = d01;
- if (((Standard_Real*)Min)[ 2] > d02) ((Standard_Real*)Min) [ 2] = d02;
- if (((Standard_Real*)Max)[ 2] < d02) ((Standard_Real*)Max) [ 2] = d02;
- if (((Standard_Real*)Min)[ 3] > d03) ((Standard_Real*)Min) [ 3] = d03;
- if (((Standard_Real*)Max)[ 3] < d03) ((Standard_Real*)Max) [ 3] = d03;
- if (((Standard_Real*)Min)[ 4] > d04) ((Standard_Real*)Min) [ 4] = d04;
- if (((Standard_Real*)Max)[ 4] < d04) ((Standard_Real*)Max) [ 4] = d04;
- if (((Standard_Real*)Min)[ 5] > d05) ((Standard_Real*)Min) [ 5] = d05;
- if (((Standard_Real*)Max)[ 5] < d05) ((Standard_Real*)Max) [ 5] = d05;
- if (((Standard_Real*)Min)[ 6] > d06) ((Standard_Real*)Min) [ 6] = d06;
- if (((Standard_Real*)Max)[ 6] < d06) ((Standard_Real*)Max) [ 6] = d06;
- if (((Standard_Real*)Min)[ 7] > d07) ((Standard_Real*)Min) [ 7] = d07;
- if (((Standard_Real*)Max)[ 7] < d07) ((Standard_Real*)Max) [ 7] = d07;
- if (((Standard_Real*)Min)[ 8] > d08) ((Standard_Real*)Min) [ 8] = d08;
- if (((Standard_Real*)Max)[ 8] < d08) ((Standard_Real*)Max) [ 8] = d08;
- if (((Standard_Real*)Min)[ 9] > d09) ((Standard_Real*)Min) [ 9] = d09;
- if (((Standard_Real*)Max)[ 9] < d09) ((Standard_Real*)Max) [ 9] = d09;
- if (((Standard_Real*)Min)[10] > d10) ((Standard_Real*)Min) [10] = d10;
- if (((Standard_Real*)Max)[10] < d10) ((Standard_Real*)Max) [10] = d10;
- if (((Standard_Real*)Min)[11] > d11) ((Standard_Real*)Min) [11] = d11;
- if (((Standard_Real*)Max)[11] < d11) ((Standard_Real*)Max) [11] = d11;
- if (((Standard_Real*)Min)[12] > d12) ((Standard_Real*)Min) [12] = d12;
- if (((Standard_Real*)Max)[12] < d12) ((Standard_Real*)Max) [12] = d12;
- if (((Standard_Real*)Min)[13] > d13) ((Standard_Real*)Min) [13] = d13;
- if (((Standard_Real*)Max)[13] < d13) ((Standard_Real*)Max) [13] = d13;
- if (((Standard_Real*)Min)[14] > d14) ((Standard_Real*)Min) [14] = d14;
- if (((Standard_Real*)Max)[14] < d14) ((Standard_Real*)Max) [14] = d14;
- if (((Standard_Real*)Min)[15] > d15) ((Standard_Real*)Min) [15] = d15;
- if (((Standard_Real*)Max)[15] < d15) ((Standard_Real*)Max) [15] = d15;
+ Standard_Real d[16];
+ d[ 0] = cosu0 * x + sinu0 * y;
+ d[ 1] = sinu0 * x - cosu0 * y;
+ d[ 2] = cosu1 * x + sinu1 * y;
+ d[ 3] = sinu1 * x - cosu1 * y;
+ d[ 4] = cosu2 * x + sinu2 * y;
+ d[ 5] = sinu2 * x - cosu2 * y;
+ d[ 6] = cosu3 * x + sinu3 * y;
+ d[ 7] = sinu3 * x - cosu3 * y;
+ d[ 8] = cosu4 * x + sinu4 * y;
+ d[ 9] = sinu4 * x - cosu4 * y;
+ d[10] = cosu5 * x + sinu5 * y;
+ d[11] = sinu5 * x - cosu5 * y;
+ d[12] = cosu6 * x + sinu6 * y;
+ d[13] = sinu6 * x - cosu6 * y;
+ d[14] = z;
+ d[15] = z;
+
+ Standard_Integer i = 0;
+ while (i < 16)
+ {
+ if (((Standard_Real*)Min)[i] > d[i]) ((Standard_Real*)Min)[i] = d[i];
+ if (((Standard_Real*)Max)[i] < d[i]) ((Standard_Real*)Max)[i] = d[i];
+ i++;
+ }
}
//=======================================================================
//=======================================================================
void HLRAlgo::EnlargeMinMax (const Standard_Real tol,
- const Standard_Address Min,
- const Standard_Address Max)
+ const Standard_Address Min,
+ const Standard_Address Max)
{
- ((Standard_Real*)Min)[ 0] -= tol;
- ((Standard_Real*)Max)[ 0] += tol;
- ((Standard_Real*)Min)[ 1] -= tol;
- ((Standard_Real*)Max)[ 1] += tol;
- ((Standard_Real*)Min)[ 2] -= tol;
- ((Standard_Real*)Max)[ 2] += tol;
- ((Standard_Real*)Min)[ 3] -= tol;
- ((Standard_Real*)Max)[ 3] += tol;
- ((Standard_Real*)Min)[ 4] -= tol;
- ((Standard_Real*)Max)[ 4] += tol;
- ((Standard_Real*)Min)[ 5] -= tol;
- ((Standard_Real*)Max)[ 5] += tol;
- ((Standard_Real*)Min)[ 6] -= tol;
- ((Standard_Real*)Max)[ 6] += tol;
- ((Standard_Real*)Min)[ 7] -= tol;
- ((Standard_Real*)Max)[ 7] += tol;
- ((Standard_Real*)Min)[ 8] -= tol;
- ((Standard_Real*)Max)[ 8] += tol;
- ((Standard_Real*)Min)[ 9] -= tol;
- ((Standard_Real*)Max)[ 9] += tol;
- ((Standard_Real*)Min)[10] -= tol;
- ((Standard_Real*)Max)[10] += tol;
- ((Standard_Real*)Min)[11] -= tol;
- ((Standard_Real*)Max)[11] += tol;
- ((Standard_Real*)Min)[12] -= tol;
- ((Standard_Real*)Max)[12] += tol;
- ((Standard_Real*)Min)[13] -= tol;
- ((Standard_Real*)Max)[13] += tol;
- ((Standard_Real*)Min)[14] -= tol;
- ((Standard_Real*)Max)[14] += tol;
- ((Standard_Real*)Min)[15] -= tol;
- ((Standard_Real*)Max)[15] += tol;
+ Standard_Integer i = 0;
+ while (i < 16)
+ {
+ ((Standard_Real*)Min)[i] -= tol;
+ ((Standard_Real*)Max)[i] += tol;
+ i++;
+ }
}
//=======================================================================
//=======================================================================
void HLRAlgo::InitMinMax (const Standard_Real Big,
- const Standard_Address Min,
- const Standard_Address Max)
+ const Standard_Address Min,
+ const Standard_Address Max)
{
- ((Standard_Real*)Min)[ 0] =
- ((Standard_Real*)Min)[ 1] =
- ((Standard_Real*)Min)[ 2] =
- ((Standard_Real*)Min)[ 3] =
- ((Standard_Real*)Min)[ 4] =
- ((Standard_Real*)Min)[ 5] =
- ((Standard_Real*)Min)[ 6] =
- ((Standard_Real*)Min)[ 7] =
- ((Standard_Real*)Min)[ 8] =
- ((Standard_Real*)Min)[ 9] =
- ((Standard_Real*)Min)[10] =
- ((Standard_Real*)Min)[11] =
- ((Standard_Real*)Min)[12] =
- ((Standard_Real*)Min)[13] =
- ((Standard_Real*)Min)[14] =
- ((Standard_Real*)Min)[15] = Big;
- ((Standard_Real*)Max)[ 0] =
- ((Standard_Real*)Max)[ 1] =
- ((Standard_Real*)Max)[ 2] =
- ((Standard_Real*)Max)[ 3] =
- ((Standard_Real*)Max)[ 4] =
- ((Standard_Real*)Max)[ 5] =
- ((Standard_Real*)Max)[ 6] =
- ((Standard_Real*)Max)[ 7] =
- ((Standard_Real*)Max)[ 8] =
- ((Standard_Real*)Max)[ 9] =
- ((Standard_Real*)Max)[10] =
- ((Standard_Real*)Max)[11] =
- ((Standard_Real*)Max)[12] =
- ((Standard_Real*)Max)[13] =
- ((Standard_Real*)Max)[14] =
- ((Standard_Real*)Max)[15] = -Big;
+ Standard_Integer i = 0;
+ while (i < 16)
+ {
+ ((Standard_Real*)Min)[i] = Big;
+ ((Standard_Real*)Max)[i] = -Big;
+ i++;
+ }
}
//=======================================================================
//=======================================================================
void HLRAlgo::EncodeMinMax (const Standard_Address Min,
- const Standard_Address Max,
- const Standard_Address MM)
+ const Standard_Address Max,
+ const Standard_Address MM)
{
((Standard_Integer*)MM)[ 0] = ((Standard_Integer*)Min)[ 1]&0x00007fff;
((Standard_Integer*)MM)[ 8] = ((Standard_Integer*)Max)[ 1]&0x00007fff;
//purpose :
//=======================================================================
-Standard_Real HLRAlgo::SizeBox(const Standard_Address Min,
- const Standard_Address Max)
+Standard_Real HLRAlgo::SizeBox(const Standard_Address Min,
+ const Standard_Address Max)
{
- Standard_Real s;
- s = ((Standard_Integer *)Max)[ 0] - ((Standard_Integer *)Min)[ 0];
- s *= ((Standard_Integer *)Max)[ 1] - ((Standard_Integer *)Min)[ 1];
- s *= ((Standard_Integer *)Max)[ 2] - ((Standard_Integer *)Min)[ 2];
- s *= ((Standard_Integer *)Max)[ 3] - ((Standard_Integer *)Min)[ 3];
- s *= ((Standard_Integer *)Max)[ 4] - ((Standard_Integer *)Min)[ 4];
- s *= ((Standard_Integer *)Max)[ 5] - ((Standard_Integer *)Min)[ 5];
- s *= ((Standard_Integer *)Max)[ 6] - ((Standard_Integer *)Min)[ 6];
- s *= ((Standard_Integer *)Max)[ 7] - ((Standard_Integer *)Min)[ 7];
- s *= ((Standard_Integer *)Max)[ 8] - ((Standard_Integer *)Min)[ 8];
- s *= ((Standard_Integer *)Max)[ 9] - ((Standard_Integer *)Min)[ 9];
- s *= ((Standard_Integer *)Max)[10] - ((Standard_Integer *)Min)[10];
- s *= ((Standard_Integer *)Max)[11] - ((Standard_Integer *)Min)[11];
- s *= ((Standard_Integer *)Max)[12] - ((Standard_Integer *)Min)[12];
- s *= ((Standard_Integer *)Max)[13] - ((Standard_Integer *)Min)[13];
+ Standard_Real s = ((Standard_Integer *)Max)[0] - ((Standard_Integer *)Min)[0];
+ Standard_Integer i = 1;
+ while (i < 14)
+ {
+ s *= ((Standard_Integer *)Max)[i] - ((Standard_Integer *)Min)[i];
+ i++;
+ }
return s;
}
//=======================================================================
void HLRAlgo::DecodeMinMax (const Standard_Address MM,
- const Standard_Address Min,
- const Standard_Address Max)
+ const Standard_Address Min,
+ const Standard_Address Max)
{
((Standard_Integer*)Min)[ 0]=(((Standard_Integer*)MM)[ 0]&0x7fff0000)>>16;
((Standard_Integer*)Max)[ 0]=(((Standard_Integer*)MM)[ 8]&0x7fff0000)>>16;
//=======================================================================
void HLRAlgo::CopyMinMax (const Standard_Address IMin,
- const Standard_Address IMax,
- const Standard_Address OMin,
- const Standard_Address OMax)
+ const Standard_Address IMax,
+ const Standard_Address OMin,
+ const Standard_Address OMax)
{
- ((Standard_Integer*)OMin)[ 0]=((Standard_Integer*)IMin)[ 0];
- ((Standard_Integer*)OMax)[ 0]=((Standard_Integer*)IMax)[ 0];
- ((Standard_Integer*)OMin)[ 1]=((Standard_Integer*)IMin)[ 1];
- ((Standard_Integer*)OMax)[ 1]=((Standard_Integer*)IMax)[ 1];
- ((Standard_Integer*)OMin)[ 2]=((Standard_Integer*)IMin)[ 2];
- ((Standard_Integer*)OMax)[ 2]=((Standard_Integer*)IMax)[ 2];
- ((Standard_Integer*)OMin)[ 3]=((Standard_Integer*)IMin)[ 3];
- ((Standard_Integer*)OMax)[ 3]=((Standard_Integer*)IMax)[ 3];
- ((Standard_Integer*)OMin)[ 4]=((Standard_Integer*)IMin)[ 4];
- ((Standard_Integer*)OMax)[ 4]=((Standard_Integer*)IMax)[ 4];
- ((Standard_Integer*)OMin)[ 5]=((Standard_Integer*)IMin)[ 5];
- ((Standard_Integer*)OMax)[ 5]=((Standard_Integer*)IMax)[ 5];
- ((Standard_Integer*)OMin)[ 6]=((Standard_Integer*)IMin)[ 6];
- ((Standard_Integer*)OMax)[ 6]=((Standard_Integer*)IMax)[ 6];
- ((Standard_Integer*)OMin)[ 7]=((Standard_Integer*)IMin)[ 7];
- ((Standard_Integer*)OMax)[ 7]=((Standard_Integer*)IMax)[ 7];
- ((Standard_Integer*)OMin)[ 8]=((Standard_Integer*)IMin)[ 8];
- ((Standard_Integer*)OMax)[ 8]=((Standard_Integer*)IMax)[ 8];
- ((Standard_Integer*)OMin)[ 9]=((Standard_Integer*)IMin)[ 9];
- ((Standard_Integer*)OMax)[ 9]=((Standard_Integer*)IMax)[ 9];
- ((Standard_Integer*)OMin)[10]=((Standard_Integer*)IMin)[10];
- ((Standard_Integer*)OMax)[10]=((Standard_Integer*)IMax)[10];
- ((Standard_Integer*)OMin)[11]=((Standard_Integer*)IMin)[11];
- ((Standard_Integer*)OMax)[11]=((Standard_Integer*)IMax)[11];
- ((Standard_Integer*)OMin)[12]=((Standard_Integer*)IMin)[12];
- ((Standard_Integer*)OMax)[12]=((Standard_Integer*)IMax)[12];
- ((Standard_Integer*)OMin)[13]=((Standard_Integer*)IMin)[13];
- ((Standard_Integer*)OMax)[13]=((Standard_Integer*)IMax)[13];
- ((Standard_Integer*)OMin)[14]=((Standard_Integer*)IMin)[14];
- ((Standard_Integer*)OMax)[14]=((Standard_Integer*)IMax)[14];
- ((Standard_Integer*)OMin)[15]=((Standard_Integer*)IMin)[15];
- ((Standard_Integer*)OMax)[15]=((Standard_Integer*)IMax)[15];
+ Standard_Integer i = 0;
+ while (i < 16)
+ {
+ ((Standard_Integer*)OMin)[i]=((Standard_Integer*)IMin)[i];
+ ((Standard_Integer*)OMax)[i]=((Standard_Integer*)IMax)[i];
+ i++;
+ }
}
//=======================================================================
//=======================================================================
void HLRAlgo::AddMinMax (const Standard_Address IMin,
- const Standard_Address IMax,
- const Standard_Address OMin,
- const Standard_Address OMax)
+ const Standard_Address IMax,
+ const Standard_Address OMin,
+ const Standard_Address OMax)
{
- if (((Standard_Integer*)OMin)[ 0] > ((Standard_Integer*)IMin)[ 0])
- ((Standard_Integer*)OMin)[ 0]=((Standard_Integer*)IMin)[ 0];
- if (((Standard_Integer*)OMax)[ 0] < ((Standard_Integer*)IMax)[ 0])
- ((Standard_Integer*)OMax)[ 0]=((Standard_Integer*)IMax)[ 0];
- if (((Standard_Integer*)OMin)[ 1] > ((Standard_Integer*)IMin)[ 1])
- ((Standard_Integer*)OMin)[ 1]=((Standard_Integer*)IMin)[ 1];
- if (((Standard_Integer*)OMax)[ 1] < ((Standard_Integer*)IMax)[ 1])
- ((Standard_Integer*)OMax)[ 1]=((Standard_Integer*)IMax)[ 1];
- if (((Standard_Integer*)OMin)[ 2] > ((Standard_Integer*)IMin)[ 2])
- ((Standard_Integer*)OMin)[ 2]=((Standard_Integer*)IMin)[ 2];
- if (((Standard_Integer*)OMax)[ 2] < ((Standard_Integer*)IMax)[ 2])
- ((Standard_Integer*)OMax)[ 2]=((Standard_Integer*)IMax)[ 2];
- if (((Standard_Integer*)OMin)[ 3] > ((Standard_Integer*)IMin)[ 3])
- ((Standard_Integer*)OMin)[ 3]=((Standard_Integer*)IMin)[ 3];
- if (((Standard_Integer*)OMax)[ 3] < ((Standard_Integer*)IMax)[ 3])
- ((Standard_Integer*)OMax)[ 3]=((Standard_Integer*)IMax)[ 3];
- if (((Standard_Integer*)OMin)[ 4] > ((Standard_Integer*)IMin)[ 4])
- ((Standard_Integer*)OMin)[ 4]=((Standard_Integer*)IMin)[ 4];
- if (((Standard_Integer*)OMax)[ 4] < ((Standard_Integer*)IMax)[ 4])
- ((Standard_Integer*)OMax)[ 4]=((Standard_Integer*)IMax)[ 4];
- if (((Standard_Integer*)OMin)[ 5] > ((Standard_Integer*)IMin)[ 5])
- ((Standard_Integer*)OMin)[ 5]=((Standard_Integer*)IMin)[ 5];
- if (((Standard_Integer*)OMax)[ 5] < ((Standard_Integer*)IMax)[ 5])
- ((Standard_Integer*)OMax)[ 5]=((Standard_Integer*)IMax)[ 5];
- if (((Standard_Integer*)OMin)[ 6] > ((Standard_Integer*)IMin)[ 6])
- ((Standard_Integer*)OMin)[ 6]=((Standard_Integer*)IMin)[ 6];
- if (((Standard_Integer*)OMax)[ 6] < ((Standard_Integer*)IMax)[ 6])
- ((Standard_Integer*)OMax)[ 6]=((Standard_Integer*)IMax)[ 6];
- if (((Standard_Integer*)OMin)[ 7] > ((Standard_Integer*)IMin)[ 7])
- ((Standard_Integer*)OMin)[ 7]=((Standard_Integer*)IMin)[ 7];
- if (((Standard_Integer*)OMax)[ 7] < ((Standard_Integer*)IMax)[ 7])
- ((Standard_Integer*)OMax)[ 7]=((Standard_Integer*)IMax)[ 7];
- if (((Standard_Integer*)OMin)[ 8] > ((Standard_Integer*)IMin)[ 8])
- ((Standard_Integer*)OMin)[ 8]=((Standard_Integer*)IMin)[ 8];
- if (((Standard_Integer*)OMax)[ 8] < ((Standard_Integer*)IMax)[ 8])
- ((Standard_Integer*)OMax)[ 8]=((Standard_Integer*)IMax)[ 8];
- if (((Standard_Integer*)OMin)[ 9] > ((Standard_Integer*)IMin)[ 9])
- ((Standard_Integer*)OMin)[ 9]=((Standard_Integer*)IMin)[ 9];
- if (((Standard_Integer*)OMax)[ 9] < ((Standard_Integer*)IMax)[ 9])
- ((Standard_Integer*)OMax)[ 9]=((Standard_Integer*)IMax)[ 9];
- if (((Standard_Integer*)OMin)[10] > ((Standard_Integer*)IMin)[10])
- ((Standard_Integer*)OMin)[10]=((Standard_Integer*)IMin)[10];
- if (((Standard_Integer*)OMax)[10] < ((Standard_Integer*)IMax)[10])
- ((Standard_Integer*)OMax)[10]=((Standard_Integer*)IMax)[10];
- if (((Standard_Integer*)OMin)[11] > ((Standard_Integer*)IMin)[11])
- ((Standard_Integer*)OMin)[11]=((Standard_Integer*)IMin)[11];
- if (((Standard_Integer*)OMax)[11] < ((Standard_Integer*)IMax)[11])
- ((Standard_Integer*)OMax)[11]=((Standard_Integer*)IMax)[11];
- if (((Standard_Integer*)OMin)[12] > ((Standard_Integer*)IMin)[12])
- ((Standard_Integer*)OMin)[12]=((Standard_Integer*)IMin)[12];
- if (((Standard_Integer*)OMax)[12] < ((Standard_Integer*)IMax)[12])
- ((Standard_Integer*)OMax)[12]=((Standard_Integer*)IMax)[12];
- if (((Standard_Integer*)OMin)[13] > ((Standard_Integer*)IMin)[13])
- ((Standard_Integer*)OMin)[13]=((Standard_Integer*)IMin)[13];
- if (((Standard_Integer*)OMax)[13] < ((Standard_Integer*)IMax)[13])
- ((Standard_Integer*)OMax)[13]=((Standard_Integer*)IMax)[13];
- if (((Standard_Integer*)OMin)[14] > ((Standard_Integer*)IMin)[14])
- ((Standard_Integer*)OMin)[14]=((Standard_Integer*)IMin)[14];
- if (((Standard_Integer*)OMax)[14] < ((Standard_Integer*)IMax)[14])
- ((Standard_Integer*)OMax)[14]=((Standard_Integer*)IMax)[14];
- if (((Standard_Integer*)OMin)[15] > ((Standard_Integer*)IMin)[15])
- ((Standard_Integer*)OMin)[15]=((Standard_Integer*)IMin)[15];
- if (((Standard_Integer*)OMax)[15] < ((Standard_Integer*)IMax)[15])
- ((Standard_Integer*)OMax)[15]=((Standard_Integer*)IMax)[15];
+ Standard_Integer i = 0;
+ while (i < 16)
+ {
+ if (((Standard_Integer*)OMin)[i] > ((Standard_Integer*)IMin)[i])
+ ((Standard_Integer*)OMin)[i]=((Standard_Integer*)IMin)[i];
+ if (((Standard_Integer*)OMax)[i] < ((Standard_Integer*)IMax)[i])
+ ((Standard_Integer*)OMax)[i]=((Standard_Integer*)IMax)[i];
+ i++;
+ }
}
-
--- File: HLRAlgo_BiPoint.cdl
--- Created: Thu Jun 22 12:28:58 1995
--- Author: Christophe MARION
--- <cma@ecolox>
----Copyright: Matra Datavision 1995
+-- File: HLRAlgo_BiPoint.cdl
+-- Created: Thu Jun 22 12:28:58 1995
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1995
class BiPoint from HLRAlgo
-// File: HLRAlgo_BiPoint.cxx
-// Created: Thu Jun 22 12:31:58 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_BiPoint.cxx
+// Created: Thu Jun 22 12:31:58 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
SegFlags = flag;
Hidden(Standard_False);
}
-
-// File: HLRAlgo_BiPoint.lxx
-// Created: Thu Jun 22 12:35:03 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_BiPoint.lxx
+// Created: Thu Jun 22 12:35:03 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMskRg1Line ((Standard_Boolean)1)
#define EMskRgNLine ((Standard_Boolean)2)
inline Standard_Address HLRAlgo_BiPoint::Coordinates () const
{ return (Standard_Address)myCoordinates; }
-
--- File: Coincidence.cdl
--- Created: Thu Aug 20 18:06:13 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_Coincidence.cdl
+-- Created: Thu Aug 20 18:06:13 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class Coincidence from HLRAlgo
-// File: HLRAlgo_Coincidence.cxx
-// Created: Wed Feb 19 14:31:45 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_Coincidence.cxx
+// Created: Wed Feb 19 14:31:45 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_Coincidence.ixx>
//=======================================================================
HLRAlgo_Coincidence::HLRAlgo_Coincidence()
+ : myFE(0),
+ myParam(0.),
+ myStBef(TopAbs_IN),
+ myStAft(TopAbs_IN)
{
}
-
-// File: HLRAlgo_Coincidence.lxx
-// Created: Wed Feb 19 14:31:45 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_Coincidence.lxx
+// Created: Wed Feb 19 14:31:45 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : Set2D
stbef = myStBef;
staft = myStAft;
}
-
--- File: HLRAlgo_EdgeIterator.cdl
--- Created: Mon Jan 11 13:58:26 1993
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_EdgeIterator.cdl
+-- Created: Mon Jan 11 13:58:26 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class EdgeIterator from HLRAlgo
-// File: HLRAlgo_EdgeIterator.cxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_EdgeIterator.cxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
(iHid,myHidEnd,myHidTolEnd,B1,B2);
}
}
-
-// File: HLRAlgo_EdgeIterator.lxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_EdgeIterator.lxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_EdgeStatus.hxx>
((HLRAlgo_EdgeStatus*)EVis)->VisiblePart
(iVis,Start,TolStart,End,TolEnd);
}
-
--- File: EdgeStatus.cdl
--- Created: Tue Feb 18 10:36:07 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_EdgeStatus.cdl
+-- Created: Tue Feb 18 10:36:07 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class EdgeStatus from HLRAlgo
-// File: HLRAlgo_EdgeStatus.cxx
-// Created: Tue Feb 18 11:30:23 1992
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_EdgeStatus.cxx
+// Created: Tue Feb 18 11:30:23 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
if (!AllHidden()) AllHidden(myVisibles.NbIntervals() == 0);
}
}
-
-// File: HLRAlgo_EdgeStatus.lxx
-// Created: Tue Feb 18 11:30:12 1992
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_EdgeStatus.lxx
+// Created: Tue Feb 18 11:30:12 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMaskAllHidden ((Standard_Boolean)1)
#define EMaskAllVisible ((Standard_Boolean)2)
if (B) myFlags |= EMaskAllVisible;
else myFlags &= ~EMaskAllVisible;
}
-
--- File: HLRAlgo_EdgesBlock.cdl
--- Created: Mon Apr 6 17:57:45 1992
--- Author: Christophe MARION
--- <cma@sdsun2>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_EdgesBlock.cdl
+-- Created: Mon Apr 6 17:57:45 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class EdgesBlock from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_EdgesBlock.cxx
-// Created: Fri Mar 27 17:08:48 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_EdgesBlock.cxx
+// Created: Fri Mar 27 17:08:48 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
for (Standard_Integer i = 0; i <= 15; i++)
myMinMax[i] = ((Standard_Integer*)TotMinMax)[i];
}
-
-// File: HLRAlgo_EdgesBlock.lxx
-// Created: Thu Apr 20 11:31:26 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_EdgesBlock.lxx
+// Created: Thu Apr 20 11:31:26 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMaskOrient ((Standard_Boolean)15)
#define EMaskOutLine ((Standard_Boolean)16)
inline Standard_Address HLRAlgo_EdgesBlock::MinMax () const
{ return (Standard_Address)&myMinMax; }
-
--- File: Intersection.cdl
--- Created: Fri Aug 21 10:41:54 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_Intersection.cdl
+-- Created: Fri Aug 21 10:41:54 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class Intersection from HLRAlgo
-// File: HLRAlgo_Intersection.cxx
-// Created: Wed Feb 19 14:22:05 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_Intersection.cxx
+// Created: Wed Feb 19 14:22:05 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_Intersection.ixx>
myToler(Tol),
myState(S)
{}
-
-// File: HLRAlgo_Intersection.lxx
-// Created: Wed Feb 19 14:21:57 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_Intersection.lxx
+// Created: Wed Feb 19 14:21:57 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : Orientation
inline TopAbs_State HLRAlgo_Intersection::State() const
{ return myState; }
-
--- File: HLRAlgo_PolyAlgo.cdl
--- Created: Tue Feb 18 10:36:07 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_PolyAlgo.cdl
+-- Created: Tue Feb 18 10:36:07 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class PolyAlgo from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_PolyAlgo.cxx
-// Created: Fri May 5 15:58:19 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyAlgo.cxx
+// Created: Fri May 5 15:58:19 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
//#define No_Exception
#endif
Standard_Real X1,X2,X3,Y1,Y2,Y3,Z1,Z2,Z3;
Standard_Real dn,dnx,dny,dnz,dx1,dy1,dz1,dx2,dy2,dz2,dx3,dy3;
Standard_Real adx1,ady1,adx2,ady2,adx3,ady3;
-#ifndef DEB
Standard_Real a =0.,b =0.,c =0.,d =0.;
-#else
- Standard_Real a,b,c,d;
-#endif
const Standard_Address PolyTIndices = (*pd)->Indices();
TColgp_Array1OfXYZ & Nodes = (*pd)->Nodes();
HLRAlgo_Array1OfTData& TData = (*pd)->TData();
-// File: HLRAlgo_PolyAlgo.lxx
-// Created: Tue Jun 20 11:50:07 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyAlgo.lxx
+// Created: Tue Jun 20 11:50:07 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TColStd_HArray1OfTransient.hxx>
--- File: HLRAlgo_PolyData.cdl
--- Created: Fri Oct 29 15:19:08 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_PolyData.cdl
+-- Created: Fri Oct 29 15:19:08 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class PolyData from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_PolyData.cxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_PolyData.cxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
//#define No_Exception
#endif
else status.Hide(psta,(Standard_ShortReal)TolParam,pend,(Standard_ShortReal)TolParam,
Standard_False,Standard_False);
}
-
-
-// File: HLRAlgo_PolyData.lxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_PolyData.lxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TColgp_HArray1OfXYZ.hxx>
#include <HLRAlgo_HArray1OfTData.hxx>
inline Standard_Address HLRAlgo_PolyData::Indices ()
{ return (Standard_Address)myIndices; }
-
--- File: HLRAlgo_PolyHidingData.cdl
--- Created: Fri Oct 29 15:19:08 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_PolyHidingData.cdl
+-- Created: Fri Oct 29 15:19:08 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class PolyHidingData from HLRAlgo
-// File: HLRAlgo_PolyHidingData.cxx
-// Created: Wed Jun 21 19:23:39 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyHidingData.cxx
+// Created: Wed Jun 21 19:23:39 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_PolyHidingData.ixx>
-
-// File: HLRAlgo_PolyHidingData.lxx
-// Created: Wed Jun 21 19:29:59 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyHidingData.lxx
+// Created: Wed Jun 21 19:29:59 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : PolyHidingData
inline Standard_Address
HLRAlgo_PolyHidingData::Plan() const
{ return (Standard_Address)myPlan; }
-
--- File: HLRAlgo_PolyInternalData.cdl
--- Created: Fri Oct 29 15:19:08 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_PolyInternalData.cdl
+-- Created: Fri Oct 29 15:19:08 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class PolyInternalData from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_PolyInternalData.cxx
-// Created: Tue Jul 11 16:59:46 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyInternalData.cxx
+// Created: Tue Jul 11 16:59:46 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <Standard_Stream.hxx>
#include <HLRAlgo_PolyInternalData.ixx>
}
myNbPINod++;
}
-
-// File: HLRAlgo_PolyInternalData.lxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_PolyInternalData.lxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfBoolean.hxx>
inline HLRAlgo_Array1OfPISeg &
HLRAlgo_PolyInternalData::PISeg () const
{ return myPISeg->ChangeArray1(); }
-
--- File: HLRAlgo_PolyInternalNode.cdl
--- Created: Fri Jan 10 22:23:38 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRAlgo_PolyInternalNode.cdl
+-- Created: Fri Jan 10 22:23:38 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class PolyInternalNode from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_PolyInternalNode.cxx
-// Created: Fri Jan 10 22:25:33 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRAlgo_PolyInternalNode.cxx
+// Created: Fri Jan 10 22:25:33 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_PolyInternalNode.ixx>
-// File: HLRAlgo_PolyInternalNode.lxx
-// Created: Fri Jan 10 22:25:51 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRAlgo_PolyInternalNode.lxx
+// Created: Fri Jan 10 22:25:51 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : HLRAlgo_PolyInternalNode
inline Standard_Address HLRAlgo_PolyInternalNode::RValues () const
{ return (Standard_Address)myRValues; }
-
--- File: HLRAlgo_PolyInternalSegment.cdl
--- Created: Tue Dec 3 17:00:57 1996
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1996
+-- File: HLRAlgo_PolyInternalSegment.cdl
+-- Created: Tue Dec 3 17:00:57 1996
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1996
class PolyInternalSegment from HLRAlgo
-// File: HLRAlgo_PolyInternalSegment.cxx
-// Created: Tue Dec 3 17:23:48 1996
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRAlgo_PolyInternalSegment.cxx
+// Created: Tue Dec 3 17:23:48 1996
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_PolyInternalSegment.ixx>
-
-// File: HLRAlgo_PolyInternalSegment.lxx
-// Created: Tue Dec 3 17:09:42 1996
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRAlgo_PolyInternalSegment.lxx
+// Created: Tue Dec 3 17:09:42 1996
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : HLRAlgo_PolyInternalSegment
inline Standard_Address HLRAlgo_PolyInternalSegment::Indices () const
{ return (Standard_Address)myIndices; }
-
--- File: HLRAlgo_PolyShellData.cdl
--- Created: Fri Oct 29 15:19:08 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_PolyShellData.cdl
+-- Created: Fri Oct 29 15:19:08 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class PolyShellData from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_PolyShellData.cxx
-// Created: Fri May 5 15:58:19 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyShellData.cxx
+// Created: Fri May 5 15:58:19 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
//#define No_Exception
#endif
myHPolHi = new TColStd_HArray1OfTransient(1,nbHiding);
else myHPolHi.Nullify();
}
-
-// File: HLRAlgo_PolyShellData.lxx
-// Created: Fri May 5 15:58:19 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_PolyShellData.lxx
+// Created: Fri May 5 15:58:19 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TColStd_HArray1OfTransient.hxx>
inline Standard_Address HLRAlgo_PolyShellData::Indices ()
{ return (Standard_Address)myMinMax; }
-
--- File: HLRAlgo_Projector.cdl
--- Created: Thu Mar 12 13:32:28 1992
--- Author: Christophe MARION
--- <cma@sdsun2>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_Projector.cdl
+-- Created: Thu Mar 12 13:32:28 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class Projector from HLRAlgo
---Purpose: Implements a projector object.
-// File: HLRAlgo_Projector.cxx
-// Created: Fri Mar 13 11:08:32 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_Projector.cxx
+// Created: Fri Mar 13 11:08:32 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
// #define No_Exception
#endif
-// File: HLRAlgo_Projector.lxx
-// Created: Thu Jul 9 12:50:25 1992
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_Projector.lxx
+// Created: Thu Jul 9 12:50:25 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <Standard_NoSuchObject.hxx>
#include <gp_Vec.hxx>
inline void HLRAlgo_Projector::Transform (gp_Pnt& Pnt) const
{ Pnt.Transform(myTrsf); }
-
--- File: HLRAlgo_TriangleData.cdl
--- Created: Fri Oct 29 15:19:08 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRAlgo_TriangleData.cdl
+-- Created: Fri Oct 29 15:19:08 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class TriangleData from HLRAlgo
-// File: HLRAlgo_TriangleData.cxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_TriangleData.cxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_TriangleData.ixx>
-
-// File: HLRAlgo_TriangleData.lxx
-// Created: Mon Jan 11 13:58:26 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRAlgo_TriangleData.lxx
+// Created: Mon Jan 11 13:58:26 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : TriangleData
inline Standard_Address HLRAlgo_TriangleData::Indices () const
{ return (Standard_Address)myIndices; }
-
--- File: HLRAlgo_WiresBlock.cdl
--- Created: Mon Apr 6 17:56:12 1992
--- Author: Christophe MARION
--- <cma@sdsun2>
----Copyright: Matra Datavision 1992
+-- File: HLRAlgo_WiresBlock.cdl
+-- Created: Mon Apr 6 17:56:12 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class WiresBlock from HLRAlgo inherits TShared from MMgt
-// File: HLRAlgo_WiresBlock.cxx
-// Created: Fri Mar 27 17:08:48 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRAlgo_WiresBlock.cxx
+// Created: Fri Mar 27 17:08:48 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
for (Standard_Integer i = 0; i <= 15; i++)
myMinMax[i] = ((Standard_Integer*)TotMinMax)[i];
}
-
-// File: HLRAlgo_WiresBlock.lxx
-// Created: Tue Sep 5 15:11:36 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRAlgo_WiresBlock.lxx
+// Created: Tue Sep 5 15:11:36 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : MinMax
inline Standard_Address HLRAlgo_WiresBlock::MinMax () const
{ return (Standard_Address)&myMinMax; }
-
--- File: HLRBRep.cdl
--- Created: Wed Oct 14 11:08:52 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRBRep.cdl
+-- Created: Wed Oct 14 11:08:52 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
package HLRBRep
---Purpose: Hidden Lines Removal
-// File: HLRBRep.cxx
-// Created: Thu Aug 27 12:33:14 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep.cxx
+// Created: Thu Aug 27 12:33:14 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep.ixx>
#include <BRepLib_MakeEdge2d.hxx>
(HAngMax - HAngLim) / (HAngMax - HAngMin));
OutDefl = OutAngl * OutAngl * 0.5;
}
-
--- File: HLRBRep_Algo.cdl
--- Created: Wed Aug 3 16:15:26 1994
--- Author: Christophe MARION
--- <cma@ecolox>
----Copyright: Matra Datavision 1994
+-- File: HLRBRep_Algo.cdl
+-- Created: Wed Aug 3 16:15:26 1994
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1994
class Algo from HLRBRep inherits InternalAlgo from HLRBRep
-// File: HLRBRep_Algo.cxx
-// Created: Thu Aug 4 10:18:44 1994
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRBRep_Algo.cxx
+// Created: Thu Aug 4 10:18:44 1994
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define No_Standard_OutOfRange
ShapeBounds(i).Shape()->DataStructure().Clear();
}
}
-
--- File: HLRBRep_AreaLimit.cdl
--- Created: Thu Apr 17 20:21:04 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_AreaLimit.cdl
+-- Created: Thu Apr 17 20:21:04 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class AreaLimit from HLRBRep inherits TShared from MMgt
myNext : AreaLimit from HLRBRep;
end AreaLimit;
-
-// File: HLRBRep_AreaLimit.cxx
-// Created: Thu Apr 17 21:43:21 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
-
+// File: HLRBRep_AreaLimit.cxx
+// Created: Thu Apr 17 21:43:21 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_AreaLimit.ixx>
myPrevious.Nullify();
myNext.Nullify();
}
-
--- File: HLRBRep_BCurveTool.cdl
--- Created: Mon Jul 17 16:25:23 1995
--- Author: Modelistation
--- <model@mastox>
----Copyright: Matra Datavision 1995
+-- File: HLRBRep_BCurveTool.cdl
+-- Created: Mon Jul 17 16:25:23 1995
+-- Author: Modelistation
+---Copyright: Matra Datavision 1995
class BCurveTool from HLRBRep
-// File: HLRBRep_BCurveTool.cxx
-// Created: Mon Jul 17 17:39:39 1995
-// Author: Modelistation
-// <model@mastox>
+// File: HLRBRep_BCurveTool.cxx
+// Created: Mon Jul 17 17:39:39 1995
+// Author: Modelistation
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_BCurveTool.ixx>
#include <GeomAbs_CurveType.hxx>
Handle(Geom_BSplineCurve)
HLRBRep_BCurveTool::BSpline (const BRepAdaptor_Curve& C)
{ return(C.BSpline()); }
-
-// File: HLRBRep_BCurveTool.lxx
-// Created: Thu Oct 22 12:14:59 1992
-// Author: Laurent BUCHARD
-// <lbr@sdsun2>
+// File: HLRBRep_BCurveTool.lxx
+// Created: Thu Oct 22 12:14:59 1992
+// Author: Laurent BUCHARD
+// Copyright: OPEN CASCADE 2000
#include <GeomAbs_CurveType.hxx>
#include <GeomAbs_Shape.hxx>
inline Standard_Integer
HLRBRep_BCurveTool::NbKnots(const BRepAdaptor_Curve& C)
{ return(C.NbKnots()); }
-
--- File: HLRBRep_BSurfaceTool.cdl
--- Created: Fri Jul 2 16:59:47 1993
--- Author: Laurent BUCHARD
--- <lbr@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_BSurfaceTool.cdl
+-- Created: Fri Jul 2 16:59:47 1993
+-- Author: Laurent BUCHARD
+---Copyright: Matra Datavision 1993
class BSurfaceTool from HLRBRep
-//-- File : HLRBRep_BSurfaceTool.cxx
-//-- Created : Wed Jui 7 18:00:00 1993
-//-- Author : Laurent BUCHARD
-//-- <lbr@nonox>
-//-- Copyright: Matra Datavision 1993
+// File: HLRBRep_BSurfaceTool.cxx
+// Created: Wed Jui 7 18:00:00 1993
+// Author: Laurent BUCHARD
+// Copyright: Matra Datavision 1993
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_BSurfaceTool.ixx>
#include <BRepAdaptor_Surface.hxx>
}
return(n);
}
-
-//-- File : HLRBRep_BSurfaceTool.lxx
-//-- Created : Wed Jui 7 18:00:00 1993
-//-- Author : Laurent BUCHARD
-//-- <lbr@nonox>
-//-- Copyright: Matra Datavision 1993
+// File: HLRBRep_BSurfaceTool.lxx
+// Created: Wed Jui 7 18:00:00 1993
+// Author: Laurent BUCHARD
+// Copyright: Matra Datavision 1993
+// Copyright: OPEN CASCADE 2000
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
inline Standard_Boolean
HLRBRep_BSurfaceTool::IsVRational(const BRepAdaptor_Surface& S)
{ return(S.IsVRational()); }
-
--- File: HLRBRep_BiPnt2D.cdl
--- Created: Fri Aug 21 17:10:30 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRBRep_BiPnt2D.cdl
+-- Created: Fri Aug 21 17:10:30 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class BiPnt2D from HLRBRep
-// File: HLRBRep_BiPnt2D.cxx
-// Created: Tue Aug 25 10:43:05 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_BiPnt2D.cxx
+// Created: Tue Aug 25 10:43:05 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_BiPnt2D.ixx>
OutLine(outl);
IntLine(intl);
}
-
-// File: HLRBRep_BiPnt2D.lxx
-// Created: Tue Aug 25 10:43:05 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_BiPnt2D.lxx
+// Created: Tue Aug 25 10:43:05 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMskRg1Line ((Standard_Boolean)1)
#define EMskRgNLine ((Standard_Boolean)2)
if (B) myFlags |= EMskIntLine;
else myFlags &= ~EMskIntLine;
}
-
--- File: HLRBRep_BiPoint.cdl
--- Created: Fri Aug 21 17:10:30 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRBRep_BiPoint.cdl
+-- Created: Fri Aug 21 17:10:30 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class BiPoint from HLRBRep
-// File: HLRBRep_BiPoint.cxx
-// Created: Tue Aug 25 10:43:05 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_BiPoint.cxx
+// Created: Tue Aug 25 10:43:05 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_BiPoint.ixx>
OutLine(outl);
IntLine(intl);
}
-
-// File: HLRBRep_BiPoint.lxx
-// Created: Tue Aug 25 10:43:05 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_BiPoint.lxx
+// Created: Tue Aug 25 10:43:05 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMskRg1Line ((Standard_Boolean)1)
#define EMskRgNLine ((Standard_Boolean)2)
if (B) myFlags |= EMskIntLine;
else myFlags &= ~EMskIntLine;
}
-
--- File: HLRBRep_CLPropsATool.cdl
--- Created: Tue Apr 20 18:34:23 1993
--- Author: Modelistation
--- <model@phylox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_CLPropsATool.cdl
+-- Created: Tue Apr 20 18:34:23 1993
+-- Author: Modelistation
+---Copyright: Matra Datavision 1993
class CLPropsATool from HLRBRep
---C++: inline
end CLPropsATool;
-
-// File: HLRBRep_CLPropsTool.cxx
-// Created: Tue Aug 18 15:40:26 1992
-// Author: Herve LEGRAND
-// <hl@bravox>
+// File: HLRBRep_CLPropsTool.cxx
+// Created: Tue Aug 18 15:40:26 1992
+// Author: Herve LEGRAND
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_CLPropsATool.ixx>
-// File: HLRBRep_CLPropsATool.lxx
-// Created: Tue Aug 18 15:40:26 1992
-// Author: Herve LEGRAND
-// <hl@bravox>
+// File: HLRBRep_CLPropsATool.lxx
+// Created: Tue Aug 18 15:40:26 1992
+// Author: Herve LEGRAND
+// Copyright: OPEN CASCADE 2000
#include <Standard_NotImplemented.hxx>
#include <HLRBRep_Curve.hxx>
inline Standard_Real HLRBRep_CLPropsATool::LastParameter
(const Standard_Address A)
{ return ((HLRBRep_Curve*)A)->LastParameter(); }
-
--- File: HLRBRep_Curve.cdl
--- Created: Thu Apr 1 15:09:20 1993
--- Author: Modelistation
--- <model@phylox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_Curve.cdl
+-- Created: Thu Apr 1 15:09:20 1993
+-- Author: Modelistation
+---Copyright: Matra Datavision 1993
class Curve from HLRBRep
-// File: HLRBRep_Curve.gxx
-// Created: Fri Mar 13 11:08:32 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_Curve.cxx
+// Created: Fri Mar 13 11:08:32 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_Curve.ixx>
#include <gp.hxx>
#include <Handle_Geom_BSplineCurve.hxx>
#include <Handle_Geom_BezierCurve.hxx>
-#define OCC155 // jfa 05.03.2002 // bad vectors projection
+//OCC155 // jfa 05.03.2002 // bad vectors projection
//=======================================================================
//function : HLRBRep_Curve
Standard_Real
HLRBRep_Curve::Parameter2d (const Standard_Real P3d) const
{
-
// Mathematical formula for lines
// myOF P3d (myOF myVX - myOZ myVX + myOX myVZ)
- // P2d -> --------------------------------------------
+ // Res -> --------------------------------------------
// (-myOF + myOZ) (-myOF + myOZ + P3d myVZ)
- Standard_Real P2d;
if (myType == GeomAbs_Line) {
if (((HLRAlgo_Projector*) myProj)->Perspective()) {
- Standard_Real FmOZ = myOF - myOZ;
- P2d = myOF * P3d * (myVX * FmOZ + myOX * myVZ) /
- (FmOZ * (FmOZ - P3d * myVZ));
+ const Standard_Real FmOZ = myOF - myOZ;
+ return myOF * P3d * (myVX * FmOZ + myOX * myVZ) / (FmOZ * (FmOZ - P3d * myVZ));
}
- else P2d = P3d * myVX;
+ return P3d * myVX;
}
else if (myType == GeomAbs_Ellipse) {
- P2d = P3d + myOX;
+ return P3d + myOX;
}
- else P2d = P3d;
- return P2d;
+ return P3d;
}
//=======================================================================
Standard_Real
HLRBRep_Curve::Parameter3d (const Standard_Real P2d) const
{
-
// Mathematical formula for lines
// 2
// P3d -> -----------------------------------------------------
// (myOF - myOZ) (myOF myVX + P2d myVZ) + myOF myOX myVZ
- Standard_Real P3d;
if (myType == GeomAbs_Line) {
if (((HLRAlgo_Projector*) myProj)->Perspective()) {
- Standard_Real FmOZ = myOF - myOZ;
- P3d = P2d * FmOZ * FmOZ /
- (FmOZ * (myOF * myVX + P2d * myVZ) + myOF * myOX * myVZ);
+ const Standard_Real FmOZ = myOF - myOZ;
+ return P2d * FmOZ * FmOZ / (FmOZ * (myOF * myVX + P2d * myVZ) + myOF * myOX * myVZ);
}
- else P3d = P2d / myVX;
+ return P2d / myVX;
}
else if (myType == GeomAbs_Ellipse) {
- P3d = P2d - myOX;
+ return P2d - myOX;
}
- else P3d = P2d;
- return P3d;
+ return P2d;
}
//=======================================================================
//=======================================================================
Standard_Real HLRBRep_Curve::Update (const Standard_Address TotMin,
- const Standard_Address TotMax)
+ const Standard_Address TotMax)
{
GeomAbs_CurveType typ = HLRBRep_BCurveTool::GetType(myCurve);
myType = GeomAbs_OtherCurve;
gp_Dir D1 = HLRBRep_BCurveTool::Circle(myCurve).Axis().Direction();
D1.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
if (D1.IsParallel(gp::DZ(),Precision::Angular()))
- myType = GeomAbs_Circle;
+ myType = GeomAbs_Circle;
else if (Abs(D1.Dot(gp::DZ())) < Precision::Angular()*10) //*10: The minor radius of ellipse should not be too small.
- myType = GeomAbs_OtherCurve;
+ myType = GeomAbs_OtherCurve;
else {
- myType = GeomAbs_Ellipse;
- // compute the angle offset
- gp_Dir D3 = D1.Crossed(gp::DZ());
- gp_Dir D2 = HLRBRep_BCurveTool::Circle(myCurve).XAxis().Direction();
- D2.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
- myOX = D3.AngleWithRef(D2,D1);
+ myType = GeomAbs_Ellipse;
+ // compute the angle offset
+ gp_Dir D3 = D1.Crossed(gp::DZ());
+ gp_Dir D2 = HLRBRep_BCurveTool::Circle(myCurve).XAxis().Direction();
+ D2.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
+ myOX = D3.AngleWithRef(D2,D1);
}
}
break;
gp_Dir D1 = HLRBRep_BCurveTool::Ellipse(myCurve).Axis().Direction();
D1.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
if (D1.IsParallel(gp::DZ(),Precision::Angular())) {
- myOX = 0.; // no offset on the angle
- myType = GeomAbs_Ellipse;
+ myOX = 0.; // no offset on the angle
+ myType = GeomAbs_Ellipse;
}
}
break;
Standard_Integer nbPnt = 30;
Standard_Integer i;
Standard_Real step = (b-a)/(nbPnt+1);
-#ifndef DEB
Standard_Real xa,ya,za,xb =0.,yb =0.,zb =0.;
-#else
- Standard_Real xa,ya,za,xb,yb,zb;
-#endif
Standard_Real dx1,dy1,dz1,dd1;
Standard_Real dx2,dy2,dz2,dd2;
xb = x ; yb = y ; zb = z ;
((HLRAlgo_Projector*) myProj)->Project(Value3D(a),x,y,z);
HLRAlgo::UpdateMinMax(x,y,z,TotMin,TotMax);
- if (i >= 2) {
- dx1 = x - xa; dy1 = y - ya; dz1 = z - za;
- dd1 = sqrt (dx1 * dx1 + dy1 * dy1 + dz1 * dz1);
- if (dd1 > 0) {
- dx2 = xb - xa; dy2 = yb - ya; dz2 = zb - za;
- dd2 = sqrt (dx2 * dx2 + dy2 * dy2 + dz2 * dz2);
- if (dd2 > 0) {
- Standard_Real p = (dx1 * dx2 + dy1 * dy2 + dz1 * dz2) / (dd1 * dd2);
- dx1 = xa + p * dx1 - xb;
- dy1 = ya + p * dy1 - yb;
- dz1 = za + p * dz1 - zb;
- dd1 = sqrt (dx1 * dx1 + dy1 * dy1 + dz1 * dz1);
- if (dd1 > tolMinMax) tolMinMax = dd1;
- }
- }
+ if (i >= 2) {
+ dx1 = x - xa; dy1 = y - ya; dz1 = z - za;
+ dd1 = sqrt (dx1 * dx1 + dy1 * dy1 + dz1 * dz1);
+ if (dd1 > 0) {
+ dx2 = xb - xa; dy2 = yb - ya; dz2 = zb - za;
+ dd2 = sqrt (dx2 * dx2 + dy2 * dy2 + dz2 * dz2);
+ if (dd2 > 0) {
+ Standard_Real p = (dx1 * dx2 + dy1 * dy2 + dz1 * dz2) / (dd1 * dd2);
+ dx1 = xa + p * dx1 - xb;
+ dy1 = ya + p * dy1 - yb;
+ dz1 = za + p * dz1 - zb;
+ dd1 = sqrt (dx1 * dx1 + dy1 * dy1 + dz1 * dz1);
+ if (dd1 > tolMinMax) tolMinMax = dd1;
+ }
+ }
}
}
}
//=======================================================================
void HLRBRep_Curve::Tangent (const Standard_Boolean AtStart,
- gp_Pnt2d& P,
- gp_Dir2d& D) const
+ gp_Pnt2d& P, gp_Dir2d& D) const
{
- Standard_Real U;
- if (AtStart) U = HLRBRep_BCurveTool::FirstParameter(myCurve);
- else U = HLRBRep_BCurveTool::LastParameter (myCurve);
+ Standard_Real U = AtStart? HLRBRep_BCurveTool::FirstParameter(myCurve) :
+ HLRBRep_BCurveTool::LastParameter (myCurve);
D0(U,P);
HLRBRep_CLProps CLP(2,Epsilon(1.));
void HLRBRep_Curve::D0 (const Standard_Real U, gp_Pnt2d& P) const
{
-#if 0
- gp_Pnt P3d;
+ /* gp_Pnt P3d;
HLRBRep_BCurveTool::D0(myCurve,U,P3d);
P3d.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
if (((HLRAlgo_Projector*) myProj)->Perspective()) {
Standard_Real R = 1.-P3d.Z()/((HLRAlgo_Projector*) myProj)->Focus();
P.SetCoord(P3d.X()/R,P3d.Y()/R);
}
- else P.SetCoord(P3d.X(),P3d.Y());
-#else
+ else P.SetCoord(P3d.X(),P3d.Y()); */
gp_Pnt P3d;
HLRBRep_BCurveTool::D0(myCurve,U,P3d);
((HLRAlgo_Projector*) myProj)->Project(P3d,P);
-#endif
}
//=======================================================================
//=======================================================================
void HLRBRep_Curve::D1 (const Standard_Real U,
- gp_Pnt2d& P,
- gp_Vec2d& V) const
+ gp_Pnt2d& P, gp_Vec2d& V) const
{
-
// Mathematical formula for lines
// X'[t] X[t] Z'[t]
// 1 - ---- f (1 - ----)
// f f
-#if 0
- gp_Pnt P3D;
+ /* gp_Pnt P3D;
gp_Vec V13D;
HLRBRep_BCurveTool::D1(myCurve,U,P3D,V13D);
P3D .Transform(((HLRAlgo_Projector*) myProj)->Transformation());
else {
P.SetCoord(P3D .X(),P3D .Y());
V.SetCoord(V13D.X(),V13D.Y());
- }
-#else
+ } */
gp_Pnt P3D;
gp_Vec V13D;
HLRBRep_BCurveTool::D1(myCurve,U,P3D,V13D);
V.SetCoord(V13D.X()/R + P3D.X()*e, V13D.Y()/R + P3D.Y()*e);
}
else {
-#ifdef OCC155
+ //OCC155
((HLRAlgo_Projector*) myProj)->Project(P3D,V13D,P,V);
-#else
- ((HLRAlgo_Projector*) myProj)->Project(P3D,P);
+ /* ((HLRAlgo_Projector*) myProj)->Project(P3D,P);
gp_Pnt2d opop;
gp_Pnt uiui(V13D.X(),V13D.Y(),V13D.Z());
((HLRAlgo_Projector*) myProj)->Project(uiui,opop);
- V.SetCoord(opop.X(),opop.Y());
-#endif
+ V.SetCoord(opop.X(),opop.Y()); */
}
-#endif
}
//=======================================================================
//=======================================================================
void HLRBRep_Curve::D2 (const Standard_Real U,
- gp_Pnt2d& P,
- gp_Vec2d& V1,
- gp_Vec2d& V2) const
+ gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const
{
-
// Mathematical formula for lines
// 2
//=======================================================================
void HLRBRep_Curve::D3 (const Standard_Real,
- gp_Pnt2d&,
- gp_Vec2d&,
- gp_Vec2d&,
- gp_Vec2d&) const
+ gp_Pnt2d&, gp_Vec2d&, gp_Vec2d&, gp_Vec2d&) const
{
}
//purpose :
//=======================================================================
-gp_Vec2d HLRBRep_Curve::DN (const Standard_Real,
- const Standard_Integer) const
+gp_Vec2d HLRBRep_Curve::DN (const Standard_Real, const Standard_Integer) const
{ return gp_Vec2d(); }
//=======================================================================
gp_Elips2d HLRBRep_Curve::Ellipse () const
{
- GeomAbs_CurveType typ = HLRBRep_BCurveTool::GetType(myCurve);
- if (typ == GeomAbs_Ellipse) {
+ if (HLRBRep_BCurveTool::GetType(myCurve) == GeomAbs_Ellipse) {
gp_Elips E = HLRBRep_BCurveTool::Ellipse(myCurve);
E.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
return ProjLib::Project(gp_Pln(gp::XOY()),E);
}
- else { // this is a circle
- gp_Circ C = HLRBRep_BCurveTool::Circle(myCurve);
- C.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
- const gp_Dir& D1 = C.Axis().Direction();
- const gp_Dir& D3 = D1.Crossed(gp::DZ());
- const gp_Dir& D2 = D1.Crossed(D3);
- Standard_Real rap = sqrt( D2.X()*D2.X() + D2.Y()*D2.Y() );
- gp_Dir2d d(D1.Y(),-D1.X());
- gp_Pnt2d p(C.Location().X(),C.Location().Y());
- gp_Elips2d El(gp_Ax2d(p,d),C.Radius(),C.Radius()*rap);
- if ( D1.Z() < 0 ) El.Reverse();
- return El;
- }
+ // this is a circle
+ gp_Circ C = HLRBRep_BCurveTool::Circle(myCurve);
+ C.Transform(((HLRAlgo_Projector*) myProj)->Transformation());
+ const gp_Dir& D1 = C.Axis().Direction();
+ const gp_Dir& D3 = D1.Crossed(gp::DZ());
+ const gp_Dir& D2 = D1.Crossed(D3);
+ Standard_Real rap = sqrt( D2.X()*D2.X() + D2.Y()*D2.Y() );
+ gp_Dir2d d(D1.Y(),-D1.X());
+ gp_Pnt2d p(C.Location().X(),C.Location().Y());
+ gp_Elips2d El(gp_Ax2d(p,d),C.Radius(),C.Radius()*rap);
+ if ( D1.Z() < 0 ) El.Reverse();
+ return El;
}
//=======================================================================
}
}
-
//=======================================================================
//function : Knots
//purpose :
}
}
-
//=======================================================================
//function : Multiplicities
//purpose :
HB->Multiplicities(mu);
}
}
-
-// File: HLRBRep_Curve.lxx
-// Created: Fri Mar 13 11:08:32 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_Curve.lxx
+// Created: Fri Mar 13 11:08:32 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <Standard_NotImplemented.hxx>
#include <gp_Pnt2d.hxx>
{
return HLRBRep_BCurveTool::IsRational(myCurve);
}
-
--- File: HLRBRep_CurveTool.cdl
--- Created: Mon Jul 17 16:25:23 1995
--- Author: Modelistation
--- <model@mastox>
----Copyright: Matra Datavision 1995
+-- File: HLRBRep_CurveTool.cdl
+-- Created: Mon Jul 17 16:25:23 1995
+-- Author: Modelistation
+---Copyright: Matra Datavision 1995
class CurveTool from HLRBRep
-// File: HLRBRep_CurveTool.cxx
-// Created: Mon Jul 17 17:39:39 1995
-// Author: Modelistation
-// <model@mastox>
+// File: HLRBRep_CurveTool.cxx
+// Created: Mon Jul 17 17:39:39 1995
+// Author: Modelistation
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_CurveTool.ixx>
#include <HLRBRep_Curve.hxx>
nbs = 50;
return((Standard_Integer)nbs);
}
-
-// File: HLRBRep_CurveTool.lxx
-// Created: Thu Oct 22 12:14:59 1992
-// Author: Laurent BUCHARD
-// <lbr@sdsun2>
+// File: HLRBRep_CurveTool.lxx
+// Created: Thu Oct 22 12:14:59 1992
+// Author: Laurent BUCHARD
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_Curve.hxx>
#include <GeomAbs_CurveType.hxx>
inline Standard_Real
HLRBRep_CurveTool::EpsX(const Standard_Address C)
{ return(1e-10); }
-
--- File: HLRBRep_Data.cdl
--- Created: Mon Jan 11 13:58:26 1993
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_Data.cdl
+-- Created: Mon Jan 11 13:58:26 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class Data from HLRBRep inherits TShared from MMgt
-// File: HLRBRep_Data.cxx
-// Created: Thu Apr 17 19:17:52 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_Data.cxx
+// Created: Thu Apr 17 19:17:52 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//#define No_Standard_OutOfRange
const Standard_Integer de,
const Standard_Integer df)
{
-#ifdef DEB
- Standard_Integer n1vert =
-#endif
- DS->NbVertices();
Standard_Integer n1edge = DS->NbEdges();
Standard_Integer n1face = DS->NbFaces();
//=======================================================================
void HLRBRep_Data::EdgeState (const Standard_Real p1,
- const Standard_Real p2,
- TopAbs_State& stbef,
- TopAbs_State& staft)
+ const Standard_Real p2,
+ TopAbs_State& stbef,
+ TopAbs_State& staft)
{
// compute the state of The Edge near the Intersection
// this method should give the states before and after
// it should get the parameters on the surface
-
- gp_Pnt Pbid;
- gp_Vec TngEdge;
- ((HLRBRep_Curve*)myLEGeom)->D1(p1,Pbid,TngEdge);
+
Standard_Real pu,pv;
- if (HLRBRep_EdgeFaceTool::UVPoint(p2,myFEGeom,iFaceGeom,pu,pv)) {
+ if (HLRBRep_EdgeFaceTool::UVPoint(p2,myFEGeom,iFaceGeom,pu,pv))
+ {
mySLProps.SetParameters(pu,pv);
- gp_Dir NrmFace = mySLProps.Normal();
- const gp_Trsf& TI = myProj.InvertedTransformation();
- gp_Dir V;
- if (myProj.Perspective()) {
- gp_Pnt2d P2d;
- myProj.Project(Pbid,P2d);
- V = gp_Dir(P2d.X(),P2d.Y(),-myProj.Focus());
+ if (mySLProps.IsNormalDefined())
+ {
+ gp_Dir NrmFace = mySLProps.Normal();
+
+ gp_Pnt Pbid;
+ gp_Vec TngEdge;
+ ((HLRBRep_Curve*)myLEGeom)->D1(p1,Pbid,TngEdge);
+
+ const gp_Trsf& TI = myProj.InvertedTransformation();
+ gp_Dir V;
+ if (myProj.Perspective()) {
+ gp_Pnt2d P2d;
+ myProj.Project(Pbid,P2d);
+ V = gp_Dir(P2d.X(),P2d.Y(),-myProj.Focus());
+ }
+ else {
+ V = gp_Dir(0,0,-1);
+ }
+ V.Transform(TI);
+ if (NrmFace.Dot(V) > 0.)
+ NrmFace.Reverse();
+
+ const Standard_Real scal = (TngEdge.SquareMagnitude()>1.e-10)? NrmFace.Dot(gp_Dir(TngEdge)) : 0.;
+
+ if (scal > myToler*10) {stbef = TopAbs_IN ;staft = TopAbs_OUT;}
+ else if (scal < -myToler*10) {stbef = TopAbs_OUT;staft = TopAbs_IN ;}
+ else {stbef = TopAbs_ON ;staft = TopAbs_ON ;}
}
else {
- V = gp_Dir(0,0,-1);
+ stbef = TopAbs_OUT;
+ staft = TopAbs_OUT;
+#ifdef DEB
+ cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+#endif
}
- V.Transform(TI);
- if (NrmFace.Dot(V) > 0)
- NrmFace.Reverse();
-
- Standard_Real scal;
- if(TngEdge.SquareMagnitude()>1e-10)
- scal=NrmFace.Dot(gp_Dir(TngEdge));
- else scal=0.0;
-
- if (scal > myToler*10) {stbef = TopAbs_IN ;staft = TopAbs_OUT;}
- else if (scal < -myToler*10) {stbef = TopAbs_OUT;staft = TopAbs_IN ;}
- else {stbef = TopAbs_ON ;staft = TopAbs_ON ;}
}
else {
stbef = TopAbs_OUT;
staft = TopAbs_OUT;
#ifdef DEB
- cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+ cout << "HLRBRep_Data::EdgeState : undefined" << endl;
#endif
}
}
Loop = Standard_False;
else {
if (Abs(param-sta) > Abs(param-end))
- end = param;
+ end = param;
else
- sta = param;
+ sta = param;
}
It.Next();
}
- param = (sta + end) / 2;
-#ifndef DEB
+ param = 0.5 * (sta + end);
Standard_Integer level = 0;
-#else
- Standard_Integer level;
-#endif
-#ifdef DEB
- TopAbs_State st =
-#endif
- Classify(E,ED,Standard_True,level,param);
+ /*TopAbs_State st = */Classify(E,ED,Standard_True,level,param);
Loop = Standard_True;
It.Initialize(IL);
switch (Int.Transition()) {
case TopAbs_FORWARD :
- level = level - Int.Intersection().Level();
- break;
+ level -= Int.Intersection().Level();
+ break;
case TopAbs_REVERSED :
- level = level + Int.Intersection().Level();
- break;
+ level += Int.Intersection().Level();
+ break;
case TopAbs_EXTERNAL :
case TopAbs_INTERNAL :
- default :
- break;
+ default :
+ break;
}
}
else if (p > param + tolpar)
//=======================================================================
TopAbs_State HLRBRep_Data::Compare (const Standard_Integer E,
- const HLRBRep_EdgeData& ED)
+ const HLRBRep_EdgeData& ED)
{
- Standard_Integer level;
- Standard_Real parbid = 0;
+ Standard_Integer level = 0;
+ Standard_Real parbid = 0.;
return Classify(E,ED,Standard_False,level,parbid);
}
Standard_Real p1,p2,dz;
Standard_ShortReal t1,t2;
TopAbs_State st;
-#ifndef DEB
TopAbs_Orientation Orie =TopAbs_FORWARD ;
-#else
- TopAbs_Orientation Orie ;
-#endif
TopAbs_Orientation Or2 = TopAbs_INTERNAL;
Standard_Boolean inverted = Standard_False;
const IntRes2d_Transition* Tr1;
}
if (iFaceBack) Orie = TopAbs::Complement(Orie); // change the transition
-#ifndef DEB
TopAbs_Orientation Ori = TopAbs_FORWARD;
-#else
- TopAbs_Orientation Ori;
-#endif
switch (Tr1->PositionOnCurve()) {
case IntRes2d_Head : Ori = TopAbs_FORWARD ; break;
case IntRes2d_Middle : Ori = TopAbs_INTERNAL; break;
}
return SameV;
}
-
-// File: HLRBRep_Data.lxx
-// Created: Thu Apr 17 16:56:27 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_Data.lxx
+// Created: Thu Apr 17 16:56:27 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : EDataArray
HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer E,
const HLRBRep_EdgeData& ED) const
{ return ED.HideCount() == myHideCount-1; }
-
--- File: HLRBRep_EdgeBuilder.cdl
--- Created: Thu Apr 17 20:11:57 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_EdgeBuilder.cdl
+-- Created: Thu Apr 17 20:11:57 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class EdgeBuilder from HLRBRep
-// File: HLRBRep_EdgeBuilder.cxx
-// Created: Thu Apr 17 21:45:17 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeBuilder.cxx
+// Created: Thu Apr 17 21:45:17 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
right.Nullify();
myLimits.Nullify();
}
-
--- File: HLRBRep_EdgeData.cdl
--- Created: Thu Apr 17 11:34:54 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_EdgeData.cdl
+-- Created: Thu Apr 17 11:34:54 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class EdgeData from HLRBRep
-// File: HLRBRep_EdgeData.cxx
-// Created: Thu Apr 17 11:44:47 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeData.cxx
+// Created: Thu Apr 17 11:44:47 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_EdgeData.ixx>
#include <BRep_Tool.hxx>
myMinMax[14] = ((Standard_Integer*)TotMinMax)[14];
myMinMax[15] = ((Standard_Integer*)TotMinMax)[15];
}
-
-// File: HLRBRep_EdgeData.lxx
-// Created: Thu Apr 17 11:42:44 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeData.lxx
+// Created: Thu Apr 17 11:42:44 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMaskSelected ((Standard_Boolean)1)
#define EMaskUsed ((Standard_Boolean)2)
inline Standard_ShortReal HLRBRep_EdgeData::Tolerance () const
{ return myTolerance; }
-
--- File: HLRBRep_EdgeFaceTool.cdl
--- Created: Mon Oct 18 19:19:43 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_EdgeFaceTool.cdl
+-- Created: Mon Oct 18 19:19:43 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class EdgeFaceTool from HLRBRep
-// File: HLRBRep_EdgeFaceTool.cxx
-// Created: Mon Oct 18 19:31:35 1993
-// Author: Christophe MARION
-// <cma@nonox>
+// File: HLRBRep_EdgeFaceTool.cxx
+// Created: Mon Oct 18 19:31:35 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_EdgeFaceTool.ixx>
#include <HLRBRep_Curve.hxx>
//purpose :
//=======================================================================
-Standard_Real HLRBRep_EdgeFaceTool::CurvatureValue
-( const Standard_Address F,
- const Standard_Real U,
- const Standard_Real V,
- const gp_Dir& Tg)
+Standard_Real HLRBRep_EdgeFaceTool::CurvatureValue
+ (const Standard_Address F,
+ const Standard_Real U,
+ const Standard_Real V,
+ const gp_Dir& Tg)
{
gp_Pnt P;
gp_Vec D1U,D1V,D2U,D2V,D2UV;
Standard_Real D = nmu2 *alfa2 + 2*d1ud1v *alfabeta + nmv2 *beta2;
return N/D;
}
- else
- return 0;
+ return 0.;
}
//=======================================================================
//purpose :
//=======================================================================
-Standard_Boolean HLRBRep_EdgeFaceTool::UVPoint(const Standard_Real Par,
- const Standard_Address E,
- const Standard_Address F,
- Standard_Real& U,
- Standard_Real& V)
+Standard_Boolean HLRBRep_EdgeFaceTool::UVPoint(const Standard_Real Par,
+ const Standard_Address E,
+ const Standard_Address F,
+ Standard_Real& U,
+ Standard_Real& V)
{
Standard_Real pfbid,plbid;
- Standard_Boolean done = Standard_True;
if (BRep_Tool::CurveOnSurface
(((HLRBRep_Curve *)E)->Curve().Edge(),
- ((HLRBRep_Surface*)F)->Surface().Face(),pfbid,plbid).IsNull()) {
+ ((HLRBRep_Surface*)F)->Surface().Face(),pfbid,plbid).IsNull())
+ {
BRepExtrema_ExtPF proj
(BRepLib_MakeVertex(((HLRBRep_Curve*)E)->Value3D(Par)),
((HLRBRep_Surface*)F)->Surface().Face());
- Standard_Integer index = 0;
+ Standard_Integer i, index = 0;
Standard_Real dist2 = RealLast();
- Standard_Real newdist2;
- Standard_Integer n = proj.NbExt();
-
- for (Standard_Integer i = 1; i <= n; i++) {
- newdist2 = proj.SquareDistance(i);
+ const Standard_Integer n = proj.NbExt();
+ for (i = 1; i <= n; i++) {
+ const Standard_Real newdist2 = proj.SquareDistance(i);
if (newdist2 < dist2) {
- dist2 = newdist2;
- index = i;
+ dist2 = newdist2;
+ index = i;
}
}
- if (index != 0)
- proj.Parameter(index,U,V);
- else
- done = Standard_False;
+ if (index == 0)
+ return Standard_False;
+
+ proj.Parameter(index,U,V);
}
else {
BRepAdaptor_Curve2d PC
U = P2d.X();
V = P2d.Y();
}
- return done;
+ return Standard_True;
}
-
--- File: HLRBRep_EdgeIList.cdl
--- Created: Thu Apr 17 19:56:30 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_EdgeIList.cdl
+-- Created: Thu Apr 17 19:56:30 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class EdgeIList from HLRBRep
-// File: HLRBRep_EdgeIList.cxx
-// Created: Thu Apr 17 21:26:59 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeIList.cxx
+// Created: Thu Apr 17 21:26:59 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
*/
}
-
--- File: HLRBRep_EdgeInterferenceTool.cdl
--- Created: Thu Apr 17 19:45:19 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_EdgeInterferenceTool.cdl
+-- Created: Thu Apr 17 19:45:19 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class EdgeInterferenceTool from HLRBRep
-// File: HLRBRep_EdgeInterferenceTool.cxx
-// Created: Thu Apr 17 21:22:03 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeInterferenceTool.cxx
+// Created: Thu Apr 17 21:22:03 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
Tang.SetCoord(TgFE.X(),TgFE.Y(),0);
Norm.SetCoord(NmFE.X(),NmFE.Y(),0);
}
-
-// File: HLRBRep_EdgeInterferenceTool.lxx
-// Created: Thu Apr 17 21:17:06 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_EdgeInterferenceTool.lxx
+// Created: Thu Apr 17 21:17:06 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_Interference.hxx>
HLRBRep_EdgeInterferenceTool::ParameterOfInterference
(const HLRAlgo_Interference& I) const
{ return I.Intersection().Parameter(); }
-
--- File: HLRBRep_FaceData.cdl
--- Created: Thu Apr 17 11:55:00 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_FaceData.cdl
+-- Created: Thu Apr 17 11:55:00 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class FaceData from HLRBRep
-// File: HLRBRep_FaceData.cxx
-// Created: Thu Apr 17 12:02:21 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_FaceData.cxx
+// Created: Thu Apr 17 12:02:21 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_FaceData.ixx>
#include <HLRAlgo_EdgesBlock.hxx>
Wires()->Wire(WI)->Double (EWI,Dble);
Wires()->Wire(WI)->IsoLine (EWI,IsoL);
}
-
-// File: HLRBRep_FaceData.lxx
-// Created: Thu Apr 17 12:00:16 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_FaceData.lxx
+// Created: Thu Apr 17 12:00:16 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define EMaskOrient ((Standard_Boolean)15)
#define FMaskSelected ((Standard_Boolean)16)
inline Standard_ShortReal HLRBRep_FaceData::Tolerance () const
{ return myTolerance; }
-
--- File: HLRBRep_FaceIterator.cdl
--- Created: Thu Apr 17 15:55:18 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_FaceIterator.cdl
+-- Created: Thu Apr 17 15:55:18 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class FaceIterator from HLRBRep
-// File: HLRBRep_FaceIterator.cxx
-// Created: Thu Apr 17 16:00:19 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_FaceIterator.cxx
+// Created: Thu Apr 17 16:00:19 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
}
}
}
-
-// File: HLRBRep_FaceIterator.lxx
-// Created: Thu Apr 17 16:03:06 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_FaceIterator.lxx
+// Created: Thu Apr 17 16:03:06 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_WiresBlock.hxx>
#include <HLRAlgo_EdgesBlock.hxx>
inline Standard_Boolean HLRBRep_FaceIterator::IsoLine() const
{ return myEdges->IsoLine(iEdge); }
-
--- File: HLRBRep_HLRToShape.cdl
--- Created: Mon Oct 11 16:45:31 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_HLRToShape.cdl
+-- Created: Mon Oct 11 16:45:31 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class HLRToShape from HLRBRep
---Purpose: A framework for filtering the computation
-// File: HLRBRep_HLRToShape.cxx
-// Created: Mon Oct 11 16:55:56 1993
-// Author: Christophe MARION
-// <cma@nonox>
+// File: HLRBRep_HLRToShape.cxx
+// Created: Mon Oct 11 16:55:56 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_HLRToShape.ixx>
#include <TopoDS.hxx>
}
}
}
-
-// File: HLRBRep_HLRToShape.lxx
-// Created: Tue Nov 2 15:55:51 1993
-// Author: Christophe MARION
-// <cma@nonox>
+// File: HLRBRep_HLRToShape.lxx
+// Created: Tue Nov 2 15:55:51 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TopoDS_Shape.hxx>
inline TopoDS_Shape
HLRBRep_HLRToShape::IsoLineHCompound(const TopoDS_Shape& S)
{ return InternalCompound(1,Standard_False,S); }
-
--- File: HLRBRep_Hider.cdl
--- Created: Thu Apr 17 19:43:52 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_Hider.cdl
+-- Created: Thu Apr 17 19:43:52 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class Hider from HLRBRep
-// File: HLRBRep_Hider.cxx
-// Created: Thu Apr 17 19:33:55 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_Hider.cxx
+// Created: Thu Apr 17 19:33:55 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#define No_Standard_OutOfRange
HLRBRep_EdgeInterferenceTool EIT(myDS); // List of Intersections
HLRBRep_Array1OfEData& myEData = myDS->EDataArray();
-#ifdef DEB
- Standard_Integer EToBeChecked = -1;
-#endif
for (; myDS->MoreEdge(); myDS->NextEdge()) { // loop on the Edges
Standard_Integer E = myDS->Edge(); // *****************
-#ifdef DEB
- if(E == EToBeChecked) {
- cout << E << endl;
- }
-#endif
-
try {
OCC_CATCH_SIGNALS
Standard_Boolean hasOut = Standard_False;
}
}
}
-
--- File: HLRBRep_InternalAlgo.cdl
--- Created: Thu Apr 17 20:45:25 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_InternalAlgo.cdl
+-- Created: Thu Apr 17 20:45:25 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class InternalAlgo from HLRBRep inherits TShared from MMgt
-// File: HLRBRep_InternalAlgo.cxx
-// Created: Thu Apr 17 21:49:17 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_InternalAlgo.cxx
+// Created: Thu Apr 17 21:49:17 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <Standard_Stream.hxx>
#include <HLRBRep_InternalAlgo.ixx>
if (!myShapes.IsEmpty()) {
Standard_Integer n = myShapes.Length();
Handle(HLRBRep_Data) *DS = new Handle(HLRBRep_Data) [n];
-#ifndef DEB
- static
-#endif
- Standard_Integer i,dv,de,df,nv,ne,nf;
- nv = 0;
- ne = 0;
- nf = 0;
+
+ Standard_Integer i,dv,de,df,nv=0,ne=0,nf=0;
for (i = 1; i <= n; i++) {
HLRBRep_ShapeBounds& SB = myShapes(i);
Handle(HLRBRep_Data) HLRBRep_InternalAlgo::DataStructure () const
{ return myDS; }
-
--- File: Intersector.cdl
--- Created: Wed Aug 26 18:11:37 1992
--- Author: Christophe MARION
--- <cma@sdsun2>
----Copyright: Matra Datavision 1992
+-- File: HLRBRep_Intersector.cdl
+-- Created: Wed Aug 26 18:11:37 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class Intersector from HLRBRep
-// File: HLRBRep_Intersector.gxx
-// Created: Thu Oct 22 11:37:24 1992
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRBRep_Intersector.gxx
+// Created: Thu Oct 22 11:37:24 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
--- File: HLRBRep_LineTool.cdl
--- Created: Wed Aug 18 14:58:10 1993
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_LineTool.cdl
+-- Created: Wed Aug 18 14:58:10 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class LineTool from HLRBRep
-// File: HLRBRep_LineTool.cxx
-// Created: Mon Dec 20 16:43:17 1993
-// Author: Jean Yves LEBEY
-// <jyl@phobox>
-
+// File: HLRBRep_LineTool.cxx
+// Created: Mon Dec 20 16:43:17 1993
+// Author: Jean Yves LEBEY
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_LineTool.ixx>
-
-// File: HLRBRep_LineTool.lxx
-// Created: Wed Aug 18 15:06:22 1993
-// Author: Christophe MARION
-// <cma@sdsun1>
+// File: HLRBRep_LineTool.lxx
+// Created: Wed Aug 18 15:06:22 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
--- File: PolyAlgo.cdl
--- Created: Tue Feb 18 10:36:07 1992
--- Author: Christophe MARION
--- <cma@sdsun1>
----Copyright: Matra Datavision 1992
+-- File: HLRBRep_PolyAlgo.cdl
+-- Created: Tue Feb 18 10:36:07 1992
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1992
class PolyAlgo from HLRBRep inherits TShared from MMgt
-// File: HLRBRep_PolyAlgo.cxx
-// Created: Fri May 5 15:58:19 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRBRep_PolyAlgo.cxx
+// Created: Fri May 5 15:58:19 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
// Modified by cma, Tue Apr 1 11:39:48 1997
// Modified by cma, Tue Apr 1 11:40:30 1997
Standard_Real dd,dX,dY,nX,nY;
Standard_Boolean FrBackInList;
Standard_Address TData ,PISeg ,PINod ;
-#ifndef DEB
/* Standard_Address IndexPtr = NULL;
const Handle(HLRAlgo_PolyInternalData)& pid1 =
*(Handle(HLRAlgo_PolyInternalData)*)&(PID(F1Index));
PINod2 = &pid2->PISeg();*/
Standard_Address TData1 = NULL,PISeg1 = NULL,PINod1 = NULL;
Standard_Address TData2 = NULL,PISeg2 = NULL,PINod2 = NULL;
-#else
- Standard_Address TData1,PISeg1,PINod1;
- Standard_Address TData2,PISeg2,PINod2;
-#endif
Standard_Address Nod11Indices,Nod12Indices,Nod13Indices;
Standard_Address Nod11RValues,Nod12RValues,Nod13RValues;
Standard_Address Tri1Indices;
-// File: HLRBRep_PolyAlgo.lxx
-// Created: Thu Jun 15 16:17:43 1995
-// Author: Christophe MARION
-// <cma@ecolox>
+// File: HLRBRep_PolyAlgo.lxx
+// Created: Thu Jun 15 16:17:43 1995
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRAlgo_PolyAlgo.hxx>
inline void HLRBRep_PolyAlgo::Debug (const Standard_Boolean B)
{ myDebug = B; }
-
--- File: HLRBRep_PolyHLRToShape.cdl
--- Created: Mon Oct 11 16:45:31 1993
--- Author: Christophe MARION
--- <cma@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_PolyHLRToShape.cdl
+-- Created: Mon Oct 11 16:45:31 1993
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1993
class PolyHLRToShape from HLRBRep
-// File: HLRBRep_PolyHLRToShape.cxx
-// Created: Mon Oct 11 16:55:56 1993
-// Author: Christophe MARION
-// <cma@nonox>
+// File: HLRBRep_PolyHLRToShape.cxx
+// Created: Mon Oct 11 16:55:56 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
// Modified by cma, Fri Nov 10 17:36:13 1995
#include <HLRBRep_PolyHLRToShape.ixx>
if (!added) Result = TopoDS_Shape();
return Result;
}
-
-// File: HLRBRep_PolyHLRToShape.lxx
-// Created: Tue Nov 2 15:55:51 1993
-// Author: Christophe MARION
-// <cma@nonox>
+// File: HLRBRep_PolyHLRToShape.lxx
+// Created: Tue Nov 2 15:55:51 1993
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <TopoDS_Shape.hxx>
inline TopoDS_Shape
HLRBRep_PolyHLRToShape::OutLineHCompound(const TopoDS_Shape& S)
{ return InternalCompound(1,Standard_False,S); }
-
--- File: HLRBRep_SLPropsATool.cdl
--- Created: Fri Apr 23 13:56:45 1993
--- Author: Modelistation
--- <model@phylox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_SLPropsATool.cdl
+-- Created: Fri Apr 23 13:56:45 1993
+-- Author: Modelistation
+---Copyright: Matra Datavision 1993
class SLPropsATool from HLRBRep
-// File: HLRBRep_SLPropsATool.cxx
-// Created: Tue Aug 18 15:16:03 1992
-// Author: Herve LEGRAND
-// <hl@bravox>
+// File: HLRBRep_SLPropsATool.cxx
+// Created: Tue Aug 18 15:16:03 1992
+// Author: Herve LEGRAND
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_SLPropsATool.ixx>
-// File: HLRBRep_SLPropsATool.lxx
-// Created: Tue Aug 18 15:16:03 1992
-// Author: Herve LEGRAND
-// <hl@bravox>
+// File: HLRBRep_SLPropsATool.lxx
+// Created: Tue Aug 18 15:16:03 1992
+// Author: Herve LEGRAND
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_Surface.hxx>
#include <GeomAbs_Shape.hxx>
U1 = V1 = RealFirst();
U2 = V2 = RealLast();
}
-
--- File: HLRBRep_ShapeBounds.cdl
--- Created: Thu Apr 17 17:51:44 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_ShapeBounds.cdl
+-- Created: Thu Apr 17 17:51:44 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class ShapeBounds from HLRBRep
---Purpose: Contains a Shape and the bounds of its vertices,
myMinMax : Integer from Standard[16];
end ShapeBounds from HLRBRep;
-
-// File: HLRBRep_ShapeBounds.cxx
-// Created: Thu Apr 17 18:35:42 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
-
+// File: HLRBRep_ShapeBounds.cxx
+// Created: Thu Apr 17 18:35:42 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_ShapeBounds.ixx>
for (Standard_Integer i = 0; i <= 15; i++)
myMinMax[i] = ((Standard_Integer*)TotMinMax)[i];
}
-
-// File: HLRBRep_ShapeBounds.lxx
-// Created: Thu Apr 17 18:34:31 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_ShapeBounds.lxx
+// Created: Thu Apr 17 18:34:31 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
//=======================================================================
//function : HLRBRep_ShapeBounds
inline Standard_Address HLRBRep_ShapeBounds::MinMax () const
{ return (Standard_Address)&myMinMax; }
-
--- File: HLRBRep_ShapeToHLR.cdl
--- Created: Tue May 4 16:52:14 1993
--- Author: Modelistation
--- <model@phylox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_ShapeToHLR.cdl
+-- Created: Tue May 4 16:52:14 1993
+-- Author: Modelistation
+---Copyright: Matra Datavision 1993
class ShapeToHLR from HLRBRep
-// File: HLRBRep_ShapeToHLR.cxx
-// Created: Thu Aug 27 12:33:14 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_ShapeToHLR.cxx
+// Created: Thu Aug 27 12:33:14 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
// #define No_Exception
#endif
// Create the data structure
Handle(HLRBRep_Data) DS = new HLRBRep_Data (nbVert, nbEdge, nbFace);
-#ifdef DEB
- HLRBRep_Array1OfEData& ED =
-#endif
- DS->EDataArray ();
HLRBRep_EdgeData* ed;
if(nbEdge != 0) ed = &(DS->EDataArray().ChangeValue(1));
// ed++;
}
}
}
-
--- File: HLRBRep_Surface.cdl
--- Created: Wed Apr 14 19:48:14 1993
--- Author: Modelistation
--- <model@phylox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_Surface.cdl
+-- Created: Wed Apr 14 19:48:14 1993
+-- Author: Modelistation
+---Copyright: Matra Datavision 1993
class Surface from HLRBRep
-// File: HLRBRep_Surface.cxx
-// Created: Fri Mar 13 11:08:32 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_Surface.cxx
+// Created: Fri Mar 13 11:08:32 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_Surface.ixx>
#include <HLRBRep_BSurfaceTool.hxx>
return HLRBRep_BSurfaceTool::Plane(mySurf);
}
}
-
-// File: HLRBRep_Surface.lxx
-// Created: Fri Mar 13 11:08:32 1992
-// Author: Christophe MARION
-// <cma@sdsun2>
+// File: HLRBRep_Surface.lxx
+// Created: Fri Mar 13 11:08:32 1992
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
#include <BRepAdaptor_Surface.hxx>
#include <HLRBRep_BSurfaceTool.hxx>
inline gp_Ax1 HLRBRep_Surface::Axis()const
{ return HLRBRep_BSurfaceTool::AxeOfRevolution(mySurf); }
-
--- File: HLRBRep_SurfaceTool.cdl
--- Created: Fri Jul 2 16:59:47 1993
--- Author: Laurent BUCHARD
--- <lbr@nonox>
----Copyright: Matra Datavision 1993
+-- File: HLRBRep_SurfaceTool.cdl
+-- Created: Fri Jul 2 16:59:47 1993
+-- Author: Laurent BUCHARD
+---Copyright: Matra Datavision 1993
class SurfaceTool from HLRBRep
-//-- File : HLRBRep_SurfaceTool.gxx
-//-- Created : Wed Jui 7 18:00:00 1c93
-//-- Author : Laurent BUCHARD
-//-- <lbr@nonox>
-//-- Copyright: Matra Datavision 1993
+// File: HLRBRep_SurfaceTool.cxx
+// Created: Wed Jui 7 18:00:00 1c93
+// Author: Laurent BUCHARD
+// Copyright: Matra Datavision 1993
+// Copyright: OPEN CASCADE 2000
#include <HLRBRep_SurfaceTool.ixx>
#include <BRepAdaptor_Surface.hxx>
}
return(n);
}
-
-//-- File : HLRBRep_SurfaceTool.lxx
-//-- Created : Wed Jui 7 18:00:00 1993
-//-- Author : Laurent BUCHARD
-//-- <lbr@nonox>
-//-- Copyright: Matra Datavision 1993
+// File: HLRBRep_SurfaceTool.lxx
+// Created: Wed Jui 7 18:00:00 1993
+// Author: Laurent BUCHARD
+// Copyright: Matra Datavision 1993
+// Copyright: OPEN CASCADE 2000
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
--- File: HLRBRep_VertexList.cdl
--- Created: Thu Apr 17 20:04:00 1997
--- Author: Christophe MARION
--- <cma@partox.paris1.matra-dtv.fr>
----Copyright: Matra Datavision 1997
+-- File: HLRBRep_VertexList.cdl
+-- Created: Thu Apr 17 20:04:00 1997
+-- Author: Christophe MARION
+---Copyright: Matra Datavision 1997
class VertexList from HLRBRep
fromInterf : Boolean from Standard;
end VertexList;
-
-// File: HLRBRep_VertexList.cxx
-// Created: Thu Apr 17 21:25:08 1997
-// Author: Christophe MARION
-// <cma@partox.paris1.matra-dtv.fr>
+// File: HLRBRep_VertexList.cxx
+// Created: Thu Apr 17 21:25:08 1997
+// Author: Christophe MARION
+// Copyright: OPEN CASCADE 2000
+
#ifndef No_Exception
#define No_Exception
#endif
Standard_DomainError::Raise("HLRBRep_VertexList::BoundaryTransition");
return TopAbs_EXTERNAL; // only for WNT.
}
-