RCProject::deletePointsFromStructuredScan() makes RCP no more usable in Recap application

RCProject::deletePointsFromStructuredScan() makes RCP no more usable in Recap application

lamorlette
Advocate Advocate
596 Views
2 Replies
Message 1 of 3

RCProject::deletePointsFromStructuredScan() makes RCP no more usable in Recap application

lamorlette
Advocate
Advocate

When I use RCProject::deletePointsFromStructuredScan() on a project, then the project is no more usable in Recap application: nothing is displayed anymore.

 

To reproduce the issue:

  • Create a RCP from a E57 file (containing one scan).
  • Remove some points.
  • Save the project.
  • Open the project with RCProject::loadFromFile(), with RCFileAccess::ReadWrite mode.
  • Call RCProject::deletePointsFromStructuredScan().
  • Call RCProject::save().
  • Destruct the RCProject.
  • Open the RCP in Recap application.

In Recap application, no point is displayed in 3D View (but display in Real View is fine).

 

I think this is a very serious issue. Still, with Recap SDK, one should be able to get the deleted status of the points of the project without modifying the project, as with Recap application.

597 Views
2 Replies
Replies (2)
Message 2 of 3

yan.fu
Alumni
Alumni

Hi @lamorlette ,

 

The problem is in that 

  • Call RCProject::save().

It's not required in this workflow. You can remove RCProject::save().

We will investigate how RCProject::save()destroys the .rcp file. 

 

Thanks for your feedback!

Yan

Message 3 of 3

yan.fu
Alumni
Alumni

Hi @lamorlette ,

 

I had a quick fix for it and will send you for testing when the package is ready.

 

Thanks again for your feedback.

 

Yan