圆柱原始是一个实体规定几何geometry 元素的几何cylinder。它可以用来创建管和曲面。

例子

圆柱原始多才多艺,可以被用来制造各种形状:

<!-- Basic cylinder. -->
<a-cylinder color="crimson" height="3" radius="1.5"></a-cylinder>

<!-- Hexagon. -->
<a-cylinder color="cyan" segments-radial="8"></a-cylinder>

<!-- Pac-man. -->
<a-cylinder color="yellow" theta-start="50" theta-length="280" side="double"></a-cylinder>

<!-- Green pipe. -->
<a-cylinder color="green" open-ended="true"></a-cylinder>

属性

注意,汽缸原始网格属性继承常见mesh attributes.。

属性 组件映射 默认值
height geometry.height 1.5
open-ended geometry.openEnded false
radius geometry.radius 0.75
segments-height geometry.segmentsHeight 1
segments-radial geometry.segmentsRadial 36
theta-length geometry.thetaLength 360
theta-start geometry.thetaStart 0