Skip to content

Fix CPC/LCCP segmentation examples for VTK 7.1 - #2063

Merged
taketwo merged 5 commits into
PointCloudLibrary:masterfrom
yongduek:master
Nov 9, 2017
Merged

Fix CPC/LCCP segmentation examples for VTK 7.1#2063
taketwo merged 5 commits into
PointCloudLibrary:masterfrom
yongduek:master

Conversation

@yongduek

@yongduek yongduek commented Nov 9, 2017

Copy link
Copy Markdown
Contributor

before VTK 7.1
InsertNextTupleValue
after
InsertNextTypedTuple

This change is required if you use VTK version >= 7.1.

Maintainer edit: fixes #2060.

#if (VTK_MAJOR_VERSION < 7) || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION==0)
        colors->InsertNextTupleValue (color);
        colors->InsertNextTupleValue (color);
#else       
        colors->InsertNextTypedTuple(color);
        colors->InsertNextTypedTuple(color);
#endif
#if (VTK_MAJOR_VERSION < 7) || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION==0)
        colors->InsertNextTupleValue (color);
        colors->InsertNextTupleValue (color);
#else       
        colors->InsertNextTypedTuple(color);
        colors->InsertNextTypedTuple(color);
#endif
#if (VTK_MAJOR_VERSION < 7) || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION==0)
        colors->InsertNextTupleValue (color);
        colors->InsertNextTupleValue (color);
#else       
        colors->InsertNextTypedTuple(color);
        colors->InsertNextTypedTuple(color);
#endif
color = concave_color;

// two times since we add also two points per edge
#if (VTK_MAJOR_VERSION < 7) || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION==0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add spaces around ==

colors->InsertNextTupleValue (color);

#else
colors->InsertNextTypedTuple(color);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add spaces between function name and brackets

@taketwo
taketwo merged commit 6555b9a into PointCloudLibrary:master Nov 9, 2017
@taketwo

taketwo commented Nov 9, 2017

Copy link
Copy Markdown
Member

Thanks for contributing!

@taketwo taketwo added this to the pcl-1.9.0 milestone Nov 9, 2017
UnaNancyOwen pushed a commit to UnaNancyOwen/pcl that referenced this pull request Nov 24, 2017
@taketwo taketwo changed the title VTK function change since version 7.1 Fix CPC/LCCP segmentation examples for VTK 7.1 Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: ‘class vtkUnsignedCharArray’ has no member named ‘InsertNextTupleValue’ colors->InsertNextTupleValue (color);

2 participants