Skip to content

Commit 9131804

Browse files
committed
black .
1 parent 6e2e01b commit 9131804

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/bonsai/bonsai/bim/module/model/prop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,11 @@ class PolylinePoint(PropertyGroup):
749749
angle: bpy.props.StringProperty(name="Angle")
750750
position: bpy.props.FloatVectorProperty(name="Decorator Position", size=3)
751751

752+
752753
class MeasurePolyline(PropertyGroup):
753754
polyline_point: bpy.props.CollectionProperty(type=PolylinePoint)
754755

756+
755757
class BIMPolylineProperties(PropertyGroup):
756758
snap_mouse_point: bpy.props.CollectionProperty(type=SnapMousePoint)
757759
snap_mouse_ref: bpy.props.CollectionProperty(type=SnapMousePoint)

src/bonsai/bonsai/tool/raycast.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,17 +230,16 @@ def ray_cast_to_measure(cls, context, event, points):
230230
bm.verts.index_update()
231231
bm.edges.index_update()
232232

233-
indices = list(range(len(points)-1))
234-
edges = [(i, i+1) for i in range(len(points)-1)]
233+
indices = list(range(len(points) - 1))
234+
edges = [(i, i + 1) for i in range(len(points) - 1)]
235235
new_verts = [bm.verts.new(Vector((point.x, point.y, point.z))) for point in points]
236236
new_edges = [bm.edges.new((new_verts[e[0]], new_verts[e[1]])) for e in edges]
237237
bm.verts.index_update()
238238
bm.edges.index_update()
239239

240240
snapping_points = cls.ray_cast_by_proximity(context, event, None, custom_bmesh=bm)
241241
bm.free()
242-
return snapping_points
243-
242+
return snapping_points
244243

245244
@classmethod
246245
def ray_cast_to_plane(cls, context, event, plane_origin, plane_normal):

src/bonsai/bonsai/tool/snap.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def move_polyline_to_measure(cls):
168168
measure_point.dim = point.dim
169169
measure_point.angle = point.angle
170170
measure_point.position = point.position
171-
171+
172172
@classmethod
173173
def snap_on_axis(cls, intersection, tool_state, lock_angle=False):
174174

@@ -392,16 +392,15 @@ def cast_rays_and_get_best_object(objs_to_raycast, mouse_pos):
392392
if snap_points:
393393
detected_snaps.append({"Polyline": snap_points})
394394

395-
# Measure
395+
# Measure
396396
measure_data = context.scene.BIMPolylineProperties.measure_polyline
397397
for measure in measure_data:
398398
measure_points = measure.polyline_point
399-
print('points', measure_points)
399+
print("points", measure_points)
400400
snap_points = tool.Raycast.ray_cast_to_measure(context, event, measure_points)
401401
if snap_points:
402402
detected_snaps.append({"Polyline": snap_points})
403403

404-
405404
# Axis and Plane
406405
elevation = tool.Ifc.get_object(tool.Root.get_default_container()).location.z
407406

src/ifcopenshell-python/ifcopenshell/geom/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,8 @@ def svg(
573573

574574
# ttl is always available since it doesn't depend on any C++ libraries,
575575
# just people might be using an outdated binary
576-
if hasattr(ifcopenshell_wrapper, 'TtlWktSerializer'):
576+
if hasattr(ifcopenshell_wrapper, "TtlWktSerializer"):
577+
577578
@staticmethod
578579
def ttl(
579580
out_filename: Union[str, serializers.buffer], geometry_settings: settings, settings: serializer_settings

0 commit comments

Comments
 (0)