// ======================================================
// Wire Discretization 1d algorithm
// ======================================================
// ======================================================
// Wire Discretization 1d algorithm
// ======================================================