1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1,83 +0,0 @@
-- Created on: 1994-02-07
-- Created by: Modelistation
-- Copyright (c) 1994-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
package BRepIntCurveSurface
---Purpose: Inttantiates IntCurveSurface with Surfaces from BRep
-- and Curves from Adaptor
---Level: Public
--
-- All the methods of the classes of this package are public.
--
uses
--modified by NIZNHY-PKV Sun Dec 15 16:54:16 2002 f
BRepTopAdaptor,
--modified by NIZNHY-PKV Sun Dec 15 16:54:28 2002 t
IntCurveSurface,
BRepAdaptor,
Geom2dInt,
GeomAdaptor,
TopoDS,
BRepClass,
TopAbs,
TopExp,
StdFail,
gp,
Bnd,
TopTools
is
--------------------------------------------------
-- Instantiation of IntCurveSurfaces algorithms --
-- The intersection is computed on the surfaces --
-- with their natural boundaries. --
--------------------------------------------------
-- class ICSSurfaceTool instantiates
-- SurfaceTool from IntCurveSurface(
---- HSurface from BRepAdaptor) ;
--
----
-- class ICSCurveTool instantiates
---- CurveTool from IntCurveSurface(
-- HCurve from GeomAdaptor) ;
----
--
---- class ICSInter instantiates
-- Inter from IntCurveSurface(
---- HCurve from GeomAdaptor,
-- ICSCurveTool from BRepIntCurveSurface,
---- HSurface from BRepAdaptor,
-- ICSSurfaceTool from BRepIntCurveSurface);
--
------------------------------------------------------
-- The Inter class provides intersection between --
-- - a BRepAdaptor surface and a GeomAdaptor curve --
-- - a Shape and a GeomAdaptor curve --
-- Only the points which are inside the surface --
-- are returned. --
------------------------------------------------------
class Inter;
end BRepIntCurveSurface;

View File

