锥原语创建一个锥形状。这是一个实体规定的几何geometry几何元素设置为锥形cone.。
例子
<a-assets>
<img id="texture" src="texture.png">
</a-assets>
<!-- Basic cone. -->
<a-cone color="tomato" radius-bottom="2" radius-top="0.5"></a-cone>
<!-- Textured box. -->
<a-cone src="#texture"></a-cone>
属性
注意,锥原始网格属性继承常见mesh attributes。
| 属性 | 组件映射 | 默认值 |
|---|---|---|
| height | geometry.height | 1.5 |
| open-ended | geometry.openEnded | false |
| radius-bottom | geometry.radiusBottom | 0.75 |
| radius-top | geometry.radiusTop | 0.75 |
| segments-height | geometry.segmentsHeight | 1 |
| segments-radial | geometry.segmentsRadial | 36 |
| theta-length | geometry.thetaLength | 360 |
| theta-start | geometry.thetaStart | 0 |