Module gengeo :: Class ClippedSphereVol
[hide private]
[frames] | no frames]

Class ClippedSphereVol

 object --+            
          |            
??.instance --+        
              |        
        AVolume --+    
                  |    
          AVolume3D --+
                      |
                     ClippedSphereVol

A class defining a sphere in 3D space clipped by planes.

Instance Methods [hide private]
 
__init__(...)
Constructs a sphere with the specified centre and radius.
 
__str__(...)
str(x)
void
addPlane(...)
Adds a plane to the volume for clipping the sphere.

Inherited from AVolume: __reduce__

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 104
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Constructs a sphere with the specified centre and radius.

Parameters:
  • centre (Vector3) - Coordinates of the centre of the sphere
  • radius (double) - Radius of the sphere
Overrides: object.__init__

__str__(...)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

addPlane(...)

 

Adds a plane to the volume for clipping the sphere.

Parameters:
  • plane (Plane) - the plane to add to the volume
Returns: void