@@ -1400,7 +1400,7 @@ module.exports = {
1400
1400
constructorArgs : [ 'radius' , 'segments' , 'thetaStart' , 'thetaLength' ] ,
1401
1401
properties : {
1402
1402
radius : new Types . Float ( 50.0 ) ,
1403
- segments : new Types . Int ( 8 ) , // TODO: min:3
1403
+ segments : new Types . Int ( 8 , { minValue : 3 } ) ,
1404
1404
thetaStart : new Types . Float ( 0.0 ) ,
1405
1405
thetaLength : new Types . Float ( Math . PI * 2.0 ) ,
1406
1406
} ,
@@ -1411,7 +1411,7 @@ module.exports = {
1411
1411
constructorArgs : [ 'radius' , 'segments' , 'thetaStart' , 'thetaLength' ] ,
1412
1412
properties : {
1413
1413
radius : new Types . Float ( 50.0 ) ,
1414
- segments : new Types . Int ( 8 ) , // TODO: min:3
1414
+ segments : new Types . Int ( 8 , { minValue : 3 } ) ,
1415
1415
thetaStart : new Types . Float ( 0.0 ) ,
1416
1416
thetaLength : new Types . Float ( Math . PI * 2.0 ) ,
1417
1417
} ,
@@ -1570,8 +1570,8 @@ module.exports = {
1570
1570
properties : {
1571
1571
innerRadius : new Types . Float ( 0.0 ) , // Docs: "Default is 0, but it doesn't work right when innerRadius is set to 0.
1572
1572
outerRadius : new Types . Float ( 50.0 ) ,
1573
- thetaSegments : new Types . Int ( 8 ) , // TODO: min: 3
1574
- phiSegments : new Types . Int ( 8 ) , // TODO: min 1
1573
+ thetaSegments : new Types . Int ( 8 , { minValue : 3 } ) ,
1574
+ phiSegments : new Types . Int ( 8 , { minValue : 1 } ) ,
1575
1575
thetaStart : new Types . Float ( 0 ) ,
1576
1576
thetaLength : new Types . Float ( Math . PI * 2 ) ,
1577
1577
} ,
@@ -1583,8 +1583,8 @@ module.exports = {
1583
1583
properties : {
1584
1584
innerRadius : new Types . Float ( 0.0 ) , // Docs: "Default is 0, but it doesn't work right when innerRadius is set to 0.
1585
1585
outerRadius : new Types . Float ( 50.0 ) ,
1586
- thetaSegments : new Types . Int ( 8 ) , // TODO: min: 3
1587
- phiSegments : new Types . Int ( 8 ) , // TODO: min 1
1586
+ thetaSegments : new Types . Int ( 8 , { minValue : 3 } ) ,
1587
+ phiSegments : new Types . Int ( 8 , { minValue : 1 } ) ,
1588
1588
thetaStart : new Types . Float ( 0 ) ,
1589
1589
thetaLength : new Types . Float ( Math . PI * 2 ) ,
1590
1590
} ,
0 commit comments