The input data shall be a txt file with X Y and Z.
line1: 1.234 2.345 3.456
line2: 321.312 321.432 432.342
line2: 231.321 2.222 -5.676
.....
You can also change your input if you want by changing the input function of the code.
H. You, S. Li, L. Ma and D. Wang, "Leaf Area Index Retrieval for Broadleaf Trees by Envelope Fitting Method Using Terrestrial Laser Scanning data," in IEEE Geoscience and Remote Sensing Letters, 2022, doi: 10.1109/LGRS.2022.3214427.