mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +00:00
Geolocation utilities now support converting either X axis or Y axis to an angle
This commit is contained in:
@@ -145,7 +145,7 @@ class SetNorthOffset(bpy.types.Operator):
|
||||
|
||||
def execute(self, context):
|
||||
context.scene.sun_pos_properties.north_offset = -radians(
|
||||
ifcopenshell.util.geolocation.xy2angle(
|
||||
ifcopenshell.util.geolocation.xaxis2angle(
|
||||
context.scene.BIMGeoreferenceProperties.map_conversion.get("XAxisAbscissa").float_value,
|
||||
context.scene.BIMGeoreferenceProperties.map_conversion.get("XAxisOrdinate").float_value,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user