Categorize the approximate shape of an array of Points in 3D Space
- by user1295133
I have a set of points in 3d space and I want to be able to categorize the shape that best fits them - cube, sphere, cylinder, planar (flat) etc.
I've looked at supervised/machine learning but since I need first generate a large training data set that's not really suitable.
My dream solution would be a java library with a wonderful magical function something like :
public enum ShapeType {
CUBE,
SPHERE,
CYLINDER,
PLANAR
}
public ShapeType CategorizeShapeFromPoints( 3DPoint[] points )
However, any and all help will be appreciated. Thanks