+ do some code cleanup and renaming in Points module

This commit is contained in:
wmayer
2016-02-21 16:18:28 +01:00
parent f6596963f1
commit c35af9011e
13 changed files with 76 additions and 104 deletions

View File

@@ -48,7 +48,7 @@
#include "Points.h"
#include "PointsPy.h"
#include "PointsAlgos.h"
#include "PointsFeature.h"
#include "Structured.h"
#include "Properties.h"
namespace Points {
@@ -107,9 +107,9 @@ private:
Points::Feature *pcFeature = 0;
if (reader->hasProperties()) {
// is organized in a grid structure?
if (reader->isOrganized()) {
pcFeature = new Points::OrganizedCustom();
// Scattered or structured points?
if (reader->isStructured()) {
pcFeature = new Points::StructuredCustom();
App::PropertyInteger* width = static_cast<App::PropertyInteger*>
(pcFeature->getPropertyByName("Width"));
@@ -214,9 +214,9 @@ private:
Points::Feature *pcFeature = 0;
if (reader->hasProperties()) {
// is organized in a grid structure?
if (reader->isOrganized()) {
pcFeature = new Points::OrganizedCustom();
// Scattered or structured points?
if (reader->isStructured()) {
pcFeature = new Points::StructuredCustom();
App::PropertyInteger* width = static_cast<App::PropertyInteger*>
(pcFeature->getPropertyByName("Width"));