Skip to content

Conversation

@iory
Copy link
Owner

@iory iory commented Oct 19, 2025

Add Blender-based mesh remeshing support for URDF conversion
This commit introduces Blender voxel remeshing capability to the URDF mesh
conversion workflow, enabling high-quality mesh simplification while preserving
vertex colors and visual fidelity.

Key features:

  • Add --blender-remesh option to enable Blender voxel remesher
  • Add --blender-voxel-size parameter to control remesh resolution
  • Add --blender-executable option for custom Blender installation paths
  • Add --remeshed-suffix parameter to control output filename suffixes
  • Implement automatic Blender executable detection across platforms
  • Add collision mesh format conversion (DAE to STL) support
  • Implement caching mechanism to prevent duplicate mesh processing
  • Add comprehensive error handling for invalid URDF files
  • Add unit tests with automatic skip when Blender is unavailable

The Blender remesher provides superior mesh topology compared to traditional
decimation methods, making it ideal for both visual and collision meshes in
robotic applications.

Original mesh

Screenshot 2025-10-20 at 1 24 21

Remeshed mesh

Screenshot 2025-10-20 at 1 24 28

iory added 3 commits October 20, 2025 01:10
This commit introduces Blender voxel remeshing capability to the URDF mesh
conversion workflow, enabling high-quality mesh simplification while preserving
vertex colors and visual fidelity.

Key features:
- Add --blender-remesh option to enable Blender voxel remesher
- Add --blender-voxel-size parameter to control remesh resolution
- Add --blender-executable option for custom Blender installation paths
- Add --remeshed-suffix parameter to control output filename suffixes
- Implement automatic Blender executable detection across platforms
- Add collision mesh format conversion (DAE to STL) support
- Implement caching mechanism to prevent duplicate mesh processing
- Add comprehensive error handling for invalid URDF files
- Add unit tests with automatic skip when Blender is unavailable

The Blender remesher provides superior mesh topology compared to traditional
decimation methods, making it ideal for both visual and collision meshes in
robotic applications.
This commit addresses URDF loading failures when using relative paths
by converting them to absolute paths before processing.

Changes:
- Convert relative URDF paths to absolute paths before loading
- Remove problematic test case using 'cd ..' shell command pattern
- Simplify test execution by removing conditional directory logic

The path resolution fix ensures that URDFs can be loaded correctly
regardless of the current working directory, preventing XML parsing
errors when resolving internal mesh file references.
@iory iory merged commit 9ef3f2a into main Oct 19, 2025
21 checks passed
@iory iory deleted the remesh branch October 19, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants