Skip to content

Conversation

mszarski
Copy link
Contributor

Added the ability to specify the axes to use for the nurbs cylinder fit.
The first axis provided is used as the clamped (cylinder) axis, while the other two define a plane on which control points are distributed periodically in a circle. This is helpful when the cylinder radius is larger than the point spread in the axis direction.

Eigen::Vector3d mean;

unsigned s = unsigned (data->interior.size ());
mean = NurbsTools::computeMean(data->interior);
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a space in front of the bracket, so it's conforming to the PCL coding style? Thanks!

@mszarski
Copy link
Contributor Author

mszarski commented Oct 1, 2013

@jspricke thanks! Fixed.

@jspricke
Copy link
Member

jspricke commented Oct 1, 2013

@mszarski would be great to have a unit test, otherwise I'm fine with merging this.

@mszarski
Copy link
Contributor Author

mszarski commented Oct 3, 2013

It looks like none of the NURBS classes have unit tests. When I have a block of time I will look at contributing some. At the very least PCL should have an example of the FittingCylinder class which it doesn't currently. I'll work on that next.

jspricke added a commit that referenced this pull request Oct 7, 2013
NURBS Cylinder Fit Axis Initialization
@jspricke jspricke merged commit a4c99da into PointCloudLibrary:master Oct 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants