Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lorycontixd committed Nov 15, 2024
1 parent 1738a87 commit eff915d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/jaxsim/parsers/rod/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
VALID_AXIS = {"x": 0, "y": 1, "z": 2}


def parse_object_mapping_object(obj: trimesh.Trimesh | dict) -> trimesh.Trimesh:
if isinstance(obj, trimesh.Trimesh):
return obj
elif isinstance(obj, dict):
if obj["type"] == "box":
return trimesh.creation.box(extents=obj["extents"])
elif obj["type"] == "sphere":
return trimesh.creation.icosphere(subdivisions=4, radius=obj["radius"])
else:
raise ValueError(f"Invalid object type {obj['type']}")
else:
raise ValueError("Invalid object type")


def extract_points_vertices(mesh: trimesh.Trimesh) -> np.ndarray:
"""
Extracts the vertices of a mesh as points.
Expand Down

0 comments on commit eff915d

Please sign in to comment.