pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

nenadpol
Hi,

How can I control cylinder length in PCLVisualizer::addCylinder ?

What is default length?

thanks
Nenad



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

Yves Daoust
I have not tried that, but I would find it logical that the length of the direction vector is the length of the cylinder (though the documentation makes you thing of a unit vector).

-----Original Message-----
From: PCL-users [mailto:[hidden email]] On Behalf Of nenadpol
Sent: Tuesday, February 13, 2018 7:38 AM
To: [hidden email]
Subject: [PCL-users] pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

Hi,

How can I control cylinder length in PCLVisualizer::addCylinder ?

What is default length?

thanks
Nenad



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users


---
This email has been checked for viruses by AVG.
http://www.avg.com

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

Yves Daoust
In reply to this post by nenadpol
It seems that my intuition is confirmed by the following piece of code:

pcl::visualization::createCylinder (const pcl::ModelCoefficients &coefficients, int numsides)
{
  vtkSmartPointer<vtkLineSource> line = vtkSmartPointer<vtkLineSource>::New ();
  line->SetPoint1 (coefficients.values[0], coefficients.values[1], coefficients.values[2]);
  line->SetPoint2 (coefficients.values[3]+coefficients.values[0], coefficients.values[4]+coefficients.values[1], coefficients.values[5]+coefficients.values[2]);

-----Original Message-----
From: Yves Gmail [mailto:[hidden email]]
Sent: Tuesday, February 13, 2018 7:55 AM
To: 'Point Cloud Library (PCL) users' <[hidden email]>
Subject: RE: [PCL-users] pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

I have not tried that, but I would find it logical that the length of the direction vector is the length of the cylinder (though the documentation makes you thing of a unit vector).

-----Original Message-----
From: PCL-users [mailto:[hidden email]] On Behalf Of nenadpol
Sent: Tuesday, February 13, 2018 7:38 AM
To: [hidden email]
Subject: [PCL-users] pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

Hi,

How can I control cylinder length in PCLVisualizer::addCylinder ?

What is default length?

thanks
Nenad



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users


---
This email has been checked for viruses by AVG.
http://www.avg.com

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: pcl 1.8.2 Cylinder length in PCLVisualizer::addCylinder

nenadpol
Hei,

It works,

Thank You

cheers
Nenad



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users