Skip to content

Commit 14aa259

Browse files
committed
clean up
1 parent 8c8f466 commit 14aa259

File tree

6 files changed

+571
-499
lines changed

6 files changed

+571
-499
lines changed

genesis/engine/bvh.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def query(self, aabbs: ti.template()):
489489
class FEMSurfaceTetLBVH(LBVH):
490490
"""
491491
FEMSurfaceTetLBVH is a specialized Linear BVH for FEM surface tetrahedrals.
492+
492493
It extends the LBVH class to support filtering based on FEM surface tetrahedral elements.
493494
"""
494495

@@ -499,10 +500,16 @@ def __init__(self, fem_solver, aabb: AABB, max_n_query_result_per_aabb: int = 8,
499500
@ti.func
500501
def filter(self, i_a, i_q):
501502
"""
502-
Filter function for FEM surface tets. Filter out tet that share vertices.\
503+
Filter function for FEM surface tets. Filter out tet that share vertices.
504+
503505
This is used to avoid self-collisions in FEM surface tets.
504-
i_a: index of the found AABB
505-
i_q: index of the query AABB
506+
507+
Parameters
508+
----------
509+
i_a:
510+
index of the found AABB
511+
i_q:
512+
index of the query AABB
506513
"""
507514
result = i_a >= i_q
508515
i_av = self.fem_solver.elements_i[self.fem_solver.surface_elements[i_a]].el2v

0 commit comments

Comments
 (0)