b311480e |
1 | -- Created on: 1998-07-14 |
2 | -- Created by: data exchange team |
3 | -- Copyright (c) 1998-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. |
7fd59977 |
16 | |
17 | package ShapeConstruct |
18 | |
19 | ---Purpose: This package provides new algorithms for constructing |
20 | -- new geometrical objects and topological shapes. It |
21 | -- complements and extends algorithms available in Open |
22 | -- CASCADE topological and geometrical toolkist. |
23 | -- The functionality provided by this package are the |
24 | -- following: |
25 | -- projecting curves on surface, |
26 | -- adjusting curve to have given start and end points. P |
27 | uses |
28 | gp, |
29 | Geom, |
30 | GeomAbs, |
31 | Geom2d, |
32 | TColgp, |
33 | TColStd, |
34 | ShapeExtend, |
35 | ShapeAnalysis, |
36 | Convert, |
37 | BRepBuilderAPI, |
38 | TopoDS, |
39 | TopAbs, |
40 | TopTools |
41 | |
42 | is |
43 | |
44 | class Curve; |
7fd59977 |
45 | |
46 | class ProjectCurveOnSurface; |
ff8178ef |
47 | |
7fd59977 |
48 | ---WARNING: The following two classes are just a copy of those from GEOMLITE |
49 | -- They must be removed as soon as bug in them is fixed |
50 | |
51 | class CompBezierCurvesToBSplineCurve; |
7fd59977 |
52 | |
53 | class CompBezierCurves2dToBSplineCurve2d; |
7fd59977 |
54 | |
55 | class MakeTriangulation; |
56 | ---Purpose: Tool for wire triangulation |
57 | |
58 | ConvertCurveToBSpline(C3D : Curve from Geom; |
59 | First : Real; |
60 | Last : Real; |
61 | Tol3d : Real; -- this and following parameters are used only if approximator have to be used. |
62 | Continuity : Shape from GeomAbs; |
63 | MaxSegments: Integer; |
64 | MaxDegree : Integer) |
65 | returns BSplineCurve from Geom; |
66 | |
67 | ConvertCurveToBSpline(C2D : Curve from Geom2d; |
68 | First : Real; |
69 | Last : Real; |
70 | Tol2d : Real; -- this and following parameters are used only if approximator have to be used. |
71 | Continuity : Shape from GeomAbs; |
72 | MaxSegments: Integer; |
73 | MaxDegree : Integer) |
74 | returns BSplineCurve from Geom2d; |
75 | |
76 | ConvertSurfaceToBSpline(surf : Surface from Geom; |
77 | UF,UL,VF,VL: Real; |
78 | Tol3d : Real; -- this and following parameters are used only if approximator have to be used. |
79 | Continuity : Shape from GeomAbs; |
80 | MaxSegments: Integer; |
81 | MaxDegree : Integer) |
82 | returns BSplineSurface from Geom; |
83 | |
84 | JoinPCurves(theEdges : HSequenceOfShape from TopTools; |
85 | theFace : Face from TopoDS; |
86 | theEdge : in out Edge from TopoDS) |
87 | returns Boolean from Standard; |
88 | ---Purpose: join pcurves of the <theEdge> on the <theFace> |
89 | -- try to use pcurves from originas edges <theEdges> |
90 | -- Returns false if cannot join pcurves |
91 | |
92 | JoinCurves(c3d1,ac3d2 : Curve from Geom; |
93 | Orient1, Orient2 : Orientation from TopAbs; |
94 | first1,last1,first2,last2 : in out Real; |
95 | c3dOut : out Curve from Geom; |
96 | isRev1,isRev2 : out Boolean) returns Boolean; |
97 | |
98 | --- Purpose:Method for joininig curves 3D. |
99 | -- Parameters : c3d1,ac3d2 - initial curves |
100 | -- Orient1, Orient2 - initial edges orientations. |
101 | -- first1,last1,first2,last2 - parameters for trimming curves |
102 | -- (re-calculate with account of orientation edges) |
103 | -- c3dOut - result curve |
104 | -- isRev1,isRev2 - out parameters indicative on possible errors. |
105 | -- Return value : True - if curves were joined successfully, |
106 | -- else - False. |
107 | |
108 | JoinCurves(c2d1,ac2d2 : Curve from Geom2d; |
109 | Orient1, Orient2 : Orientation from TopAbs; |
110 | first1,last1,first2,last2 : in out Real; |
111 | c2dOut : out Curve from Geom2d; |
112 | isRev1,isRev2 : out Boolean; |
113 | isError : Boolean = Standard_False) returns Boolean; |
114 | |
115 | --- Purpose:Method for joininig curves 3D. |
116 | -- Parameters : c3d1,ac3d2 - initial curves |
117 | -- Orient1, Orient2 - initial edges orientations. |
118 | -- first1,last1,first2,last2 - parameters for trimming curves |
119 | -- (re-calculate with account of orientation edges) |
120 | -- c3dOut - result curve |
121 | -- isRev1,isRev2 - out parameters indicative on possible errors. |
122 | -- isError - input parameter indicative possible errors due to that one from edges have one vertex |
123 | -- Return value : True - if curves were joined successfully, |
124 | -- else - False. |
125 | end ShapeConstruct; |