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

Class Manifold1D

   object --+    
            |    
PrimitiveBase --+
                |
               Manifold1D
Known Subclasses:

General one-dimensional manifold in 1D defined by a start and end point.

Instance Methods [hide private]
 
__init__(self)
Initializes the one-dimensional manifold.
 
getBoundary(self)
Returns a list of the zero-dimensional manifolds forming the boundary of the curve.
tuple
getElementDistribution(self)
Returns the element distribution.
 
getEndPoint(self)
Returns the end point.
 
getStartPoint(self)
Returns the start point.
 
resetElementDistribution(self)
removes the a previously set element distribution from the line.
 
setElementDistribution(self, n, progression=1, createBump=False)
Defines the number of elements on the line.

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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

Initializes the one-dimensional manifold.

Overrides: object.__init__

getElementDistribution(self)

 

Returns the element distribution.

Returns: tuple
the tuple of the number of elements, the progression factor and the bump flag. If no element distribution is set None is returned

setElementDistribution(self, n, progression=1, createBump=False)

 

Defines the number of elements on the line. If set it overwrites the local length setting which would be applied. The progression factor progression defines the change of element size between naighboured elements. If createBump is set progression is applied towards the center of the line.

Parameters:
  • n (int) - number of elements on the line
  • progression (positive float) - a positive progression factor
  • numberteBump - of elements on the line
  • createBump (bool)