@@ -1,178 +0,0 @@
-- Created on: 1994-02-07
-- Created by: Modelistation
-- Copyright (c) 1994-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Inter from BRepIntCurveSurface
---Purpose: Computes the intersection between a face and a
-- curve. To intersect one curve with shape method
-- Init(Shape, curve, tTol) should be used. To
-- intersect a few curves with specified shape it is
-- necessary to load shape one time using method
-- Load(shape, tol) and find intersection points for
-- each curve using method Init(curve). For
-- iteration by intersection points method More() and
-- Next() should be used.
--
--- Example:
--- Inter.Load(shape, tol);
--- for( i =1; i <= nbCurves;i++)
--- {
--- Inter.Init(curve);
--- for( ;Inter.More(); Inter.Next())
--- {
--- .......
--- }
--- }
uses
--modified by NIZNHY-PKV Sun Dec 15 16:52:33 2002 f
TopolTool from BRepTopAdaptor,
HSurface from BRepAdaptor,
--modified by NIZNHY-PKV Sun Dec 15 16:52:34 2002 t
Shape from TopoDS,
FaceClassifier from BRepClass,
State from TopAbs,
Explorer from TopExp,
IntersectionPoint from IntCurveSurface,
HInter from IntCurveSurface,
Curve from GeomAdaptor,
Lin from gp,
Pnt from gp,
TransitionOnCurve from IntCurveSurface,
Face from TopoDS,
Box from Bnd,
SequenceOfShape from TopTools,
HArray1OfBox from Bnd,
HCurve from GeomAdaptor
raises
NotDone from StdFail
is
Create returns Inter from BRepIntCurveSurface;
--- Purpose: Empty constructor;
Init(me : in out;
theShape : Shape from TopoDS;
theCurve : Curve from GeomAdaptor;
theTol: Real from Standard);
--- Purpose: Load the Shape, the curve and initialize the
-- tolerance used for the classification.
Init(me : in out;
theShape : Shape from TopoDS;
theLine : Lin from gp;
theTol: Real from Standard);
--- Purpose: Load the Shape, the curve and initialize the
-- tolerance used for the classification.
Load(me : in out; theShape : Shape from TopoDS; theTol: Real from Standard);
--- Purpose: Load the Shape, and initialize the
-- tolerance used for the classification.
Init(me : in out; theCurve : Curve from GeomAdaptor);
--- Purpose: Method to find intersections of specified curve with loaded shape.
More(me) returns Boolean from Standard;
--- Purpose: returns True if there is a current face.
Next(me: in out);
--- Purpose: Sets the next intersection point to check.
Find(me: in out) is protected;
---Purpose: Internal function
Point(me) returns IntersectionPoint from IntCurveSurface
---Purpose: returns the current Intersection point.
raises NotDone from StdFail;
Pnt(me) returns Pnt from gp
---Purpose: returns the current geometric Point
---C++: return const &
raises NotDone from StdFail;
U(me) returns Real from Standard
---Purpose: returns the U parameter of the current point
-- on the current face.
raises NotDone from StdFail;
V(me) returns Real from Standard
---Purpose: returns the V parameter of the current point
-- on the current face.
raises NotDone from StdFail;
W(me) returns Real from Standard
---Purpose: returns the parameter of the current point
-- on the curve.
raises NotDone from StdFail;
State(me) returns State from TopAbs
---Purpose: returns the current state (IN or ON)
raises NotDone from StdFail;
Transition(me) returns TransitionOnCurve from IntCurveSurface
---Purpose: returns the transition of the line on the surface (IN or OUT or UNKNOWN)
raises NotDone from StdFail;
Face(me) returns Face from TopoDS;
---Purpose: returns the current face.
---C++: return const &
FindPoint(me : in out) returns Boolean from Standard is protected;
---Purpose: Method chec found intersection point
Clear(me : in out) is protected;
---Purpose: Method to clear fields of class
fields
myTolerance : Real from Standard;
myCurve : HCurve from GeomAdaptor;
myIntcs : HInter from IntCurveSurface;
myCurrentindex : Integer from Standard;
myCurrentnbpoints: Integer from Standard;
myFastClass : TopolTool from BRepTopAdaptor;
myCurrentstate : State from TopAbs;
myCurrentU : Real from Standard;
myCurrentV : Real from Standard;
myCurveBox : Box from Bnd;
myIndFace : Integer from Standard;
myFaces : SequenceOfShape from TopTools;
myFaceBoxes : HArray1OfBox from Bnd;
end Inter from BRepIntCurveSurface;

View File

@@ -14,20 +14,25 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <BRepIntCurveSurface_Inter.ixx>
#include <Bnd_Box.hxx>
#include <BndLib_Add3dCurve.hxx>
#include <BRepAdaptor_HSurface.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepBndLib.hxx>
#include <BRepIntCurveSurface_Inter.hxx>
#include <BRepTopAdaptor_TopolTool.hxx>
#include <Geom_Line.hxx>
#include <GeomAdaptor_Curve.hxx>
#include <GeomAdaptor_HCurve.hxx>
#include <gp_Lin.hxx>
#include <gp_Pnt.hxx>
#include <IntCurveSurface_IntersectionPoint.hxx>
#include <StdFail_NotDone.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Face.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepAdaptor_HSurface.hxx>
#include <GeomAdaptor_HCurve.hxx>
#include <BRepTopAdaptor_TopolTool.hxx>
#include <BRepAdaptor_HSurface.hxx>
#include <BRepBndLib.hxx>
#include <Bnd_Box.hxx>
#include <BndLib_Add3dCurve.hxx>
#include <TopoDS_Shape.hxx>
//===========================================================================
//function :BRepIntCurveSurface_Inter::BRepIntCurveSurface_Inte

View File

