Skip to content

No ‘scene.mvs’ file generated when running InterfacePolycam use parameter " -o SAVE/PATH/scene.mvs " #1245

@wioponsen

Description

@wioponsen

Describe the bug
No ‘scene.mvs’ file generated when running InterfacePolycam use parameter " -o SAVE/PATH/scene.mvs ".
if don't use parameter " -o ", it will save ‘scene.mvs’ file successfully in current folder.

To Reproduce
Steps to reproduce the behavior:

  1. prepare polycam raw datas
  2. running
InterfacePolycam -i polycam/ -o scene.mvs
  1. .dmap could be generated, but NO ‘scene.mvs’ file

Expected behavior
Generate ‘scene.mvs’

Additional context
I noticed that apps/InterfacePolycam/InterfacePolycam.cpp Line 151

	// initialize optional options
	Util::ensureValidFolderPath(OPT::strOutputFileName);
	if (OPT::strOutputFileName.empty())
		OPT::strOutputFileName = "scene" MVS_EXT;

if OPT::strOutputFileName is not empty, it will add a ‘/’ in the end , causing failure in scene.Save Line 357 .

So, by commenting out this code in line151, the program will work correctly. Here is the code:

	// initialize optional options
	//Util::ensureValidFolderPath(OPT::strOutputFileName);
	if (OPT::strOutputFileName.empty())
		OPT::strOutputFileName = "scene" MVS_EXT;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions