Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 364 Bytes

helpers.quad.rst

File metadata and controls

26 lines (18 loc) · 364 Bytes

quad

.. autofunction:: k3d.helpers.quad

Examples

import k3d

vertices, indices = k3d.helpers.quad(1, 3)

"""
array([-0.5, -1.5, 0.,
        0.5, -1.5, 0.,
        0.5,  1.5, 0.,
       -0.5,  1.5, 0.] ,dtype=float32)

array([0, 1, 2, 0, 2, 3], dtype=uint32)
"""