Our users have asked for us to import from RCP using the regions they have defined in Recap to split the data.
Unfortunately, IRCPointAccessor::getRegion always seems to return 0.
I can find this thread from 2018 which says that a default value was returned in the first release of the SDK:
Solved: Get list of regions for a RCProject - Autodesk Community - ReCap
Is it still the case that this function is not implemented?
Thanks.
Solved! Go to Solution.
Solved by zhaoyang_ma. Go to Solution.
May I know how you load RCP files? I guess you are using the following API:
static RCSharedPtr<RCProject> Autodesk::RealityComputing::Data::RCProject::loadFromFile(
const RCString& projectFilePath,
const RCFileAccess& fileAccess,
const RCProjectUserEdits& userEdits,
RCCode& code)
If so, could you try set the third parameter as:
RCProjectUserEdits::All
NOTE: by setting the third parameter to RCProjectUserEdits::All, edits other than regions (e.g., clips, ...) will also be applied.
Could you check whether region information for each point can be obtained using the API?
virtual int Autodesk::RealityComputing::Data::IRCPointAccessor::getRegion() const
Can't find what you're looking for? Ask the community or share your knowledge.
