1 -- Created on: 2002-04-18
2 -- Created by: Michael KLOKOV
3 -- Copyright (c) 2002-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
21 class TopolTool from IntTools inherits TopolTool from Adaptor3d
23 ---Purpose: Class redefine methods of TopolTool from Adaptor3d
24 --- concerning sample points
29 HSurface from Adaptor3d,
30 HArray1OfReal from TColStd
32 raises DomainError from Standard
35 Create returns mutable TopolTool from IntTools;
40 Create(theSurface: HSurface from Adaptor3d)
41 returns mutable TopolTool from IntTools;
43 --- Initializes me by surface
46 Initialize(me: mutable)
49 --- Redefined empty initializer
52 --- Raises the exception NotImplemented
55 Initialize(me: mutable; theSurface: HSurface from Adaptor3d)
58 --- Initializes me by surface
61 --- sample points tools
63 ComputeSamplePoints(me: mutable)
69 NbSamplesU(me: mutable)
70 returns Integer from Standard
73 --- Computes the sample-points for the intersections algorithms
76 NbSamplesV(me: mutable)
77 returns Integer from Standard
80 --- Computes the sample-points for the intersections algorithms
83 NbSamples(me: mutable)
84 returns Integer from Standard
87 --- Computes the sample-points for the intersections algorithms
90 SamplePoint(me: mutable; Index: Integer from Standard;
91 P2d : out Pnt2d from gp;
92 P3d : out Pnt from gp)
95 --- Returns a 2d point from surface myS
96 --- and a corresponded 3d point
98 --- The index should be from 1 to NbSamples()
101 --modified by NIZNHY-IFV Sep 28 16:01:38 2005 f
102 SamplePnts(me: mutable; theDefl: Real from Standard; theNUmin, theNVmin: Integer from Standard)
103 ---Purpose: compute the sample-points for the intersections algorithms
104 -- by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
105 -- is the same as in method ComputeSamplePoints(), but only fill arrays of U
106 -- and V sample parameters;
107 -- theDefl is a requred deflection
108 -- theNUmin, theNVmin are minimal nb points for U and V.
112 --myS : HSurface from Adaptor3d; now inherits myS from Adaptor3d_TopolTool
113 myNbSmplU : Integer from Standard;
114 myNbSmplV : Integer from Standard;
115 myU0 : Real from Standard;
116 myV0 : Real from Standard;
117 myDU : Real from Standard;
118 myDV : Real from Standard;
120 end TopolTool from IntTools;