Package meshpy :: Module tet :: Class MeshInfo
[hide private]
[frames] | no frames]

Class MeshInfo

source code

   _tetgen.MeshInfo --+
                      |
common.MeshInfoBase --+
                      |
                     MeshInfo

Instance Methods [hide private]
 
set_facets(self, facets, markers=None)
Set a list of simple, single-polygon factes.
source code
 
set_facets_ex(self, facets, facet_holestarts=None, markers=None)
Set a list of complicated factes.
source code
 
dump(self) source code
 
write_vtk(self, filename) source code
 
set_elements(self, elements) source code
 
set_element_constraints(self, element_constraints) source code

Inherited from common.MeshInfoBase: set_holes, set_points, write_neu

Properties [hide private]

Inherited from common.MeshInfoBase: face_vertex_indices_to_face_marker

Method Details [hide private]

set_facets(self, facets, markers=None)

source code 
Set a list of simple, single-polygon factes. Unlike :meth:`set_facets_ex`,
:meth:`set_facets` does not allow hole and only lets you use a single
polygon per facet.

:param facets: a list of facets, where each facet is a single
  polygons, represented by a list of point indices.
:param markers: Either None or a list of integers of the same
  length as *facets*. Each integer is the facet marker assigned
  to its corresponding facet.

:note: When the above says "list", any repeatable iterable
  also accepted instead.

set_facets_ex(self, facets, facet_holestarts=None, markers=None)

source code 
Set a list of complicated factes. Unlike :meth:`set_facets`,
:meth:`set_facets_ex` allows holes and multiple polygons per
facet.

:param facets: a list of facets, where each facet is a list
  of polygons, and each polygon is represented by a list
  of point indices.
:param facet_holestarts: Either None or a list of hole starting points
  for each facet. Each facet may have several hole starting points.
  The mesh generator starts "eating" a hole into the facet at each
  starting point and continues until it hits a polygon specified
  in this facet's record in *facets*.
:param markers: Either None or a list of integers of the same
  length as *facets*. Each integer is the facet marker assigned
  to its corresponding facet.

:note: When the above says "list", any repeatable iterable
  also accepted instead.