Bresenham's 3D Line algorithm

The Bresenham line algorithm provides points in a 3-dimensional Matrix which form a close approximat

You are now following this Submission

The Bresenham line algorithm is an algorithm that determines which points in a 3-dimensional raster should be plotted in order to form a close approximation to a straight line between two given points in 3D space.
The common conventions that pixel coordinates increase in the down and right directions and that pixel centers have integer coordinates will be used. The endpoints of the line are the pixels at (x0, y0, z0) and (x1, y1,z1), where the first coordinate of the pair is the column, the second is the row and the third is the slice.

Cite As

Jean Chaoui (2026). Bresenham's 3D Line algorithm (https://www.mathworks.com/matlabcentral/fileexchange/17658-bresenham-s-3d-line-algorithm), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Update figure-Based Apps in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0