mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
black .
This commit is contained in:
@@ -152,13 +152,13 @@ class BIMModelProperties(PropertyGroup):
|
|||||||
direction_sense: bpy.props.EnumProperty(
|
direction_sense: bpy.props.EnumProperty(
|
||||||
items=[("POSITIVE", "Positive", ""), ("NEGATIVE", "Negative", "")],
|
items=[("POSITIVE", "Positive", ""), ("NEGATIVE", "Negative", "")],
|
||||||
name="Material Usage Direction Sense",
|
name="Material Usage Direction Sense",
|
||||||
default="POSITIVE"
|
default="POSITIVE",
|
||||||
)
|
)
|
||||||
offset_type: bpy.props.EnumProperty(
|
offset_type: bpy.props.EnumProperty(
|
||||||
items=[("EXTERIOR", "Exterior", ""), ("CENTER", "Center", ""), ("INTERIOR", "Interior", "")],
|
items=[("EXTERIOR", "Exterior", ""), ("CENTER", "Center", ""), ("INTERIOR", "Interior", "")],
|
||||||
name="Layer Offset Type",
|
name="Layer Offset Type",
|
||||||
default="EXTERIOR",
|
default="EXTERIOR",
|
||||||
description="It's a convention that affects the offset to reference line"
|
description="It's a convention that affects the offset to reference line",
|
||||||
)
|
)
|
||||||
offset: bpy.props.FloatProperty(name="Offset", default=0.0, description="Material usage offset from reference line")
|
offset: bpy.props.FloatProperty(name="Offset", default=0.0, description="Material usage offset from reference line")
|
||||||
|
|
||||||
|
|||||||
@@ -283,7 +283,6 @@ class Polyline(bonsai.core.tool.Polyline):
|
|||||||
if round(angle, 4) == round(math.pi, 4):
|
if round(angle, 4) == round(math.pi, 4):
|
||||||
rot_vector.x = -1.0
|
rot_vector.x = -1.0
|
||||||
|
|
||||||
|
|
||||||
coords = rot_vector * distance + last_point
|
coords = rot_vector * distance + last_point
|
||||||
|
|
||||||
x = coords[0]
|
x = coords[0]
|
||||||
|
|||||||
@@ -76,9 +76,7 @@ class Pset(bonsai.core.tool.Pset):
|
|||||||
predefined_type = ifcopenshell.util.element.get_predefined_type(element)
|
predefined_type = ifcopenshell.util.element.get_predefined_type(element)
|
||||||
return bool(
|
return bool(
|
||||||
pset_name
|
pset_name
|
||||||
in bonsai.bim.schema.ifc.psetqto.get_applicable_names(
|
in bonsai.bim.schema.ifc.psetqto.get_applicable_names(element.is_a(), predefined_type, pset_only=True)
|
||||||
element.is_a(), predefined_type, pset_only=True
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user