0024023: Revamp the OCCT Handle -- general
[occt.git] / src / ChFi2d / ChFi2d.cdl
CommitLineData
b311480e 1-- Created on: 1995-06-12
2-- Created by: Joelle CHAUVET
3-- Copyright (c) 1995-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
b311480e 16
7fd59977 17-- Modified: Tue Oct 15 10:12:02 1996
7fd59977 18-- Add ChFi2d_TangencyError (PRO3529)
19-- Modified: Tue Oct 22 09:23:11 1996
7fd59977 20-- Add ChFi2d_FirstEdgeDegenerated, ChFi2d_LastEdgeDegenerated,
21-- ChFi2d_BothEdgesDegenerated (PRO4896)
22-- Modified: Fri Sep 25 09:38:04 1998
7fd59977 23-- ChFi2d_NotAuthorized is used if the edges are not
24-- lines or circles (BUC60288)
25
26package ChFi2d
27
28 ---Purpose: This package contains the algorithms used to build
29 -- fillets or chamfers on planar wire.
8b7c5e47 30 --
31 -- This package provides two algorithms for 2D fillets:
32 -- ChFi2d_Builder - it constructs a fillet or chamfer
33 -- for linear and circular edges of a face.
34 -- ChFi2d_FilletAPI - it encapsulates two algorithms:
35 -- ChFi2d_AnaFilletAlgo - analytical constructor of the fillet.
36 -- It works only for linear and circular edges,
37 -- having a common point.
38 -- ChFi2d_FilletAlgo - iteration recursive method constructing
39 -- the fillet edge for any type of edges including
40 -- ellipses and b-splines.
41 -- The edges may even have no common point.
42 -- ChFi2d_ChamferAPI - an algoroithm for construction of chamfers
43 -- between two linear edges of a plane.
44 --
45 -- The algorithms ChFi2d_AnaFilletAlgo and ChFi2d_FilletAlgo may be used directly
46 -- or via the interface class ChFi2d_FilletAPI.
7fd59977 47
48uses
49 TopoDS,
50 TopTools,
51 gp
52
53is
54
55 enumeration ConstructionError is
56 ---Purpose: error that can occur during the
57 -- fillet construction on planar wire
58 NotPlanar,
59 ---Purpose: the face is not planar
60 NoFace,
61 ---Purpose: the face is null
62 InitialisationError,
63 ---Purpose: the two faces used for the initialisation are
64 -- uncompatible.
65 ParametersError,
66 ---Purpose: the parameters as distances or angle for
67 -- chamfer are less or equal to zero.
68 Ready,
69 ---Purpose: the initialization has been succesfull.
70 IsDone,
71 ComputationError,
72 ---Purpose: the algorithm could not find a solution.
73 ConnexionError,
74 ---Purpose: the vertex given to locate the fillet or the
75 -- chamfer is not connected to 2 edges.
76 TangencyError,
77 ---Purpose: the two edges connected to the vertex are tangent.
78
79
80 FirstEdgeDegenerated,
81 ---Purpose: the first edge is degenerated.
82 LastEdgeDegenerated,
83 ---Purpose: the last edge is degenerated.
84 BothEdgesDegenerated,
85 ---Purpose: the two edges are degenerated.
86 NotAuthorized
87 ---Purpose: One or the two edges connected to the vertex
88 -- is a fillet or a chamfer
89 -- One or the two edges connected to the vertex
90 -- is not a line or a circle
91
92 end ConstructionError;
93
94
95 class Builder;
96
97
98 CommonVertex( E1, E2 : Edge from TopoDS;
99 V : out Vertex from TopoDS)
100 returns Boolean
101 is private;
102 ---Warning: <V> has sense only if the value <True> is returned
103
104
105 FindConnectedEdges( F : Face from TopoDS;
106 V : Vertex from TopoDS;
107 E1, E2 : out Edge from TopoDS)
108 returns ConstructionError from ChFi2d
109 is private;
110
111 ---Warning: <E1> and <E2> has sense only if the returned value
112 -- is <IsDone>
113
114
115end ChFi2d;
116
117
118
119
120
121