skspatial.objects.Plane.to_points

Plane.to_points(**kwargs) Points

Return points on the surface of the object.

Parameters
kwargs: dict, optional

Additional keywords passed to the to_mesh method of the class.

Returns
Points

Points on the surface of the object.

Examples

>>> from skspatial.objects import Sphere
>>> sphere = Sphere([0, 0, 0], 1)
>>> sphere.to_points(n_angles=3).round().unique()
Points([[ 0., -1.,  0.],
        [ 0.,  0., -1.],
        [ 0.,  0.,  1.],
        [ 0.,  1.,  0.]])
>>> sphere.to_points(n_angles=4).round(3).unique()
Points([[-0.75 , -0.433, -0.5  ],
        [-0.75 , -0.433,  0.5  ],
        [ 0.   ,  0.   , -1.   ],
        [ 0.   ,  0.   ,  1.   ],
        [ 0.   ,  0.866, -0.5  ],
        [ 0.   ,  0.866,  0.5  ],
        [ 0.75 , -0.433, -0.5  ],
        [ 0.75 , -0.433,  0.5  ]])