mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
6cffc59376
* fix primitives * defines & view clear color
17 lines
383 B
JavaScript
17 lines
383 B
JavaScript
'use strict';
|
|
|
|
import cylinder from './cylinder';
|
|
|
|
/**
|
|
* @param {Number} radius
|
|
* @param {Number} height
|
|
* @param {Object} opts
|
|
* @param {Number} opts.radialSegments
|
|
* @param {Number} opts.heightSegments
|
|
* @param {Boolean} opts.capped
|
|
* @param {Number} opts.arc
|
|
*/
|
|
export default function (radius = 0.5, height = 1, opts = {}) {
|
|
return cylinder(0, radius, height, opts);
|
|
}
|