mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
18
src/SWDRAW/FILES
Normal file
18
src/SWDRAW/FILES
Normal file
@@ -0,0 +1,18 @@
|
||||
SWDRAW.cxx
|
||||
SWDRAW.hxx
|
||||
SWDRAW_ShapeAnalysis.cxx
|
||||
SWDRAW_ShapeAnalysis.hxx
|
||||
SWDRAW_ShapeCustom.cxx
|
||||
SWDRAW_ShapeCustom.hxx
|
||||
SWDRAW_ShapeExtend.cxx
|
||||
SWDRAW_ShapeExtend.hxx
|
||||
SWDRAW_ShapeFix.cxx
|
||||
SWDRAW_ShapeFix.hxx
|
||||
SWDRAW_ShapeProcess.cxx
|
||||
SWDRAW_ShapeProcess.hxx
|
||||
SWDRAW_ShapeProcessAPI.cxx
|
||||
SWDRAW_ShapeProcessAPI.hxx
|
||||
SWDRAW_ShapeTool.cxx
|
||||
SWDRAW_ShapeTool.hxx
|
||||
SWDRAW_ShapeUpgrade.cxx
|
||||
SWDRAW_ShapeUpgrade.hxx
|
@@ -1,53 +0,0 @@
|
||||
-- Created on: 1998-05-06
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 SWDRAW
|
||||
|
||||
---Purpose: Provides DRAW interface to the functionalities of Shape Healing
|
||||
-- toolkit (SHAPEWORKS Delivery Unit).
|
||||
--
|
||||
-- Classes prefixed with Shape* corresponds to the packages of
|
||||
-- Shape Healing.
|
||||
|
||||
uses TCollection, TColStd, TopoDS, TopTools, Draw, ShapeProcessAPI
|
||||
|
||||
is
|
||||
|
||||
class ShapeTool;
|
||||
|
||||
class ShapeAnalysis;
|
||||
|
||||
class ShapeCustom;
|
||||
|
||||
class ShapeExtend;
|
||||
|
||||
class ShapeFix;
|
||||
|
||||
class ShapeUpgrade;
|
||||
|
||||
class ShapeProcess;
|
||||
|
||||
class ShapeProcessAPI;
|
||||
|
||||
Init (theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in SWDRAW
|
||||
|
||||
GroupName returns CString is private;
|
||||
---Purpose: Returns the name of the DRAW group accumulating the
|
||||
-- commands from the classes prefixed with Shape*.
|
||||
-- Returns "Shape Healing".
|
||||
|
||||
end SWDRAW;
|
@@ -11,31 +11,27 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW.ixx>
|
||||
|
||||
#include <Draw.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <DBRep.hxx>
|
||||
|
||||
#include <SWDRAW_ShapeTool.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
#include <Draw_Window.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <ShapeProcess_OperLibrary.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeAnalysis.hxx>
|
||||
#include <SWDRAW_ShapeCustom.hxx>
|
||||
#include <SWDRAW_ShapeExtend.hxx>
|
||||
#include <SWDRAW_ShapeFix.hxx>
|
||||
#include <SWDRAW_ShapeUpgrade.hxx>
|
||||
#include <SWDRAW_ShapeProcess.hxx>
|
||||
#include <SWDRAW_ShapeProcessAPI.hxx>
|
||||
#include <SWDRAW_ShapeTool.hxx>
|
||||
#include <SWDRAW_ShapeUpgrade.hxx>
|
||||
|
||||
//#72 rln 09.03.99 Packaging of SWDRAW
|
||||
|
||||
#include <ShapeProcess_OperLibrary.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <Draw_Window.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
|
||||
// for NSPApply -- CKY 12 JUL 2001
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
|
||||
static int dejadraw = 0;
|
||||
|
||||
//#72 rln 09.03.99 Packaging of SWDRAW
|
||||
|
87
src/SWDRAW/SWDRAW.hxx
Normal file
87
src/SWDRAW/SWDRAW.hxx
Normal file
@@ -0,0 +1,87 @@
|
||||
// Created on: 1998-05-06
|
||||
// Created by: Christian CAILLET
|
||||
// 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 _SWDRAW_HeaderFile
|
||||
#define _SWDRAW_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class SWDRAW_ShapeTool;
|
||||
class SWDRAW_ShapeAnalysis;
|
||||
class SWDRAW_ShapeCustom;
|
||||
class SWDRAW_ShapeExtend;
|
||||
class SWDRAW_ShapeFix;
|
||||
class SWDRAW_ShapeUpgrade;
|
||||
class SWDRAW_ShapeProcess;
|
||||
class SWDRAW_ShapeProcessAPI;
|
||||
|
||||
|
||||
//! Provides DRAW interface to the functionalities of Shape Healing
|
||||
//! toolkit (SHAPEWORKS Delivery Unit).
|
||||
//!
|
||||
//! Classes prefixed with Shape* corresponds to the packages of
|
||||
//! Shape Healing.
|
||||
class SWDRAW
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in SWDRAW
|
||||
Standard_EXPORT static void Init (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
//! Returns the name of the DRAW group accumulating the
|
||||
//! commands from the classes prefixed with Shape*.
|
||||
//! Returns "Shape Healing".
|
||||
Standard_EXPORT static Standard_CString GroupName();
|
||||
|
||||
|
||||
|
||||
friend class SWDRAW_ShapeTool;
|
||||
friend class SWDRAW_ShapeAnalysis;
|
||||
friend class SWDRAW_ShapeCustom;
|
||||
friend class SWDRAW_ShapeExtend;
|
||||
friend class SWDRAW_ShapeFix;
|
||||
friend class SWDRAW_ShapeUpgrade;
|
||||
friend class SWDRAW_ShapeProcess;
|
||||
friend class SWDRAW_ShapeProcessAPI;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_HeaderFile
|
@@ -1,33 +0,0 @@
|
||||
-- Created on: 1999-03-09
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeAnalysis from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeAnalysis
|
||||
-- List of DRAW commands and corresponding functionalities:
|
||||
-- tolerance - ShapeAnalysis_ShapeTolerance
|
||||
-- projcurve - ShapeAnalysis_Curve
|
||||
-- projface - ShapeAnalysis_Surface
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeAnalysis
|
||||
|
||||
end ShapeAnalysis;
|
@@ -16,60 +16,52 @@
|
||||
|
||||
// sln 19.11.2001. Bug 2: Correction of output of 'statshape' draw function.
|
||||
|
||||
#include <SWDRAW_ShapeAnalysis.ixx>
|
||||
#include <stdio.h>
|
||||
#include <Draw.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
#include <BRepGProp.hxx>
|
||||
#include <BRepTopAdaptor_FClass2d.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <GeomAPI_ProjectPointOnSurf.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <ShapeAnalysis.hxx>
|
||||
#include <ShapeAnalysis_ShapeTolerance.hxx>
|
||||
#include <ShapeAnalysis_Curve.hxx>
|
||||
#include <ShapeAnalysis_Surface.hxx>
|
||||
#include <ShapeAnalysis_Edge.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <GProp_GProps.hxx>
|
||||
#include <BRepGProp.hxx>
|
||||
#include <BRepTopAdaptor_FClass2d.hxx>
|
||||
#include <ShapeAnalysis_ShapeContents.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <TColStd_MapOfInteger.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeAnalysis.hxx>
|
||||
#include <ShapeAnalysis_Curve.hxx>
|
||||
#include <ShapeAnalysis_Edge.hxx>
|
||||
#include <ShapeAnalysis_FreeBoundData.hxx>
|
||||
#include <ShapeAnalysis_FreeBounds.hxx>
|
||||
#include <ShapeAnalysis_FreeBoundsProperties.hxx>
|
||||
#include <ShapeAnalysis_FreeBoundData.hxx>
|
||||
#include <ShapeFix_FreeBounds.hxx>
|
||||
|
||||
#include <ShapeExtend_WireData.hxx>
|
||||
#include <ShapeAnalysis_ShapeContents.hxx>
|
||||
#include <ShapeAnalysis_ShapeTolerance.hxx>
|
||||
#include <ShapeAnalysis_Surface.hxx>
|
||||
#include <ShapeAnalysis_Wire.hxx>
|
||||
#include <ShapeExtend_WireData.hxx>
|
||||
#include <ShapeFix_FreeBounds.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeAnalysis.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_MapOfInteger.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
static Standard_Integer tolerance
|
||||
(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
|
65
src/SWDRAW/SWDRAW_ShapeAnalysis.hxx
Normal file
65
src/SWDRAW/SWDRAW_ShapeAnalysis.hxx
Normal file
@@ -0,0 +1,65 @@
|
||||
// Created on: 1999-03-09
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeAnalysis_HeaderFile
|
||||
#define _SWDRAW_ShapeAnalysis_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeAnalysis
|
||||
//! List of DRAW commands and corresponding functionalities:
|
||||
//! tolerance - ShapeAnalysis_ShapeTolerance
|
||||
//! projcurve - ShapeAnalysis_Curve
|
||||
//! projface - ShapeAnalysis_Surface
|
||||
class SWDRAW_ShapeAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeAnalysis
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeAnalysis_HeaderFile
|
@@ -1,32 +0,0 @@
|
||||
-- Created on: 1999-03-09
|
||||
-- Created by: Roman LYGIN
|
||||
-- Copyright (c) 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 ShapeCustom from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeCustom
|
||||
-- List of DRAW commands and corresponding functionalities:
|
||||
-- directfaces - ShapeCustom::DirectFaces
|
||||
-- scaleshape - ShapeCustom::ScaleShape
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeCustom
|
||||
|
||||
end ShapeCustom;
|
@@ -14,51 +14,44 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW_ShapeCustom.ixx>
|
||||
|
||||
#include <Draw.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <Geom2d_BezierCurve.hxx>
|
||||
#include <Geom2d_BSplineCurve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_BezierSurface.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <Geom_OffsetSurface.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_SweptSurface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAbs_Shape.hxx>
|
||||
#include <ShapeCustom.hxx>
|
||||
#include <ShapeCustom_BSplineRestriction.hxx>
|
||||
#include <ShapeCustom_RestrictionParameters.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeCustom.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_Array2OfInteger.hxx>
|
||||
#include <TopAbs.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopLoc_Location.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <Geom_SweptSurface.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_SweptSurface.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <Geom_BezierSurface.hxx>
|
||||
#include <Geom_OffsetSurface.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <GeomAbs_Shape.hxx>
|
||||
#include <TColStd_Array2OfInteger.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom2d_BSplineCurve.hxx>
|
||||
#include <Geom2d_BezierCurve.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
static Standard_Integer ContToInteger( const GeomAbs_Shape Cont)
|
||||
{
|
||||
|
64
src/SWDRAW/SWDRAW_ShapeCustom.hxx
Normal file
64
src/SWDRAW/SWDRAW_ShapeCustom.hxx
Normal file
@@ -0,0 +1,64 @@
|
||||
// Created on: 1999-03-09
|
||||
// Created by: Roman LYGIN
|
||||
// Copyright (c) 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 _SWDRAW_ShapeCustom_HeaderFile
|
||||
#define _SWDRAW_ShapeCustom_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeCustom
|
||||
//! List of DRAW commands and corresponding functionalities:
|
||||
//! directfaces - ShapeCustom::DirectFaces
|
||||
//! scaleshape - ShapeCustom::ScaleShape
|
||||
class SWDRAW_ShapeCustom
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeCustom
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeCustom_HeaderFile
|
@@ -1,31 +0,0 @@
|
||||
-- Created on: 1999-03-09
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeExtend from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeExtend
|
||||
-- List of DRAW commands and corresponding functionalities:
|
||||
-- sortcompound - ShapeExtend_Explorer::SortedCompound
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeExtend
|
||||
|
||||
end ShapeExtend;
|
@@ -14,13 +14,13 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW_ShapeExtend.ixx>
|
||||
#include <DBRep.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
#include <ShapeExtend_Explorer.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
#include <DBRep.hxx>
|
||||
#include <ShapeExtend_Explorer.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeExtend.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
|
||||
static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
|
63
src/SWDRAW/SWDRAW_ShapeExtend.hxx
Normal file
63
src/SWDRAW/SWDRAW_ShapeExtend.hxx
Normal file
@@ -0,0 +1,63 @@
|
||||
// Created on: 1999-03-09
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeExtend_HeaderFile
|
||||
#define _SWDRAW_ShapeExtend_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeExtend
|
||||
//! List of DRAW commands and corresponding functionalities:
|
||||
//! sortcompound - ShapeExtend_Explorer::SortedCompound
|
||||
class SWDRAW_ShapeExtend
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeExtend
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeExtend_HeaderFile
|
@@ -1,35 +0,0 @@
|
||||
-- Created on: 1999-03-09
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeFix from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeFix
|
||||
-- List of DRAW commands and corresponding functionalities:
|
||||
-- edgesameparam - ShapeFix::SameParameter
|
||||
-- settolerance - ShapeFix_ShapeTolerance
|
||||
-- stwire - ShapeFix_Wire
|
||||
-- reface - ShapeFix_Face
|
||||
-- repcurve - ShapeFix_PCurves
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeFix
|
||||
|
||||
end ShapeFix;
|
@@ -14,58 +14,54 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW_ShapeFix.ixx>
|
||||
|
||||
#include <Draw.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <BRepTopAdaptor_FClass2d.hxx>
|
||||
|
||||
#include <ShapeBuild_ReShape.hxx>
|
||||
#include <ShapeAnalysis_Edge.hxx>
|
||||
#include <ShapeAnalysis_WireOrder.hxx>
|
||||
#include <ShapeAnalysis_WireVertex.hxx>
|
||||
#include <ShapeAnalysis_Wire.hxx>
|
||||
#include <ShapeExtend_WireData.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <ShapeFix_ShapeTolerance.hxx>
|
||||
#include <ShapeFix_Wire.hxx>
|
||||
#include <ShapeFix_WireVertex.hxx>
|
||||
#include <ShapeFix_Wireframe.hxx>
|
||||
#include <ShapeFix_Face.hxx>
|
||||
#include <ShapeFix_Shape.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeExtend_DataMapOfShapeListOfMsg.hxx>
|
||||
#include <ShapeExtend_MsgRegistrator.hxx>
|
||||
#include <ShapeExtend_DataMapIteratorOfDataMapOfShapeListOfMsg.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <Message_ListIteratorOfListOfMsg.hxx>
|
||||
#include <Message_Msg.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeAnalysis_Edge.hxx>
|
||||
#include <ShapeAnalysis_FreeBounds.hxx>
|
||||
#include <ShapeAnalysis_Wire.hxx>
|
||||
#include <ShapeAnalysis_WireOrder.hxx>
|
||||
#include <ShapeAnalysis_WireVertex.hxx>
|
||||
#include <ShapeBuild_ReShape.hxx>
|
||||
#include <ShapeExtend_DataMapIteratorOfDataMapOfShapeListOfMsg.hxx>
|
||||
#include <ShapeExtend_DataMapOfShapeListOfMsg.hxx>
|
||||
#include <ShapeExtend_MsgRegistrator.hxx>
|
||||
#include <ShapeExtend_WireData.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <ShapeFix_Face.hxx>
|
||||
#include <ShapeFix_Shape.hxx>
|
||||
#include <ShapeFix_ShapeTolerance.hxx>
|
||||
#include <ShapeFix_Wire.hxx>
|
||||
#include <ShapeFix_Wireframe.hxx>
|
||||
#include <ShapeFix_WireVertex.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeFix.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_DataMapIteratorOfDataMapOfAsciiStringInteger.hxx>
|
||||
#include <TColStd_DataMapOfAsciiStringInteger.hxx>
|
||||
#include <TopTools_MapOfShape.hxx>
|
||||
#include <TopTools_DataMapOfShapeListOfShape.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
#include <ShapeAnalysis_FreeBounds.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopTools_DataMapOfShapeListOfShape.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#include <TopTools_MapOfShape.hxx>
|
||||
|
||||
#ifdef AIX
|
||||
#include <strings.h>
|
||||
|
67
src/SWDRAW/SWDRAW_ShapeFix.hxx
Normal file
67
src/SWDRAW/SWDRAW_ShapeFix.hxx
Normal file
@@ -0,0 +1,67 @@
|
||||
// Created on: 1999-03-09
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeFix_HeaderFile
|
||||
#define _SWDRAW_ShapeFix_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeFix
|
||||
//! List of DRAW commands and corresponding functionalities:
|
||||
//! edgesameparam - ShapeFix::SameParameter
|
||||
//! settolerance - ShapeFix_ShapeTolerance
|
||||
//! stwire - ShapeFix_Wire
|
||||
//! reface - ShapeFix_Face
|
||||
//! repcurve - ShapeFix_PCurves
|
||||
class SWDRAW_ShapeFix
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeFix
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeFix_HeaderFile
|
@@ -1,29 +0,0 @@
|
||||
-- Created on: 1999-06-19
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeProcess from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeProcess
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeProc
|
||||
|
||||
end ShapeProcess;
|
@@ -14,22 +14,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW_ShapeProcess.ixx>
|
||||
#include <SWDRAW.hxx>
|
||||
|
||||
#include <DBRep.hxx>
|
||||
#include <Draw_Interpretor.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
#include <ShapeProcess.hxx>
|
||||
#include <ShapeProcess_ShapeContext.hxx>
|
||||
#include <ShapeProcess_OperLibrary.hxx>
|
||||
#include <ShapeProcess_ShapeContext.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeProcess.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : ApplySequence
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer ApplySequence(Draw_Interpretor& di,
|
||||
Standard_Integer argc, const char** argv)
|
||||
{
|
||||
|
61
src/SWDRAW/SWDRAW_ShapeProcess.hxx
Normal file
61
src/SWDRAW/SWDRAW_ShapeProcess.hxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on: 1999-06-19
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeProcess_HeaderFile
|
||||
#define _SWDRAW_ShapeProcess_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeProcess
|
||||
class SWDRAW_ShapeProcess
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeProc
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeProcess_HeaderFile
|
@@ -1,29 +0,0 @@
|
||||
-- Created on: 1999-06-19
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeProcessAPI from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeProcessAPI
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeProcessAPI
|
||||
|
||||
end ShapeProcessAPI;
|
@@ -14,20 +14,19 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <SWDRAW_ShapeProcessAPI.ixx>
|
||||
|
||||
#include <SWDRAW.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <ShapeProcessAPI_ApplySequence.hxx>
|
||||
#include <ShapeProcess_ShapeContext.hxx>
|
||||
#include <stdio.h>
|
||||
#include <ShapeProcessAPI_ApplySequence.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeProcessAPI.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
//=======================================================================
|
||||
//function : ApplySequence
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer ApplySequence(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
if (argc < 4) { di<<"Specify result, shape, resource name and prefix (optional)"<<"\n"; return 1 /* Error */; }
|
||||
|
61
src/SWDRAW/SWDRAW_ShapeProcessAPI.hxx
Normal file
61
src/SWDRAW/SWDRAW_ShapeProcessAPI.hxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on: 1999-06-19
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeProcessAPI_HeaderFile
|
||||
#define _SWDRAW_ShapeProcessAPI_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeProcessAPI
|
||||
class SWDRAW_ShapeProcessAPI
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeProcessAPI
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeProcessAPI_HeaderFile
|
@@ -1,34 +0,0 @@
|
||||
-- Created on: 1997-04-22
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1997-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 ShapeTool from SWDRAW
|
||||
|
||||
---Purpose : Defines functions to control shapes (in way useful for XSTEP),
|
||||
-- additional features which should be basic, or call tools which
|
||||
-- are bound with transfer needs.
|
||||
-- But these functions work on shapes, geometry, nothing else
|
||||
-- (no file, no model, no entity)
|
||||
|
||||
|
||||
uses CString, Interpretor from Draw
|
||||
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands : in out Interpretor from Draw);
|
||||
---Purpose : Defines and loads all basic functions for SWDRAW on Shapes
|
||||
|
||||
end ShapeTool;
|
@@ -16,54 +16,44 @@
|
||||
// 23.02.99 abv: method ShapeFix::FillFace() removed
|
||||
// 02.03.99 cky/rln: command edgeregul only accepts tolerance
|
||||
// 15.06.99 abv/pdn: command comptol added (from S4030)
|
||||
#include <SWDRAW_ShapeTool.ixx>
|
||||
|
||||
#include <Draw.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopoDS_Shell.hxx>
|
||||
#include <TopoDS_Solid.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
|
||||
// + edge, face
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#include <BRepClass3d_SolidClassifier.hxx>
|
||||
|
||||
#include <BRepTools_WireExplorer.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
|
||||
#include <BRep_Builder.hxx>
|
||||
|
||||
|
||||
|
||||
// + edgeregul/updtol
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <BRepClass3d_SolidClassifier.hxx>
|
||||
#include <BRepLib.hxx>
|
||||
|
||||
// + fillface
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <stdio.h>
|
||||
#include <Precision.hxx>
|
||||
#include <BRepTools_WireExplorer.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomLib.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <SWDRAW_ShapeTool.hxx>
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
#include <TopExp.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Shell.hxx>
|
||||
#include <TopoDS_Solid.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
// + edge, face
|
||||
// + edgeregul/updtol
|
||||
// + fillface
|
||||
static Standard_Integer XSHAPE_edge
|
||||
(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
|
65
src/SWDRAW/SWDRAW_ShapeTool.hxx
Normal file
65
src/SWDRAW/SWDRAW_ShapeTool.hxx
Normal file
@@ -0,0 +1,65 @@
|
||||
// Created on: 1997-04-22
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1997-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 _SWDRAW_ShapeTool_HeaderFile
|
||||
#define _SWDRAW_ShapeTool_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Defines functions to control shapes (in way useful for XSTEP),
|
||||
//! additional features which should be basic, or call tools which
|
||||
//! are bound with transfer needs.
|
||||
//! But these functions work on shapes, geometry, nothing else
|
||||
//! (no file, no model, no entity)
|
||||
class SWDRAW_ShapeTool
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Defines and loads all basic functions for SWDRAW on Shapes
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeTool_HeaderFile
|
@@ -1,40 +0,0 @@
|
||||
-- Created on: 1999-03-09
|
||||
-- Created by: data exchange team
|
||||
-- Copyright (c) 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 ShapeUpgrade from SWDRAW
|
||||
|
||||
---Purpose: Contains commands to activate package ShapeUpgrade
|
||||
-- List of DRAW commands and corresponding functionalities:
|
||||
-- DT_ShapeDivide - ShapeUpgrade_ShapeDivide
|
||||
-- DT_PlaneDividedFace - ShapeUpgrade_PlaneDividedFace
|
||||
-- DT_PlaneGridShell - ShapeUpgrade_PlaneGridShell
|
||||
-- DT_PlaneFaceCommon - ShapeUpgrade_PlaneFaceCommon
|
||||
-- DT_Split2dCurve - ShapeUpgrade_Split2dCurve
|
||||
-- DT_SplitCurve - ShapeUpgrade_SplitCurve
|
||||
-- DT_SplitSurface - ShapeUpgrade_SplitSurface
|
||||
-- DT_SupportModification - ShapeUpgrade_DataMapOfShapeSurface
|
||||
-- DT_Debug - ShapeUpgrade::SetDebug
|
||||
-- shellsolid - ShapeAnalysis_Shell/ShapeUpgrade_ShellSewing
|
||||
|
||||
uses
|
||||
Interpretor from Draw
|
||||
|
||||
is
|
||||
|
||||
InitCommands (myclass; theCommands: in out Interpretor from Draw);
|
||||
---Purpose: Loads commands defined in ShapeUpgrade
|
||||
|
||||
end ShapeUpgrade;
|
@@ -18,80 +18,71 @@
|
||||
//abv,pdn 05.05.99 S4174: new commands for testing ShapeDivide added, some removed
|
||||
//pdn,gka 10.06.99 S4189: command DT_ShapeConvertRev added
|
||||
|
||||
#include <SWDRAW_ShapeUpgrade.ixx>
|
||||
//#include <SWDRAW_ShapeUpgrade.hxx>
|
||||
|
||||
#include <Draw.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#include <ShapeUpgrade.hxx>
|
||||
#include <ShapeUpgrade_SplitCurve3dContinuity.hxx>
|
||||
#include <ShapeUpgrade_SplitCurve2dContinuity.hxx>
|
||||
#include <ShapeUpgrade_SplitSurfaceContinuity.hxx>
|
||||
//#include <ShapeUpgrade_SupportModification.hxx>
|
||||
#include <Draw.hxx>
|
||||
#include <Draw_Interpretor.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeBuild_ReShape.hxx>
|
||||
#include <ShapeCustom.hxx>
|
||||
#include <ShapeExtend_CompositeSurface.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <ShapeFix_ComposeShell.hxx>
|
||||
#include <ShapeUpgrade.hxx>
|
||||
#include <ShapeUpgrade_RemoveInternalWires.hxx>
|
||||
#include <ShapeUpgrade_RemoveLocations.hxx>
|
||||
#include <ShapeUpgrade_ShapeConvertToBezier.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideAngle.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideArea.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideClosed.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideContinuity.hxx>
|
||||
#include <ShapeUpgrade_SplitCurve2dContinuity.hxx>
|
||||
#include <ShapeUpgrade_SplitCurve3dContinuity.hxx>
|
||||
#include <ShapeUpgrade_SplitSurfaceContinuity.hxx>
|
||||
#include <ShapeUpgrade_UnifySameDomain.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <SWDRAW_ShapeUpgrade.hxx>
|
||||
#include <TColGeom2d_HArray1OfCurve.hxx>
|
||||
#include <TColGeom_HArray1OfCurve.hxx>
|
||||
#include <TColGeom_HArray2OfSurface.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <TColStd_HSequenceOfReal.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Shell.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TColGeom_HArray2OfSurface.hxx>
|
||||
#include <TColGeom2d_HArray1OfCurve.hxx>
|
||||
#include <BRepBuilderAPI.hxx>
|
||||
#include <SWDRAW.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideArea.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdio.h>
|
||||
//#include <SWDRAW_ShapeUpgrade.hxx>
|
||||
//#include <ShapeUpgrade_SupportModification.hxx>
|
||||
//#include <ShapeExtend_WireData.hxx>
|
||||
//#include <ShapeAnalysis_Shell.hxx>
|
||||
//#include <ShapeAnalysis_WireOrder.hxx>
|
||||
//#include <ShapeAnalysis_Wire.hxx>
|
||||
//#include <ShapeUpgrade_ShellSewing.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <ShapeUpgrade_SplitCurve3dContinuity.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <ShapeExtend_CompositeSurface.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <TColGeom_HArray2OfSurface.hxx>
|
||||
#include <ShapeFix_ComposeShell.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeBuild_ReShape.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <ShapeFix.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideContinuity.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideAngle.hxx>
|
||||
#include <ShapeUpgrade_ShapeConvertToBezier.hxx>
|
||||
#include <ShapeCustom.hxx>
|
||||
#include <ShapeUpgrade_ShapeDivideClosed.hxx>
|
||||
#include <ShapeUpgrade_RemoveInternalWires.hxx>
|
||||
#include <ShapeUpgrade_RemoveLocations.hxx>
|
||||
#include <ShapeUpgrade_UnifySameDomain.hxx>
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
|
||||
// the plane (equation z=0) shared by PlaneDividedFaceContinuity and PlaneGridShell
|
||||
//static Handle(Geom_Plane) ThePlane= new Geom_Plane(0,0,1,0);
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : DT_ShapeDivide
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Integer DT_ShapeDivide (Draw_Interpretor& di,
|
||||
Standard_Integer n, const char** a)
|
||||
{
|
||||
|
72
src/SWDRAW/SWDRAW_ShapeUpgrade.hxx
Normal file
72
src/SWDRAW/SWDRAW_ShapeUpgrade.hxx
Normal file
@@ -0,0 +1,72 @@
|
||||
// Created on: 1999-03-09
|
||||
// Created by: data exchange team
|
||||
// Copyright (c) 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 _SWDRAW_ShapeUpgrade_HeaderFile
|
||||
#define _SWDRAW_ShapeUpgrade_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
|
||||
|
||||
//! Contains commands to activate package ShapeUpgrade
|
||||
//! List of DRAW commands and corresponding functionalities:
|
||||
//! DT_ShapeDivide - ShapeUpgrade_ShapeDivide
|
||||
//! DT_PlaneDividedFace - ShapeUpgrade_PlaneDividedFace
|
||||
//! DT_PlaneGridShell - ShapeUpgrade_PlaneGridShell
|
||||
//! DT_PlaneFaceCommon - ShapeUpgrade_PlaneFaceCommon
|
||||
//! DT_Split2dCurve - ShapeUpgrade_Split2dCurve
|
||||
//! DT_SplitCurve - ShapeUpgrade_SplitCurve
|
||||
//! DT_SplitSurface - ShapeUpgrade_SplitSurface
|
||||
//! DT_SupportModification - ShapeUpgrade_DataMapOfShapeSurface
|
||||
//! DT_Debug - ShapeUpgrade::SetDebug
|
||||
//! shellsolid - ShapeAnalysis_Shell/ShapeUpgrade_ShellSewing
|
||||
class SWDRAW_ShapeUpgrade
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Loads commands defined in ShapeUpgrade
|
||||
Standard_EXPORT static void InitCommands (Draw_Interpretor& theCommands);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _SWDRAW_ShapeUpgrade_HeaderFile
|
Reference in New Issue
Block a user