src/compas_3gs/operations/celloperations.py
def cell_split_indet_face_vertices(cell, fkey):
    """Split all indeterminate vertices of a cell face.

    Parameters
    ----------
    cell : Mesh
        Cell as a mesh object.
    fkey : hashable
        Identifier of the face.

    Returns
    -------
    Cell
        Updated cell.

    Notes
    -----
    An indeterminate vertex is defined as a vertex with degree or valency of 3 or greater.

    """
    egi = mesh_dual(cell, EGI)

    f_vkeys = cell.face_vertices(fkey)
    egi_nbr_vkeys = egi.vertex_neighbors(fkey)

    for egi_fkey in f_vkeys:

        fkeys = egi.face_vertices(egi_fkey)
        i = fkeys.index(fkey)
        fkeys = fkeys[i:] + fkeys[:i]

        egi_face_vertices = [key for key in fkeys if key not in egi_nbr_vkeys + [fkey]]

        vkey_del = egi_fkey
        x, y, z = cell.vertex_coordinates(vkey_del)

        for vkey in egi_face_vertices:

            f, g = egi.mesh_split_face(vkey_del, fkey, vkey)

            cell.delete_vertex(vkey_del)

            cell.add_vertex(key=f, x=x, y=y, z=z)
            cell.add_vertex(key=g, x=x, y=y, z=z)

            for new_fkey in fkeys:
                new_vkeys = egi.vertex_faces(new_fkey, ordered=True)
                cell.add_face(new_vkeys, fkey=new_fkey)
            vkey_del = g

    return cell
Split all indeterminate vertices of a cell face.

    Parameters
    ----------
    cell : Mesh
        Cell as a mesh object.
    fkey : hashable
        Identifier of the face.

    Returns
    -------
    Cell
        Updated cell.

    Notes
    -----
    An indeterminate vertex is defined as a vertex with degree or valency of 3 or greater.

    
Split all indeterminate vertices of a cell face.
Parameters

cell : Mesh
Cell as a mesh object.
fkey : hashable
Identifier of the face.

Returns

Cell
Updated cell.

Notes

An indeterminate vertex is defined as a vertex with degree or valency of 3 or greater.
Split all indeterminate vertices of a cell face . Parameters cell : Mesh Cell as a mesh object . fkey : hashable Identifier of the face . Returns Cell Updated cell . Notes An indeterminate vertex is defined as a vertex with degree or valency of 3 or greater .
def cell_split_indet_face_vertices(cell, fkey):
    egi = mesh_dual(cell, EGI)
    f_vkeys = cell.face_vertices(fkey)
    egi_nbr_vkeys = egi.vertex_neighbors(fkey)
    for egi_fkey in f_vkeys:
        fkeys = egi.face_vertices(egi_fkey)
        i = fkeys.index(fkey)
        fkeys = fkeys[i:] + fkeys[:i]
        egi_face_vertices = [key for key in fkeys if key not in egi_nbr_vkeys + [fkey]]
        vkey_del = egi_fkey
        x, y, z = cell.vertex_coordinates(vkey_del)
        for vkey in egi_face_vertices:
            f, g = egi.mesh_split_face(vkey_del, fkey, vkey)
            cell.delete_vertex(vkey_del)
            cell.add_vertex(key=f, x=x, y=y, z=z)
            cell.add_vertex(key=g, x=x, y=y, z=z)
            for new_fkey in fkeys:
                new_vkeys = egi.vertex_faces(new_fkey, ordered=True)
                cell.add_face(new_vkeys, fkey=new_fkey)
            vkey_del = g
    return cell
def cell_split_indet_face_vertices ( cell , fkey ) : egi = mesh_dual ( cell , EGI ) f_vkeys = cell . face_vertices ( fkey ) egi_nbr_vkeys = egi . vertex_neighbors ( fkey ) for egi_fkey in f_vkeys : fkeys = egi . face_vertices ( egi_fkey ) i = fkeys . index ( fkey ) fkeys = fkeys [ i : ] + fkeys [ : i ] egi_face_vertices = [ key for key in fkeys if key not in egi_nbr_vkeys + [ fkey ] ] vkey_del = egi_fkey x , y , z = cell . vertex_coordinates ( vkey_del ) for vkey in egi_face_vertices : f , g = egi . mesh_split_face ( vkey_del , fkey , vkey ) cell . delete_vertex ( vkey_del ) cell . add_vertex ( key = f , x = x , y = y , z = z ) cell . add_vertex ( key = g , x = x , y = y , z = z ) for new_fkey in fkeys : new_vkeys = egi . vertex_faces ( new_fkey , ordered = True ) cell . add_face ( new_vkeys , fkey = new_fkey ) vkey_del = g return cell
Split all indeterminate vertices of a cell face.
Split all indeterminate vertices of a cell face .
"""Split all indeterminate vertices of a cell face.

    Parameters
    ----------
    cell : Mesh
        Cell as a mesh object.
    fkey : hashable
        Identifier of the face.

    Returns
    -------
    Cell
        Updated cell.

    Notes
    -----
    An indeterminate vertex is defined as a vertex with degree or valency of 3 or greater.

    """
cell
fkey