.. _class_geom_circle: geom_circle =========== 创建一个圆 ---------- **图块代码** .. image:: img/geom_circle.png ---- **javascript** .. code-block:: javascript jih_doc.geom_circle(x, y, z, r, color, axis_dir) ---- **python** .. code-block:: python jih_doc.geom_circle(x, y, z, r, color, axis_dir) ---- **npl** .. code-block:: lua jih_doc:geom_circle(x, y, z, r, color, axis_dir) ---- 参数 ---- +------------+----------+-------------+--------+ | 参数 | 类型 | 默认值 | 说明 | +============+==========+=============+========+ | x | number | 0 | | +------------+----------+-------------+--------+ | y | number | 0 | | +------------+----------+-------------+--------+ | z | number | 0 | | +------------+----------+-------------+--------+ | r | number | 1 | | +------------+----------+-------------+--------+ | color | string | "#ffc658" | | +------------+----------+-------------+--------+ | axis_dir | string | "'z'" | | +------------+----------+-------------+--------+ 示例 ---- .. tabs:: .. tab:: javascript .. code-block:: javascript jih_doc.geom_circle(0, 0, 0, 1, "#ffc658", 'z') .. tab:: python .. code-block:: python jih_doc.geom_circle(0, 0, 0, 1, "#ffc658", 'z') .. tab:: npl .. code-block:: lua jih_doc:geom_circle(0, 0, 0, 1, "#ffc658", 'z')