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

Class Manifold2D

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

General two-dimensional manifold.

Instance Methods [hide private]
 
__init__(self)
Creates a two-dimensional manifold.
 
getBoundary(self)
Returns a list of the one-dimensional manifolds forming the boundary of the surface (including holes).
list of Points
getPoints(self)
returns a list of points used to define the boundary
float or None
getRecombination(self)
returns max deviation from right angle in the recombination algorithm
tuple of a tuple of Points (or None) and the orientation which is one of the values Manifold2D.LEFT, Manifold2D.RIGHT, Manifold2D.ALTERNATE
getTransfiniteMeshing(self)
returns the transfinite meshing setings.
 
hasHole(self)
Returns True if a hole is present.
 
resetTransfiniteMeshing(self)
removes the transfinite meshing from the surface
 
setRecombination(self, max_deviation=0.785398163397)
Recombines triangular meshes on the surface into mixed triangular/quadrangular meshes.
 
setTransfiniteMeshing(self, orientation='Left')
applies 2D transfinite meshing to the surface.

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__

Class Variables [hide private]
  ALTERNATE = 'Alternate'
  LEFT = 'Left'
  RIGHT = 'Right'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

Creates a two-dimensional manifold.

Overrides: object.__init__

getPoints(self)

 

returns a list of points used to define the boundary

Returns: list of Points
list of points used to define the boundary

getRecombination(self)

 

returns max deviation from right angle in the recombination algorithm

Returns: float or None
max deviation from right angle in the recombination algorithm. If recombination is switched off, None is returned.

getTransfiniteMeshing(self)

 

returns the transfinite meshing setings. If transfinite meshing is not set, None is returned.

Returns: tuple of a tuple of Points (or None) and the orientation which is one of the values Manifold2D.LEFT, Manifold2D.RIGHT, Manifold2D.ALTERNATE
a tuple of the tuple of points used to define the transfinite meshing and the orientation. If no points are set the points tuple is returned as None. If no ransfinite meshing is not set, None is returned.

setRecombination(self, max_deviation=0.785398163397)

 

Recombines triangular meshes on the surface into mixed triangular/quadrangular meshes. max_deviation specifies the maximum derivation of the largest angle in the quadrangle from the right angle. Use max_deviation==None to switch off recombination.

Parameters:
  • max_deviation (float or None.) - maximum derivation of the largest angle in the quadrangle from the right angle.

setTransfiniteMeshing(self, orientation='Left')

 

applies 2D transfinite meshing to the surface.

Parameters:

Note: Transfinite meshing can not be applied if holes are present.