Source code for pyprom.lib.containers.feature_verticies

"""
pyProm: Copyright 2018.

This software is distributed under a license that is described in
the LICENSE file that accompanies it.

This library contains a container class for storing Vertex_Links
used in Saddle highShores Tree Calculations.
"""

import sys


[docs]class Feature_Verticies: """ Feature_Verticies object stores Feature_Verticies data. :class:`pyprom.lib.locations.vertex_link.Vertex_Link` connect a vertex from one feature to a vertex from another. This class stores a list of those. It's best to think of this as a polygon whose verticies are stored in `self.vertex_linkers[:].local` and those verticies are all all linked to foreign verticies """
[docs] def __init__(self, index, vertex_linkers): """ :param int index: index of feature :param list vertex_linkers: list of Vertex_Links :type vertex_linkers: list(:class:`pyprom.lib.locations.vertex_link.Vertex_Link`) """ self.index = index self.vertex_linkers = vertex_linkers
[docs] def __repr__(self): """ :return: String representation of this object """ return "<Feature_Verticies> {} ".format( self.vertex_linkers)
__unicode__ = __str__ = __repr__