示例#1
0
文件: gl.py 项目: kissinger31/Alembic
def draw_bounding_box(bounds, mode=GL_LINES):
    """
    Draws a simple bounding bex defined by the "bounds" arg,
    using the OpenGL mode defined by "mode".

    :param bounds: imath.Box3d object that defines bounds
    :param mode: display mode, e.g. GL_POLYGON, GL_LINES
    """
    alembicgl.drawBounds(bounds, mode)
示例#2
0
def draw_bounding_box(bounds, mode=GL_LINES):
    """
    Draws a simple bounding bex defined by the "bounds" arg,
    using the OpenGL mode defined by "mode".

    :param bounds: imath.Box3d object that defines bounds
    :param mode: display mode, e.g. GL_POLYGON, GL_LINES
    """
    alembicgl.drawBounds(bounds, mode)