1 -- File: Bnd_Sphere.cdl
2 -- Created: Fri Dec 3 17:39:44 2010
4 ---Copyright: OPEN CASCADE 2010
8 ---Purpose: This class represents a bounding sphere of a geometric entity
9 -- (triangle, segment of line or whatever else).
15 Create returns Sphere;
16 ---Purpose: Empty constructor
18 Create (theCntr : XYZ from gp; theRad : Real; theU : Integer; theV : Integer)
20 ---Purpose: Constructor of a definite sphere
22 U (me) returns Integer;
24 ---Purpose: Returns the U parameter on shape
26 V (me) returns Integer;
28 ---Purpose: Returns the V parameter on shape
30 IsValid (me) returns Boolean;
32 ---Purpose: Returns validity status, indicating that this
33 -- sphere corresponds to a real entity
35 SetValid (me : in out; isValid : Boolean);
38 Center (me) returns XYZ from gp;
40 ---C++: return const &
41 ---Purpose: Returns center of sphere object
43 Radius (me) returns Real;
45 ---Purpose: Returns the radius value
47 Distances (me; theXYZ : XYZ from gp; theMin : in out Real; theMax : in out Real) is static;
48 ---Purpose: Calculate and return minimal and maximal distance to sphere.
49 -- NOTE: This function is tightly optimized; any modifications
50 -- may affect performance!
52 SquareDistances (me; theXYZ : XYZ from gp; theMin : in out Real; theMax : in out Real) is static;
53 ---Purpose: Calculate and return minimal and maximal distance to sphere.
54 -- NOTE: This function is tightly optimized; any modifications
55 -- may affect performance!
57 Project (me; theNode : XYZ from gp; theProjNode : in out XYZ from gp; theDist : in out Real; theInside : in out Boolean)
58 ---Purpose: Projects a point on entity.
59 -- Returns true if success
62 Distance (me; theNode : XYZ from gp)
65 SquareDistance (me; theNode : XYZ from gp)
68 Add (me : in out; theOther : Sphere from Bnd);
70 IsOut (me; theOther : Sphere from Bnd)
73 IsOut (me; thePnt : XYZ from gp; theMaxDist : in out Real)
76 SquareExtent (me) returns Real;
80 myCenter : XYZ from gp;