.. _class_cylinder: cylinder ======== 创建一个圆柱体 -------------- **图块代码** .. image:: img/cylinder.png ---- **javascript** .. code-block:: javascript jih_doc.cylinder(op, radius, height, color) ---- **python** .. code-block:: python jih_doc.cylinder(op, radius, height, color) ---- **npl** .. code-block:: lua jih_doc:cylinder(op, radius, height, color) ---- 参数 ---- +----------+----------+-------------+--------+ | 参数 | 类型 | 默认值 | 说明 | +==========+==========+=============+========+ | op | string | "union" | | +----------+----------+-------------+--------+ | radius | number | 1 | | +----------+----------+-------------+--------+ | height | number | 10 | | +----------+----------+-------------+--------+ | color | string | "#ffc658" | | +----------+----------+-------------+--------+ 示例 ---- .. tabs:: .. tab:: javascript .. code-block:: javascript jih_doc.cylinder("union", 1, 10, "#ffc658") .. tab:: python .. code-block:: python jih_doc.cylinder("union", 1, 10, "#ffc658") .. tab:: npl .. code-block:: lua jih_doc:cylinder("union", 1, 10, "#ffc658")