Skip to content

Fix settings for exporting mesh#141

Merged
YoheiKakiuchi merged 2 commits into
IRSL-tut:mainfrom
YoheiKakiuchi:fix_export_mesh
Jan 29, 2026
Merged

Fix settings for exporting mesh#141
YoheiKakiuchi merged 2 commits into
IRSL-tut:mainfrom
YoheiKakiuchi:fix_export_mesh

Conversation

@YoheiKakiuchi

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes mesh export settings by modifying how mesh shapes are named and handled during the export process, and adds a missing export mode option.

Changes:

  • Commented out setUri call for loaded mesh shapes to prevent path conflicts during export
  • Changed shape naming from "/geom" to "/shape" for mesh geometries
  • Added "Copy model files" option to the export dialog

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/RobotAssemblerBody.cpp Modified mesh shape naming and commented out setUri call to fix export functionality
src/AssemblerManager.cpp Added CopyModelFiles mode to export dialog options

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

shape->setName(name_ + "/geom");
shape->setUri(geom.url, geom_file_path);
shape->setName(name_ + "/shape");
//shape->setUri(geom.url, geom_file_path);

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setUri call has been commented out instead of removed. If this change is intended to be permanent, consider removing the commented code entirely. Commented-out code can create confusion about whether it might be needed in the future and makes the codebase harder to maintain.

Suggested change
//shape->setUri(geom.url, geom_file_path);

Copilot uses AI. Check for mistakes.
DEBUG_STREAM(" mesh loaded!");
shape->setName(name_ + "/geom");
shape->setUri(geom.url, geom_file_path);
shape->setName(name_ + "/shape");

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shape name was changed from "/geom" to "/shape", but the transform name on line 102 still uses "/geom_postrans". This creates a naming inconsistency. Consider either:

  1. Keeping the shape name as "/geom" to maintain consistency with the transform name, or
  2. Changing the transform name to "/shape_postrans" to match the new shape naming convention.

Note that line 60 in the addShape helper function uses "geom_postrans" (without prefix), while line 102 uses the prefixed version. Consistency across all geometry types would improve code maintainability.

Copilot uses AI. Check for mistakes.
@YoheiKakiuchi YoheiKakiuchi merged commit bd29348 into IRSL-tut:main Jan 29, 2026
8 checks passed
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