mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:43:40 +00:00
Fix #981. Incorrect and inaccurate conversion to imperial units in quantities.
This commit is contained in:
@@ -18,12 +18,12 @@ class SIUnitHelper:
|
|||||||
'yard': 0.914,
|
'yard': 0.914,
|
||||||
'mile': 1609,
|
'mile': 1609,
|
||||||
'square inch': 0.0006452,
|
'square inch': 0.0006452,
|
||||||
'square foot': 0.09290,
|
'square foot': 0.09290304,
|
||||||
'square yard': 0.83612736,
|
'square yard': 0.83612736,
|
||||||
'acre': 4046.86,
|
'acre': 4046.86,
|
||||||
'square mile': 2588881,
|
'square mile': 2588881,
|
||||||
'cubic inch': 0.00001639,
|
'cubic inch': 0.00001639,
|
||||||
'cubic foot': 0.02832,
|
'cubic foot': 0.02831684671168849,
|
||||||
'cubic yard': 0.7636,
|
'cubic yard': 0.7636,
|
||||||
'litre': 0.001,
|
'litre': 0.001,
|
||||||
'fluid ounce UK': 0.0000284130625,
|
'fluid ounce UK': 0.0000284130625,
|
||||||
|
|||||||
@@ -3464,7 +3464,7 @@ class GuessQuantity(bpy.types.Operator):
|
|||||||
def get_prefix_name(self, value):
|
def get_prefix_name(self, value):
|
||||||
if '/' in value:
|
if '/' in value:
|
||||||
return value.split('/')
|
return value.split('/')
|
||||||
return None, bpy.context.scene.BIMProperties.area_unit
|
return None, value
|
||||||
|
|
||||||
def get_blender_prefix_name(self):
|
def get_blender_prefix_name(self):
|
||||||
if bpy.context.scene.unit_settings.system == 'IMPERIAL':
|
if bpy.context.scene.unit_settings.system == 'IMPERIAL':
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ si_conversions = {
|
|||||||
'yard': 0.914,
|
'yard': 0.914,
|
||||||
'mile': 1609,
|
'mile': 1609,
|
||||||
'square inch': 0.0006452,
|
'square inch': 0.0006452,
|
||||||
'square foot': 0.09290,
|
'square foot': 0.09290304,
|
||||||
'square yard': 0.83612736,
|
'square yard': 0.83612736,
|
||||||
'acre': 4046.86,
|
'acre': 4046.86,
|
||||||
'square mile': 2588881,
|
'square mile': 2588881,
|
||||||
'cubic inch': 0.00001639,
|
'cubic inch': 0.00001639,
|
||||||
'cubic foot': 0.02832,
|
'cubic foot': 0.02831684671168849,
|
||||||
'cubic yard': 0.7636,
|
'cubic yard': 0.7636,
|
||||||
'litre': 0.001,
|
'litre': 0.001,
|
||||||
'fluid ounce UK': 0.0000284130625,
|
'fluid ounce UK': 0.0000284130625,
|
||||||
|
|||||||
Reference in New Issue
Block a user