mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 01:20:04 +00:00
black .
This commit is contained in:
@@ -1656,7 +1656,7 @@ class CutDecorator:
|
|||||||
for obj in [o for o in bpy.context.visible_objects if o.type == "MESH"]:
|
for obj in [o for o in bpy.context.visible_objects if o.type == "MESH"]:
|
||||||
if not (element := tool.Ifc.get_entity(obj)):
|
if not (element := tool.Ifc.get_entity(obj)):
|
||||||
continue
|
continue
|
||||||
#Skip the elements in the following classes
|
# Skip the elements in the following classes
|
||||||
if element.is_a() in classes_no_cut:
|
if element.is_a() in classes_no_cut:
|
||||||
continue
|
continue
|
||||||
self.decorate(context, obj, element)
|
self.decorate(context, obj, element)
|
||||||
@@ -1726,9 +1726,6 @@ class CutDecorator:
|
|||||||
batch.draw(shader)
|
batch.draw(shader)
|
||||||
|
|
||||||
def decorate(self, context, obj: bpy.types.Object, element: ifcopenshell.entity_instance) -> None:
|
def decorate(self, context, obj: bpy.types.Object, element: ifcopenshell.entity_instance) -> None:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
has_cut_cache = element.id() in DecoratorData.cut_cache
|
has_cut_cache = element.id() in DecoratorData.cut_cache
|
||||||
has_fill_cache = element.id() in DecoratorData.fill_cache
|
has_fill_cache = element.id() in DecoratorData.fill_cache
|
||||||
|
|
||||||
|
|||||||
@@ -455,7 +455,6 @@ class DocProperties(PropertyGroup):
|
|||||||
description="The cut decoractor will be turned off for these classes\nEx: IfcVirtualelement, IfcSpace",
|
description="The cut decoractor will be turned off for these classes\nEx: IfcVirtualelement, IfcSpace",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
should_use_underlay_cache: bool
|
should_use_underlay_cache: bool
|
||||||
should_use_linework_cache: bool
|
should_use_linework_cache: bool
|
||||||
|
|||||||
@@ -676,7 +676,6 @@ class PolylineOperator:
|
|||||||
tool.Blender.update_viewport()
|
tool.Blender.update_viewport()
|
||||||
get_plane_origin()
|
get_plane_origin()
|
||||||
|
|
||||||
|
|
||||||
def handle_instructions(
|
def handle_instructions(
|
||||||
self, context: bpy.types.Context, custom_instructions: dict = {}, custom_info: str = "", overwrite: bool = False
|
self, context: bpy.types.Context, custom_instructions: dict = {}, custom_info: str = "", overwrite: bool = False
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|||||||
@@ -130,10 +130,13 @@ class Cad:
|
|||||||
|
|
||||||
# 180 degrees special cases
|
# 180 degrees special cases
|
||||||
if abs(round(a, 4)) == round(math.pi, 4) and (
|
if abs(round(a, 4)) == round(math.pi, 4) and (
|
||||||
rot_vector.x == 0.0 and rot_vector.y == 0.0 or
|
rot_vector.x == 0.0
|
||||||
rot_vector.x == 0.0 and rot_vector.z == 0.0 or
|
and rot_vector.y == 0.0
|
||||||
rot_vector.y == 0.0 and rot_vector.z == 0.0
|
or rot_vector.x == 0.0
|
||||||
):
|
and rot_vector.z == 0.0
|
||||||
|
or rot_vector.y == 0.0
|
||||||
|
and rot_vector.z == 0.0
|
||||||
|
):
|
||||||
rot_vector *= -1
|
rot_vector *= -1
|
||||||
return rot_vector
|
return rot_vector
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user