Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit b52fccd

Browse files
committed
MINOR: add size_ratio fields
1 parent f7b4c79 commit b52fccd

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/Model.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
2323
**xktFile** | **String** | | [optional] [readonly]
2424
**projectId** | **String** | | [optional] [readonly]
2525
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
26+
**sizeRatio** | **Number** | How many meters a unit represents | [optional]
2627
**errors** | **[String]** | List of errors that happened during IFC processing | [optional] [readonly]
2728
**warnings** | **[String]** | List of warnings that happened during IFC processing | [optional] [readonly]
2829
**archived** | **Boolean** | | [optional]

src/model/Model.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class Model {
106106
if (data.hasOwnProperty('world_position')) {
107107
obj['world_position'] = ApiClient.convertToType(data['world_position'], ['Number']);
108108
}
109+
if (data.hasOwnProperty('size_ratio')) {
110+
obj['size_ratio'] = ApiClient.convertToType(data['size_ratio'], 'Number');
111+
}
109112
if (data.hasOwnProperty('errors')) {
110113
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
111114
}
@@ -227,6 +230,12 @@ Model.prototype['project_id'] = undefined;
227230
*/
228231
Model.prototype['world_position'] = undefined;
229232

233+
/**
234+
* How many meters a unit represents
235+
* @member {Number} size_ratio
236+
*/
237+
Model.prototype['size_ratio'] = undefined;
238+
230239
/**
231240
* List of errors that happened during IFC processing
232241
* @member {Array.<String>} errors

test/model/Model.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@
168168
//expect(instance).to.be();
169169
});
170170

171+
it('should have the property sizeRatio (base name: "size_ratio")', function() {
172+
// uncomment below and update the code to test the property sizeRatio
173+
//var instane = new bimdata.Model();
174+
//expect(instance).to.be();
175+
});
176+
171177
it('should have the property errors (base name: "errors")', function() {
172178
// uncomment below and update the code to test the property errors
173179
//var instane = new bimdata.Model();

0 commit comments

Comments
 (0)