mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-31 01:20:53 +08:00
Scalar fields can now handle large values (with an internal double offset). Their names can also be longer than 255 characters.
This commit is contained in:
+2
-2
@@ -1013,14 +1013,14 @@ CCCoreLib::ScalarField* Tools::RetrieveSF(const ccPointCloud* cloud, const QStri
|
||||
int sfIdx = -1;
|
||||
if (caseSensitive)
|
||||
{
|
||||
sfIdx = cloud->getScalarFieldIndexByName(qPrintable(sfName));
|
||||
sfIdx = cloud->getScalarFieldIndexByName(sfName.toStdString());
|
||||
}
|
||||
else
|
||||
{
|
||||
QString sfNameUpper = sfName.toUpper();
|
||||
for (unsigned i = 0; i < cloud->getNumberOfScalarFields(); ++i)
|
||||
{
|
||||
if (QString(cloud->getScalarField(i)->getName()).toUpper() == sfNameUpper)
|
||||
if (QString::fromStdString(cloud->getScalarField(i)->getName()).toUpper() == sfNameUpper)
|
||||
{
|
||||
sfIdx = static_cast<int>(i);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user