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!