Using the GeometricalAnalysisTools
Posted: Mon Feb 10, 2020 2:45 pm
Hi everyone,
I'm having trouble using the GeometricalAnalysisTools inside my own class.
In the code below, mCloud is a succesfully read ccPointCloud, but when the program enters the ComputeCharactersitic function it never leaves it.
If I calculate the octree outside of the function, using the DgmOctree class, and then passing it as a parameter to the function I get an CCLib::GeometricalAnalysisTools::ProcessFailed (-4). However, I think this may be an even worse behavior.
Has anyone done anything similar or does know where is the problem?
Thanks in advance!
I'm having trouble using the GeometricalAnalysisTools inside my own class.
In the code below, mCloud is a succesfully read ccPointCloud, but when the program enters the ComputeCharactersitic function it never leaves it.
Code: Select all
void CCGeometricAnalizer::compute()
{
//create SF
int idx = mCloud.addScalarField("Curvature");
mCloud.setCurrentInScalarField(idx); //set in scalar field - curvature is written here
mCloud.setCurrentScalarField(idx);
double radius=10;
GeometricalAnalysisTools::ErrorCode error = GeometricalAnalysisTools::ComputeCharactersitic(CCLib::GeometricalAnalysisTools::Curvature,
CCLib::Neighbourhood::CurvatureType::MEAN_CURV,
&mCloud,
static_cast<PointCoordinateType>(radius));
}
Code: Select all
DgmOctree* octreee=new DgmOctree(&mCloud);
Thanks in advance!