Package esys :: Package pycad :: Module primitives :: Class Volume
[hide private]
[frames] | no frames]

Class Volume

   object --+        
            |        
PrimitiveBase --+    
                |    
       Manifold3D --+
                    |
       object --+   |
                |   |
        Primitive --+
                    |
                   Volume

A volume with holes.

Instance Methods [hide private]
 
__init__(self, loop, holes=[])
Creates a volume with holes.
 
collectPrimitiveBases(self)
Returns primitives used to construct the surface.
 
getBoundary(self)
Returns a list of the one-dimensional manifolds forming the boundary of the Surface (including holes).
 
getHoles(self)
Returns the holes in the volume.
 
getSurfaceLoop(self)
Returns the loop forming the surface.
 
isColocated(self, primitive)
Returns True if each curve is colocated with a curve in primitive.
 
substitute(self, sub_dict)
Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict.

Inherited from PrimitiveBase: __add__, __cmp__, __iadd__, __imul__, __isub__, __rmul__, __sub__, apply, copy, getConstructionPoints, getPrimitives, modifyBy, setLocalScale

Inherited from Primitive: __neg__, __repr__, getDirectedID, getID, getUnderlyingPrimitive, hasSameOrientation

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, loop, holes=[])
(Constructor)

 

Creates a volume with holes.

Parameters:
  • loop - SurfaceLoop defining the boundary of the surface
  • holes - list of SurfaceLoop defining holes in the surface
Overrides: object.__init__
Notes:
  • A SurfaceLoop defining a hole should not have any surfaces in common with the exterior SurfaceLoop.
  • A SurfaceLoop defining a hole should not have any surfaces in common with another SurfaceLoop defining a hole in the same volume.

collectPrimitiveBases(self)

 

Returns primitives used to construct the surface.

Overrides: Primitive.collectPrimitiveBases

getBoundary(self)

 

Returns a list of the one-dimensional manifolds forming the boundary of the Surface (including holes).

Overrides: Manifold3D.getBoundary

isColocated(self, primitive)

 

Returns True if each curve is colocated with a curve in primitive.

Overrides: Primitive.isColocated

substitute(self, sub_dict)

 

Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict. If a substitute for the object is given by sub_dict the value is returned, otherwise a new instance with substituted arguments is returned.

Overrides: Primitive.substitute