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 2-dimensional manifolds forming the surface of the Volume (including holes).
 
getHoles(self)
Returns the holes in the volume.
 
getSurfaceLoop(self)
Returns the loop forming the surface.
 
hasHole(self)
Returns True if a hole is present.
 
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 Manifold3D: getTransfiniteMeshing, resetTransfiniteMeshing, setElementDistribution, setRecombination, setTransfiniteMeshing

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

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

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

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 2-dimensional manifolds forming the surface of the Volume (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