Cylinder.sample#
- Cylinder.sample(n_samples, centers=None, orientations=None, radius=None, height=None)#
Sample points from the surface of a cylinder.
- Parameters:
- centersnp.ndarray
Center coordinates of the cylinder in X and Y.
- orientationsnp.ndarray
Square orientation matrix
- radius: float
Radius of the cylinder.
- heightfloat
Height of the cylinder.
- Returns:
- np.ndarray
Array of sampled points from the cylinder surface.