Files
OCCT/src/ShapeConstruct/ShapeConstruct.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

137 lines
5.6 KiB
Plaintext
Executable File

-- Created on: 1998-07-14
-- Created by: data exchange team
-- Copyright (c) 1998-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
package ShapeConstruct
---Purpose: This package provides new algorithms for constructing
-- new geometrical objects and topological shapes. It
-- complements and extends algorithms available in Open
-- CASCADE topological and geometrical toolkist.
-- The functionality provided by this package are the
-- following:
-- projecting curves on surface,
-- adjusting curve to have given start and end points. P
uses
gp,
Geom,
GeomAbs,
Geom2d,
TColgp,
TColStd,
ShapeExtend,
ShapeAnalysis,
Convert,
BRepBuilderAPI,
TopoDS,
TopAbs,
TopTools
is
class Curve;
---Purpose: Tool for adjusting 3d and 2d curve
class ProjectCurveOnSurface;
---Purpose: Tool for computing pcurve by projecting 3d curve on a surface
---WARNING: The following two classes are just a copy of those from GEOMLITE
-- They must be removed as soon as bug in them is fixed
class CompBezierCurvesToBSplineCurve;
---Purpose: Converts a list of connecting BezierCurves
-- into a B-spline curve.
class CompBezierCurves2dToBSplineCurve2d;
---Purpose: Converts a list of connecting BezierCurves
-- into a B-spline curve.
class MakeTriangulation;
---Purpose: Tool for wire triangulation
ConvertCurveToBSpline(C3D : Curve from Geom;
First : Real;
Last : Real;
Tol3d : Real; -- this and following parameters are used only if approximator have to be used.
Continuity : Shape from GeomAbs;
MaxSegments: Integer;
MaxDegree : Integer)
returns BSplineCurve from Geom;
ConvertCurveToBSpline(C2D : Curve from Geom2d;
First : Real;
Last : Real;
Tol2d : Real; -- this and following parameters are used only if approximator have to be used.
Continuity : Shape from GeomAbs;
MaxSegments: Integer;
MaxDegree : Integer)
returns BSplineCurve from Geom2d;
ConvertSurfaceToBSpline(surf : Surface from Geom;
UF,UL,VF,VL: Real;
Tol3d : Real; -- this and following parameters are used only if approximator have to be used.
Continuity : Shape from GeomAbs;
MaxSegments: Integer;
MaxDegree : Integer)
returns BSplineSurface from Geom;
JoinPCurves(theEdges : HSequenceOfShape from TopTools;
theFace : Face from TopoDS;
theEdge : in out Edge from TopoDS)
returns Boolean from Standard;
---Purpose: join pcurves of the <theEdge> on the <theFace>
-- try to use pcurves from originas edges <theEdges>
-- Returns false if cannot join pcurves
JoinCurves(c3d1,ac3d2 : Curve from Geom;
Orient1, Orient2 : Orientation from TopAbs;
first1,last1,first2,last2 : in out Real;
c3dOut : out Curve from Geom;
isRev1,isRev2 : out Boolean) returns Boolean;
--- Purpose:Method for joininig curves 3D.
-- Parameters : c3d1,ac3d2 - initial curves
-- Orient1, Orient2 - initial edges orientations.
-- first1,last1,first2,last2 - parameters for trimming curves
-- (re-calculate with account of orientation edges)
-- c3dOut - result curve
-- isRev1,isRev2 - out parameters indicative on possible errors.
-- Return value : True - if curves were joined successfully,
-- else - False.
JoinCurves(c2d1,ac2d2 : Curve from Geom2d;
Orient1, Orient2 : Orientation from TopAbs;
first1,last1,first2,last2 : in out Real;
c2dOut : out Curve from Geom2d;
isRev1,isRev2 : out Boolean;
isError : Boolean = Standard_False) returns Boolean;
--- Purpose:Method for joininig curves 3D.
-- Parameters : c3d1,ac3d2 - initial curves
-- Orient1, Orient2 - initial edges orientations.
-- first1,last1,first2,last2 - parameters for trimming curves
-- (re-calculate with account of orientation edges)
-- c3dOut - result curve
-- isRev1,isRev2 - out parameters indicative on possible errors.
-- isError - input parameter indicative possible errors due to that one from edges have one vertex
-- Return value : True - if curves were joined successfully,
-- else - False.
end ShapeConstruct;