@@ -0,0 +1,167 @@
// Created on: 1994-02-07
// Created by: Modelistation
// Copyright (c) 1994-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _BRepIntCurveSurface_Inter_HeaderFile
#define _BRepIntCurveSurface_Inter_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Real.hxx>
#include <IntCurveSurface_HInter.hxx>
#include <Standard_Integer.hxx>
#include <TopAbs_State.hxx>
#include <Bnd_Box.hxx>
#include <TopTools_SequenceOfShape.hxx>
#include <Bnd_HArray1OfBox.hxx>
#include <Standard_Boolean.hxx>
#include <IntCurveSurface_TransitionOnCurve.hxx>
class GeomAdaptor_HCurve;
class BRepTopAdaptor_TopolTool;
class StdFail_NotDone;
class TopoDS_Shape;
class GeomAdaptor_Curve;
class gp_Lin;
class IntCurveSurface_IntersectionPoint;
class gp_Pnt;
class TopoDS_Face;
//! Computes the intersection between a face and a
//! curve. To intersect one curve with shape method
//! Init(Shape, curve, tTol) should be used. To
//! intersect a few curves with specified shape it is
//! necessary to load shape one time using method
//! Load(shape, tol) and find intersection points for
//! each curve using method Init(curve). For
//! iteration by intersection points method More() and
//! Next() should be used.
//!
//! Example:
//! Inter.Load(shape, tol);
//! for( i =1; i <= nbCurves;i++)
//! {
//! Inter.Init(curve);
//! for( ;Inter.More(); Inter.Next())
//! {
//! .......
//! }
//! }
class BRepIntCurveSurface_Inter
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor;
Standard_EXPORT BRepIntCurveSurface_Inter();
//! Load the Shape, the curve and initialize the
//! tolerance used for the classification.
Standard_EXPORT void Init (const TopoDS_Shape& theShape, const GeomAdaptor_Curve& theCurve, const Standard_Real theTol);
//! Load the Shape, the curve and initialize the
//! tolerance used for the classification.
Standard_EXPORT void Init (const TopoDS_Shape& theShape, const gp_Lin& theLine, const Standard_Real theTol);
//! Load the Shape, and initialize the
//! tolerance used for the classification.
Standard_EXPORT void Load (const TopoDS_Shape& theShape, const Standard_Real theTol);
//! Method to find intersections of specified curve with loaded shape.
Standard_EXPORT void Init (const GeomAdaptor_Curve& theCurve);
//! returns True if there is a current face.
Standard_EXPORT Standard_Boolean More() const;
//! Sets the next intersection point to check.
Standard_EXPORT void Next();
//! returns the current Intersection point.
Standard_EXPORT IntCurveSurface_IntersectionPoint Point() const;
//! returns the current geometric Point
Standard_EXPORT const gp_Pnt& Pnt() const;
//! returns the U parameter of the current point
//! on the current face.
Standard_EXPORT Standard_Real U() const;
//! returns the V parameter of the current point
//! on the current face.
Standard_EXPORT Standard_Real V() const;
//! returns the parameter of the current point
//! on the curve.
Standard_EXPORT Standard_Real W() const;
//! returns the current state (IN or ON)
Standard_EXPORT TopAbs_State State() const;
//! returns the transition of the line on the surface (IN or OUT or UNKNOWN)
Standard_EXPORT IntCurveSurface_TransitionOnCurve Transition() const;
//! returns the current face.
Standard_EXPORT const TopoDS_Face& Face() const;
protected:
//! Internal function
Standard_EXPORT void Find();
//! Method chec found intersection point
Standard_EXPORT Standard_Boolean FindPoint();
//! Method to clear fields of class
Standard_EXPORT void Clear();
private:
Standard_Real myTolerance;
Handle(GeomAdaptor_HCurve) myCurve;
IntCurveSurface_HInter myIntcs;
Standard_Integer myCurrentindex;
Standard_Integer myCurrentnbpoints;
Handle(BRepTopAdaptor_TopolTool) myFastClass;
TopAbs_State myCurrentstate;
Standard_Real myCurrentU;
Standard_Real myCurrentV;
Bnd_Box myCurveBox;
Standard_Integer myIndFace;
TopTools_SequenceOfShape myFaces;
Handle(Bnd_HArray1OfBox) myFaceBoxes;
};
#endif // _BRepIntCurveSurface_Inter_HeaderFile

View File

@@ -0,0 +1,2 @@
BRepIntCurveSurface_Inter.cxx
BRepIntCurveSurface_Inter.hxx