1 -- File: IntTools_TopolTool.cdl
2 -- Created: Thu Apr 18 11:39:53 2002
3 -- Author: Michael KLOKOV
5 ---Copyright: Matra Datavision 2002
7 class TopolTool from IntTools inherits TopolTool from Adaptor3d
9 ---Purpose: Class redefine methods of TopolTool from Adaptor3d
10 --- concerning sample points
15 HSurface from Adaptor3d,
16 HArray1OfReal from TColStd
18 raises DomainError from Standard
21 Create returns mutable TopolTool from IntTools;
26 Create(theSurface: HSurface from Adaptor3d)
27 returns mutable TopolTool from IntTools;
29 --- Initializes me by surface
32 Initialize(me: mutable)
35 --- Redefined empty initializer
38 --- Raises the exception NotImplemented
41 Initialize(me: mutable; theSurface: HSurface from Adaptor3d)
44 --- Initializes me by surface
47 --- sample points tools
49 ComputeSamplePoints(me: mutable)
55 NbSamplesU(me: mutable)
56 returns Integer from Standard
59 --- Computes the sample-points for the intersections algorithms
62 NbSamplesV(me: mutable)
63 returns Integer from Standard
66 --- Computes the sample-points for the intersections algorithms
69 NbSamples(me: mutable)
70 returns Integer from Standard
73 --- Computes the sample-points for the intersections algorithms
76 SamplePoint(me: mutable; Index: Integer from Standard;
77 P2d : out Pnt2d from gp;
78 P3d : out Pnt from gp)
81 --- Returns a 2d point from surface myS
82 --- and a corresponded 3d point
84 --- The index should be from 1 to NbSamples()
87 --modified by NIZNHY-IFV Sep 28 16:01:38 2005 f
88 SamplePnts(me: mutable; theDefl: Real from Standard; theNUmin, theNVmin: Integer from Standard)
89 ---Purpose: compute the sample-points for the intersections algorithms
90 -- by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
91 -- is the same as in method ComputeSamplePoints(), but only fill arrays of U
92 -- and V sample parameters;
93 -- theDefl is a requred deflection
94 -- theNUmin, theNVmin are minimal nb points for U and V.
98 --myS : HSurface from Adaptor3d; now inherits myS from Adaptor3d_TopolTool
99 myNbSmplU : Integer from Standard;
100 myNbSmplV : Integer from Standard;
101 myU0 : Real from Standard;
102 myV0 : Real from Standard;
103 myDU : Real from Standard;
104 myDV : Real from Standard;
106 end TopolTool from IntTools;