Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/plot/plot3d/index_face_set.pxd
4036 views
from sage.plot.plot3d.base cimport PrimitiveObject

from transform cimport point_c, face_c

cdef class IndexFaceSet(PrimitiveObject):
    cdef bint enclosed
    cdef Py_ssize_t vcount, fcount, icount
    cdef realloc(self, vcount, fcount, icount)
    # array of {x,y,z}
    cdef point_c* vs
    # array of array of fcount indices into points, each ending with -1
    cdef int* face_indices
    # pointers into face_indices marking the begining of each face
    cdef face_c* _faces


cdef class FaceIter:
    cdef Py_ssize_t i
    cdef IndexFaceSet set

cdef class EdgeIter:
    cdef Py_ssize_t i, j
    cdef object seen
    cdef IndexFaceSet set

cdef class VertexIter:
    cdef Py_ssize_t i
    cdef IndexFaceSet set