from cpp_polygon cimport * from cpp_vertex cimport cpp_Vertex from cpp_coefficients cimport cpp_Coefficients from libcpp.string cimport string from sage.rings.integer_ring import ZZ from sage.rings.real_mpfr import RR from sage.matrix.constructor import matrix from sage.plot.graphics import Graphics from sage.plot.line import line2d cdef class Polygon: cdef cpp_Polygon cpp def __cinit__(self,str=None): if str==None: self.cpp=cpp_Polygon() else: self.cpp=cpp_Polygon(str.encode('utf-8')) cpdef size(self): return self.cpp.size() cpdef graph_size(self): return self.cpp.graph_size() def vertex(self,i): assert(i