Skip to content

Commit

Permalink
[skip ci] Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored and github-actions[bot] committed Dec 17, 2023
1 parent d9dfac6 commit 5ba6192
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pymoab import core, types



def fix_normals(vertices: list, triangles_in_each_volume: list):
fixed_triangles = []
for triangles in triangles_in_each_volume:
Expand Down Expand Up @@ -462,7 +461,10 @@ def export_dagmc_h5m_file(
for part in self.parts:
assembly.add(part)

imprinted_assembly, imprinted_solids_with_original_id = cq.occ_impl.assembly.imprint(assembly)
(
imprinted_assembly,
imprinted_solids_with_original_id,
) = cq.occ_impl.assembly.imprint(assembly)

gmsh, volumes = mesh_brep(
brep_object=imprinted_assembly.wrapped._address(),
Expand All @@ -472,12 +474,13 @@ def export_dagmc_h5m_file(
)

original_ids = get_ids_from_assembly(assembly)
scrambled_ids = get_ids_from_imprinted_assembly(imprinted_solids_with_original_id)
scrambled_ids = get_ids_from_imprinted_assembly(
imprinted_solids_with_original_id
)

# both id lists should be the same length as each other and the same
# length as the self.material_tags


material_tags_in_brep_order = order_material_ids_by_brep_order(
original_ids, scrambled_ids, self.material_tags
)
Expand Down

0 comments on commit 5ba6192

Please sign in to comment.