mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
typing
This commit is contained in:
@@ -600,7 +600,7 @@ class Blender(bonsai.core.tool.Blender):
|
||||
return op, row
|
||||
|
||||
@classmethod
|
||||
def get_object_bounding_box(cls, obj: bpy.types.Object) -> dict:
|
||||
def get_object_bounding_box(cls, obj: bpy.types.Object) -> dict[str, Union[tuple[float, float, float], Vector]]:
|
||||
"""Returns dict with local min and max x, y, z values for the object.
|
||||
|
||||
Careful with using this method for objects in EDIT mode because
|
||||
|
||||
@@ -782,7 +782,9 @@ class Model(bonsai.core.tool.Model):
|
||||
return "PROFILE"
|
||||
|
||||
@classmethod
|
||||
def get_wall_axis(cls, obj: bpy.types.Object, layers: Optional[dict[str, Any]] = None) -> dict[str, list[Vector]]:
|
||||
def get_wall_axis(
|
||||
cls, obj: bpy.types.Object, layers: Optional[MaterialLayerParameters] = None
|
||||
) -> dict[str, list[Vector]]:
|
||||
"""Each item of a resulting dictionary is a list of 2 2D vectors."""
|
||||
x_values = [v[0] for v in obj.bound_box]
|
||||
min_x = min(x_values)
|
||||
|
||||
Reference in New Issue
Block a user