Skip to content

Commit 34d96c5

Browse files
committed
PATCH: add z field to geometryPoint
1 parent 32044a5 commit 34d96c5

File tree

8 files changed

+43
-9
lines changed

8 files changed

+43
-9
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ Name | Type | Description | Notes
956956
957957
Create a document
958958

959-
Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'GLTF', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
959+
Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
960960

961961
### Example
962962

docs/GeometryPoint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**x** | **Number** | |
88
**y** | **Number** | |
9+
**z** | **Number** | |
910

1011

docs/GeometryPointRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**x** | **Number** | |
88
**y** | **Number** | |
9+
**z** | **Number** | |
910

1011

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ export default class CollaborationApi {
859859

860860
/**
861861
* Create a document
862-
* Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'GLTF', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
862+
* Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
863863
* @param {Number} cloudPk A unique integer value identifying this cloud.
864864
* @param {Number} projectPk A unique integer value identifying this project.
865865
* @param {String} name Shown name of the file
@@ -925,7 +925,7 @@ export default class CollaborationApi {
925925

926926
/**
927927
* Create a document
928-
* Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'GLTF', 'DXF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
928+
* Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
929929
* @param {Number} cloudPk A unique integer value identifying this cloud.
930930
* @param {Number} projectPk A unique integer value identifying this project.
931931
* @param {String} name Shown name of the file

src/model/GeometryPoint.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ class GeometryPoint {
2424
* @alias module:model/GeometryPoint
2525
* @param x {Number}
2626
* @param y {Number}
27+
* @param z {Number}
2728
*/
28-
constructor(x, y) {
29+
constructor(x, y, z) {
2930

30-
GeometryPoint.initialize(this, x, y);
31+
GeometryPoint.initialize(this, x, y, z);
3132
}
3233

3334
/**
3435
* Initializes the fields of this object.
3536
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3637
* Only for internal use.
3738
*/
38-
static initialize(obj, x, y) {
39+
static initialize(obj, x, y, z) {
3940
obj['x'] = x;
4041
obj['y'] = y;
42+
obj['z'] = z;
4143
}
4244

4345
/**
@@ -57,6 +59,9 @@ class GeometryPoint {
5759
if (data.hasOwnProperty('y')) {
5860
obj['y'] = ApiClient.convertToType(data['y'], 'Number');
5961
}
62+
if (data.hasOwnProperty('z')) {
63+
obj['z'] = ApiClient.convertToType(data['z'], 'Number');
64+
}
6065
}
6166
return obj;
6267
}
@@ -74,6 +79,11 @@ GeometryPoint.prototype['x'] = undefined;
7479
*/
7580
GeometryPoint.prototype['y'] = undefined;
7681

82+
/**
83+
* @member {Number} z
84+
*/
85+
GeometryPoint.prototype['z'] = undefined;
86+
7787

7888

7989

src/model/GeometryPointRequest.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ class GeometryPointRequest {
2424
* @alias module:model/GeometryPointRequest
2525
* @param x {Number}
2626
* @param y {Number}
27+
* @param z {Number}
2728
*/
28-
constructor(x, y) {
29+
constructor(x, y, z) {
2930

30-
GeometryPointRequest.initialize(this, x, y);
31+
GeometryPointRequest.initialize(this, x, y, z);
3132
}
3233

3334
/**
3435
* Initializes the fields of this object.
3536
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3637
* Only for internal use.
3738
*/
38-
static initialize(obj, x, y) {
39+
static initialize(obj, x, y, z) {
3940
obj['x'] = x;
4041
obj['y'] = y;
42+
obj['z'] = z;
4143
}
4244

4345
/**
@@ -57,6 +59,9 @@ class GeometryPointRequest {
5759
if (data.hasOwnProperty('y')) {
5860
obj['y'] = ApiClient.convertToType(data['y'], 'Number');
5961
}
62+
if (data.hasOwnProperty('z')) {
63+
obj['z'] = ApiClient.convertToType(data['z'], 'Number');
64+
}
6065
}
6166
return obj;
6267
}
@@ -74,6 +79,11 @@ GeometryPointRequest.prototype['x'] = undefined;
7479
*/
7580
GeometryPointRequest.prototype['y'] = undefined;
7681

82+
/**
83+
* @member {Number} z
84+
*/
85+
GeometryPointRequest.prototype['z'] = undefined;
86+
7787

7888

7989

test/model/GeometryPoint.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
//expect(instance).to.be();
6767
});
6868

69+
it('should have the property z (base name: "z")', function() {
70+
// uncomment below and update the code to test the property z
71+
//var instance = new bimdata.GeometryPoint();
72+
//expect(instance).to.be();
73+
});
74+
6975
});
7076

7177
}));

test/model/GeometryPointRequest.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
//expect(instance).to.be();
6767
});
6868

69+
it('should have the property z (base name: "z")', function() {
70+
// uncomment below and update the code to test the property z
71+
//var instance = new bimdata.GeometryPointRequest();
72+
//expect(instance).to.be();
73+
});
74+
6975
});
7076

7177
}));

0 commit comments

Comments
 (0)