Skip to content

Commit

Permalink
Fixed minor commenting format
Browse files Browse the repository at this point in the history
  • Loading branch information
lorycontixd committed Nov 15, 2024
1 parent eff915d commit 2d46a70
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/jaxsim/parsers/rod/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def extract_points_select_points_over_axis(
dirs = {"higher": np.s_[-n:], "lower": np.s_[:n]}
arr = mesh.vertices

# Sort the array in ascending order
arr.sort(axis=0) # Sort rows lexicographically first, then columnar
# Sort rows lexicographically first, then columnar.
arr.sort(axis=0)
sorted_arr = arr[dirs[direction]]
return sorted_arr

Expand All @@ -90,13 +90,12 @@ def extract_points_aap(
AssertionError: If the lower bound is greater than the upper bound.
"""

# Check bounds
# Check bounds.
upper = upper if upper is not None else np.inf
lower = lower if lower is not None else -np.inf
assert lower < upper, "Invalid bounds for axis-aligned plane"

# Logic

# Logic.
points = mesh.vertices[
(mesh.vertices[:, VALID_AXIS[axis]] >= lower)
& (mesh.vertices[:, VALID_AXIS[axis]] <= upper)
Expand Down

0 comments on commit 2d46a70

Please sign in to comment.