mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
black format
This commit is contained in:
@@ -348,17 +348,19 @@ def main(settings, files, iterators=None, merge_projection=True, progress_functi
|
|||||||
# of element surfaces non-orthogonal to the view direction
|
# of element surfaces non-orthogonal to the view direction
|
||||||
|
|
||||||
def format(x):
|
def format(x):
|
||||||
if x is None: return None
|
if x is None:
|
||||||
|
return None
|
||||||
elif isinstance(x, tuple):
|
elif isinstance(x, tuple):
|
||||||
# found to be inside element using tree.select() no face or style info
|
# found to be inside element using tree.select() no face or style info
|
||||||
return x
|
return x
|
||||||
else: return (x.instance.is_a(), x.ray_distance, tuple(x.position))
|
else:
|
||||||
|
return (x.instance.is_a(), x.ray_distance, tuple(x.position))
|
||||||
|
|
||||||
pp = pairs[he_idx : he_idx + 2]
|
pp = pairs[he_idx : he_idx + 2]
|
||||||
if pp == (-1, -1):
|
if pp == (-1, -1):
|
||||||
continue
|
continue
|
||||||
data = list(map(format, map(semantics.__getitem__, pp)))
|
data = list(map(format, map(semantics.__getitem__, pp)))
|
||||||
if None not in data and data[0][0] == data[1][0] and abs(data[0][1] - data[1][1]) < 1.e-5:
|
if None not in data and data[0][0] == data[1][0] and abs(data[0][1] - data[1][1]) < 1.0e-5:
|
||||||
to_remove.append(he_idx // 2)
|
to_remove.append(he_idx // 2)
|
||||||
# Print edge index and semantic data
|
# Print edge index and semantic data
|
||||||
# print(he_idx // 2, *data)
|
# print(he_idx // 2, *data)
|
||||||
|
|||||||
Reference in New Issue
Block a user