b311480e |
1 | -- Created on: 1999-06-21 |
2 | -- Created by: Galina KULIKOVA |
3 | -- Copyright (c) 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 | class TransferParametersProj from ShapeAnalysis inherits TransferParameters from ShapeAnalysis |
18 | |
19 | ---Purpose: This tool is used for transferring parameters |
20 | -- from 3d curve of the edge to pcurve and vice versa. |
21 | -- This tool transfers parameters with help of |
22 | -- projection points from curve 3d on curve 2d and |
23 | -- vice versa |
24 | uses |
25 | |
26 | Edge from TopoDS, |
27 | Face from TopoDS, |
28 | HSequenceOfReal from TColStd, |
29 | Location from TopLoc, |
30 | Curve from Geom, |
31 | Curve from Geom2d, |
32 | CurveOnSurface from Adaptor3d, |
33 | Vertex from TopoDS |
34 | is |
35 | |
6e33d3ce |
36 | Create returns TransferParametersProj from ShapeAnalysis; |
7fd59977 |
37 | ---Purpose: Creats empty constructor. |
38 | |
39 | Create(E: Edge from TopoDS; F: Face from TopoDS) |
6e33d3ce |
40 | returns TransferParametersProj from ShapeAnalysis; |
7fd59977 |
41 | ---Purpose: |
42 | |
43 | Init(me: mutable; E: Edge from TopoDS; F: Face from TopoDS ) is redefined; |
44 | ---Purpose: |
45 | |
46 | Perform(me: mutable; Papams: HSequenceOfReal from TColStd; To2d: Boolean) |
47 | returns HSequenceOfReal from TColStd is redefined; |
48 | ---Purpose: Transfers parameters given by sequence Params from 3d curve |
49 | -- to pcurve (if To2d is True) or back (if To2d is False) |
50 | |
51 | Perform(me: mutable; Param: Real; To2d: Boolean) |
52 | returns Real is redefined; |
53 | ---Purpose:Transfers parameter given by Param from 3d curve |
54 | -- to pcurve (if To2d is True) or back (if To2d is False) |
55 | |
56 | ForceProjection (me: mutable) returns Boolean; |
57 | ---Purpose: Returns modifiable flag forcing projection |
58 | -- If it is False (default), projection is done only |
59 | -- if edge is not SameParameter or if tolerance of edge |
60 | -- is greater than MaxTolerance() |
61 | ---C++: return & |
62 | |
63 | TransferRange(me: mutable; newEdge: in out Edge from TopoDS; |
64 | prevPar: Real; |
65 | currPar: Real; |
66 | Is2d : Boolean) is redefined; |
67 | ---Purpose: Recomputes range of curves from NewEdge. |
68 | -- If Is2d equals True parameters are recomputed by curve2d else by curve3d. |
69 | |
70 | IsSameRange(me) returns Boolean is redefined; |
71 | ---Purpose: Returns False; |
72 | -- |
73 | |
74 | PreformSegment(me: mutable;Param :Real; To2d :Boolean; |
75 | First :Real; Last :Real) |
76 | returns Real is private; |
77 | |
78 | CopyNMVertex(myclass; theVert: Vertex from TopoDS; |
79 | toedge: Edge from TopoDS; |
80 | fromedge: Edge from TopoDS ) returns Vertex from TopoDS; |
81 | ---Purpose: Make a copy of non-manifold vertex theVert |
82 | -- (i.e. create new TVertex and replace PointRepresentations for this vertex |
83 | -- from fromedge to toedge. Other representations were copied) |
84 | |
85 | CopyNMVertex(myclass; theVert: Vertex from TopoDS; |
86 | toFace: Face from TopoDS; |
87 | fromFace: Face from TopoDS ) returns Vertex from TopoDS; |
88 | ---Purpose: Make a copy of non-manifold vertex theVert |
89 | -- (i.e. create new TVertex and replace PointRepresentations for this vertex |
90 | -- from fromFace to toFace. Other representations were copied) |
91 | fields |
92 | |
93 | myCurve : Curve from Geom; |
94 | myCurve2d : Curve from Geom2d; |
95 | myAC3d : CurveOnSurface from Adaptor3d; |
96 | myPrecision : Real; |
97 | myLocation : Location from TopLoc; |
98 | myForceProj : Boolean; |
99 | myInitOK : Boolean; |
100 | |
101 | end TransferParametersProj; |