1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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,39 +0,0 @@
-- Created on: 1998-11-13
-- Created by: Jean-Michel BOULCOURT
-- Copyright (c) 1998-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 BRepProj
---Purpose: The BRepProj package provides Projection
-- Algorithms like Cylindrical and Conical
-- Projections. Those algorithms have been put in an
-- independant package instead of BRepAlgo (like
-- NormalProjection) because of cyclic reference with
-- BRepFill. So this package is not available for
-- the moment to BRepFill.
--
uses
gp,
TopoDS,
TopTools
is
class Projection;
end BRepProj;

View File

@@ -1,102 +0,0 @@
-- Created on: 1998-11-13
-- Created by: Jean-Michel BOULCOURT
-- Copyright (c) 1998-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 Projection from BRepProj
---Purpose: The Projection class provides conical and
-- cylindrical projections of Edge or Wire on
-- a Shape from TopoDS. The result will be a Edge
-- or Wire from TopoDS.
uses
Dir from gp,
Pnt from gp,
Shape from TopoDS,
Edge from TopoDS,
Wire from TopoDS,
Face from TopoDS,
Compound from TopoDS,
HSequenceOfShape from TopTools
raises
NoSuchObject from Standard,
ConstructionError from Standard,
NullObject from Standard
is
Create(Wire, Shape : Shape from TopoDS;
D : Dir from gp)
returns Projection from BRepProj
raises NullObject from Standard,
ConstructionError from Standard;
---Purpose: Makes a Cylindrical projection of Wire om Shape
Create(Wire, Shape : Shape from TopoDS;
P : Pnt from gp)
returns Projection from BRepProj
raises NullObject from Standard,
ConstructionError from Standard;
---Purpose: Makes a Conical projection of Wire om Shape
IsDone(me) returns Boolean from Standard
---Purpose: returns False if the section failed
---C++: inline
is static;
Init(me : in out)
---Purpose: Resets the iterator by resulting wires.
---C++: inline
is static;
More(me) returns Boolean from Standard
---Purpose: Returns True if there is a current result wire
---C++: inline
is static;
Next(me : in out)
---Purpose: Move to the next result wire.
---C++: inline
is static;
Current(me)
returns Wire from TopoDS
---Purpose: Returns the current result wire.
---C++: inline
is static;
Shape(me)
returns Compound from TopoDS
---Purpose: Returns the complete result as compound of wires.
---C++: inline
is static;
BuildSection(me: in out; Shape, Tool: Shape from TopoDS)
is private;
---Purpose: Performs section of theShape by theTool
--- and stores result in the fields.
fields
myIsDone : Boolean from Standard;
myLsh : Shape from TopoDS;
myShape : Compound from TopoDS;
mySection : HSequenceOfShape from TopTools;
myItr : Integer from Standard;
end Projection;

View File

@@ -12,46 +12,43 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <BRepProj_Projection.ixx>
#include <BRepAlgo_Section.hxx>
#include <Precision.hxx>
#include <BRepBndLib.hxx>
#include <BRepTools_TrsfModification.hxx>
#include <BRepTools_Modifier.hxx>
#include <BRepLib_MakeVertex.hxx>
#include <BRepLib_MakeEdge.hxx>
#include <BRepLib_MakeWire.hxx>
#include <BRep_Tool.hxx>
#include <Bnd_Box.hxx>
#include <BRepSweep_Prism.hxx>
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
#include <BRepAlgo_Section.hxx>
#include <BRepBndLib.hxx>
#include <BRepFill_Generator.hxx>
#include <BRepLib_MakeEdge.hxx>
#include <BRepLib_MakeVertex.hxx>
#include <BRepLib_MakeWire.hxx>
#include <BRepProj_Projection.hxx>
#include <BRepSweep_Prism.hxx>
#include <BRepTools_Modifier.hxx>
#include <BRepTools_TrsfModification.hxx>
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <gp_Trsf.hxx>
#include <gp_Vec.hxx>
#include <Precision.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
#include <Standard_ConstructionError.hxx>
#include <Standard_NoSuchObject.hxx>
#include <Standard_NullObject.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <gp_Trsf.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Shape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <BRep_Builder.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_ConstructionError.hxx>
#include <TopTools_ListOfShape.hxx>
//=======================================================================
//function : DistanceOut
//purpose : Compute the minimum distance between input shapes
// (using Bounding Boxes of each Shape)
//=======================================================================
static Standard_Real DistanceOut (const TopoDS_Shape& S1, const TopoDS_Shape& S2)
{
Bnd_Box BBox1, BBox2;

View File

@@ -0,0 +1,106 @@
// Created on: 1998-11-13
// Created by: Jean-Michel BOULCOURT
// Copyright (c) 1998-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 _BRepProj_Projection_HeaderFile
#define _BRepProj_Projection_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Compound.hxx>
#include <TopTools_HSequenceOfShape.hxx>
#include <Standard_Integer.hxx>
#include <TopoDS_Wire.hxx>
class Standard_NoSuchObject;
class Standard_ConstructionError;
class Standard_NullObject;
class TopoDS_Shape;
class gp_Dir;
class gp_Pnt;
//! The Projection class provides conical and
//! cylindrical projections of Edge or Wire on
//! a Shape from TopoDS. The result will be a Edge
//! or Wire from TopoDS.
class BRepProj_Projection
{
public:
DEFINE_STANDARD_ALLOC
//! Makes a Cylindrical projection of Wire om Shape
Standard_EXPORT BRepProj_Projection(const TopoDS_Shape& Wire, const TopoDS_Shape& Shape, const gp_Dir& D);
//! Makes a Conical projection of Wire om Shape
Standard_EXPORT BRepProj_Projection(const TopoDS_Shape& Wire, const TopoDS_Shape& Shape, const gp_Pnt& P);
//! returns False if the section failed
Standard_Boolean IsDone() const;
//! Resets the iterator by resulting wires.
void Init();
//! Returns True if there is a current result wire
Standard_Boolean More() const;
//! Move to the next result wire.
void Next();
//! Returns the current result wire.
TopoDS_Wire Current() const;
//! Returns the complete result as compound of wires.
TopoDS_Compound Shape() const;
protected:
private:
//! Performs section of theShape by theTool
//! and stores result in the fields.
Standard_EXPORT void BuildSection (const TopoDS_Shape& Shape, const TopoDS_Shape& Tool);
Standard_Boolean myIsDone;
TopoDS_Shape myLsh;
TopoDS_Compound myShape;
Handle(TopTools_HSequenceOfShape) mySection;
Standard_Integer myItr;
};
#include <BRepProj_Projection.lxx>
#endif // _BRepProj_Projection_HeaderFile

3
src/BRepProj/FILES Normal file
View File

@@ -0,0 +1,3 @@
BRepProj_Projection.cxx
BRepProj_Projection.hxx
BRepProj_Projection.lxx