Skip to content

Commit 70d5a11

Browse files
authored
Update JSDoc on procedural.js (playcanvas#3386)
Some fixes for missing descriptions.
1 parent cce5af8 commit 70d5a11

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/scene/procedural.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ function createMesh(device, positions, opts) {
301301
* @param {number} [opts.ringRadius] - The radius from the centre of the torus to the centre of the tube (defaults to 0.3).
302302
* @param {number} [opts.segments] - The number of radial divisions forming cross-sections of the torus ring (defaults to 20).
303303
* @param {number} [opts.sides] - The number of divisions around the tubular body of the torus ring (defaults to 30).
304+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
304305
* @returns {Mesh} A new torus-shaped mesh.
305306
*/
306307
function createTorus(device, opts) {
@@ -600,6 +601,7 @@ function _createConeData(baseRadius, peakRadius, height, heightSegments, capSegm
600601
* @param {number} [opts.height] - The length of the body of the cylinder (defaults to 1.0).
601602
* @param {number} [opts.heightSegments] - The number of divisions along the length of the cylinder (defaults to 5).
602603
* @param {number} [opts.capSegments] - The number of divisions around the tubular body of the cylinder (defaults to 20).
604+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
603605
* @returns {Mesh} A new cylinder-shaped mesh.
604606
*/
605607
function createCylinder(device, opts) {
@@ -645,6 +647,7 @@ function createCylinder(device, opts) {
645647
* @param {number} [opts.height] - The length of the body of the capsule from tip to tip (defaults to 1.0).
646648
* @param {number} [opts.heightSegments] - The number of divisions along the tubular length of the capsule (defaults to 1).
647649
* @param {number} [opts.sides] - The number of divisions around the tubular body of the capsule (defaults to 20).
650+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
648651
* @returns {Mesh} A new cylinder-shaped mesh.
649652
*/
650653
function createCapsule(device, opts) {
@@ -684,6 +687,7 @@ function createCapsule(device, opts) {
684687
* @param {number} [opts.height] - The length of the body of the cone (defaults to 1.0).
685688
* @param {number} [opts.heightSegments] - The number of divisions along the length of the cone (defaults to 5).
686689
* @param {number} [opts.capSegments] - The number of divisions around the tubular body of the cone (defaults to 18).
690+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
687691
* @returns {Mesh} A new cone-shaped mesh.
688692
*/
689693
function createCone(device, opts) {
@@ -718,8 +722,9 @@ function createCone(device, opts) {
718722
* @param {GraphicsDevice} device - The graphics device used to manage the mesh.
719723
* @param {object} [opts] - An object that specifies optional inputs for the function as follows:
720724
* @param {number} [opts.radius] - The radius of the sphere (defaults to 0.5).
721-
* @param {number} [opts.segments] - The number of divisions along the longitudinal
722-
* and latitudinal axes of the sphere (defaults to 16).
725+
* @param {number} [opts.latitudeBands] - The number of divisions along the latitudinal axis of the sphere (defaults to 16).
726+
* @param {number} [opts.longitudeBands] - The number of divisions along the longitudinal axis of the sphere (defaults to 16).
727+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
723728
* @returns {Mesh} A new sphere-shaped mesh.
724729
*/
725730
function createSphere(device, opts) {
@@ -803,6 +808,7 @@ function createSphere(device, opts) {
803808
* @param {Vec2} [opts.halfExtents] - The half dimensions of the plane in the X and Z axes (defaults to [0.5, 0.5]).
804809
* @param {number} [opts.widthSegments] - The number of divisions along the X axis of the plane (defaults to 5).
805810
* @param {number} [opts.lengthSegments] - The number of divisions along the Z axis of the plane (defaults to 5).
811+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
806812
* @returns {Mesh} A new plane-shaped mesh.
807813
*/
808814
function createPlane(device, opts) {
@@ -883,6 +889,7 @@ function createPlane(device, opts) {
883889
* @param {number} [opts.widthSegments] - The number of divisions along the X axis of the box (defaults to 1).
884890
* @param {number} [opts.lengthSegments] - The number of divisions along the Z axis of the box (defaults to 1).
885891
* @param {number} [opts.heightSegments] - The number of divisions along the Y axis of the box (defaults to 1).
892+
* @param {boolean} [opts.calculateTangents] - Generate tangent information (defaults to false).
886893
* @returns {Mesh} A new box-shaped mesh.
887894
*/
888895
function createBox(device, opts) {

0 commit comments

Comments
 (0)