Skip to content

Commit 5129c25

Browse files
committed
format
1 parent 1c62c0c commit 5129c25

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

genesis/engine/entities/particle_entity.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,13 @@ def _kernel_add_uvs_and_faces_to_solver(
263263
for i_vf_ in range(self.n_vfaces):
264264
i_vf = i_vf_ + self._vface_start
265265
# Offset face indices by vvert_start for global vertex indexing
266-
self.solver.vfaces_indices[i_vf] = ti.Vector([
267-
ti.cast(faces[i_vf_][0], gs.ti_int) + self._vvert_start,
268-
ti.cast(faces[i_vf_][1], gs.ti_int) + self._vvert_start,
269-
ti.cast(faces[i_vf_][2], gs.ti_int) + self._vvert_start,
270-
])
266+
self.solver.vfaces_indices[i_vf] = ti.Vector(
267+
[
268+
ti.cast(faces[i_vf_][0], gs.ti_int) + self._vvert_start,
269+
ti.cast(faces[i_vf_][1], gs.ti_int) + self._vvert_start,
270+
ti.cast(faces[i_vf_][2], gs.ti_int) + self._vvert_start,
271+
]
272+
)
271273

272274
def sample(self):
273275
"""

genesis/utils/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def mesh_to_elements(file, pos=(0, 0, 0), scale=1.0, tet_cfg=dict(), return_uvs=
3535
# Load mesh (with texture data if UVs are requested)
3636
mesh = mu.load_mesh(file, skip_texture=not return_uvs)
3737
mesh.vertices = mesh.vertices * scale
38-
38+
3939
# Extract UVs from mesh before tetrahedralization (if requested)
4040
# (tetgen preserves original vertices at start of output array)
4141
if return_uvs:
@@ -70,7 +70,7 @@ def mesh_to_elements(file, pos=(0, 0, 0), scale=1.0, tet_cfg=dict(), return_uvs=
7070
pkl.dump((verts, elems), tet_file)
7171

7272
verts += np.array(pos)
73-
73+
7474
if return_uvs:
7575
# Build full UV array: original vertices get their UVs, interior vertices get zeros
7676
n_fem = len(verts)

0 commit comments

Comments
 (0)