Bresenham's 3D Line algorithm

The Bresenham line algorithm provides points in a 3-dimensional Matrix which form a close approximat
2.2K Downloads
Updated 26 Nov 2007

View License

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 (2024). Bresenham's 3D Line algorithm (https://www.mathworks.com/matlabcentral/fileexchange/17658-bresenham-s-3d-line-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Develop uifigure-Based Apps in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0