line_segment
¶
Calculates the voxel coordinates of a straight line between the two given end points
import matplotlib.pyplot as plt
import numpy as np
import porespy as ps
import inspect
inspect.signature(ps.generators.line_segment)
<Signature (X0, X1)>
Given a list a pair of end points, it returns tuples indicating which voxels to fill in order to draw a straight line between them, for each dimenstion.