candcconsulting / GroupingandMapping

MIT License
4 stars 2 forks source link

Length Handling #8

Closed candcconsulting closed 1 year ago

candcconsulting commented 1 year ago

Attempt to handle length did not work Alignment element is returned but when this is linked to the 3D geometry, the massProperties are retured as invalid and no length is returned. It could be that we need to check the unitType and submit only that to the getMassProperties

candcconsulting commented 1 year ago

Resolved by only request massProperties for the correct unitType let operation = 2; switch (unitType) { case "length" : {operation = 0; break} case "area" : {operation = 1; break} case "volume" : {operation = 2; break}

}