LAPSE:2023.26634
Published Article
LAPSE:2023.26634
Spatial Straight-Line Drawing Algorithm Based on Method of Discriminate Regions—A Control Algorithm of Motors
Jianping Wang, Shiguang Xiao, Tao Song, Junqi Yue, Pingyan Bian, Yu Li
April 3, 2023
Abstract
A novelty algorithm of spatial straight-line drawing based on a method of discriminate regions is proposed in this paper based on Bresenham’s algorithm. Three-dimensional space is divided into innumerable three-dimensional meshes according to the given rule; the distance between the start and the end points of the three coordinates is Δx, Δy, and Δz, respectively; the distribution types of spatial straight line and the position of the end point are determined by judging the relationship among Δx, Δy, and Δz; then, the active-passive directions can be determined. The plane of the ending point of the straight line in a three-dimensional mesh is divided into four regions; then, the discriminant is obtained; and this discriminant determine which region the point is located in The algorithm is verified and analyzed by the method of contrastive analysis; the results show that: the error of the algorithm is related to the step length L; the maximum theoretical error is 0.7071*L. The discriminants are all integers, so the problem of deviation from the theoretical straight line caused by the retention of decimals of significant digits can be avoided. Finally, the algorithm is applied to the cooperative control of multiple motors, and conversion between unit grid number and pulse number of motors is performed.
Keywords
Bresenham’s algorithm, discriminate regions, integer discriminants, spatial straight line
Suggested Citation
Wang J, Xiao S, Song T, Yue J, Bian P, Li Y. Spatial Straight-Line Drawing Algorithm Based on Method of Discriminate Regions—A Control Algorithm of Motors. (2023). LAPSE:2023.26634
Author Affiliations
Wang J: School of Mechanical and Power Engineering, Henan Polytechnic University, Jiaozuo 454000, China
Xiao S: School of Mechanical and Power Engineering, Henan Polytechnic University, Jiaozuo 454000, China
Song T: State Grid Jiaozuo Power Supply Company, Jiaozuo 454000, China
Yue J: School of Mechanical and Power Engineering, Henan Polytechnic University, Jiaozuo 454000, China
Bian P: School of Mechanical and Power Engineering, Henan Polytechnic University, Jiaozuo 454000, China
Li Y: School of Mechanical and Power Engineering, Henan Polytechnic University, Jiaozuo 454000, China [ORCID]
Journal Name
Energies
Volume
13
Issue
19
Article Number
E5002
Year
2020
Publication Date
2020-09-23
ISSN
1996-1073
Version Comments
Original Submission
Other Meta
PII: en13195002, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2023.26634
This Record
External Link

https://doi.org/10.3390/en13195002
Publisher Version
Download
Files
Apr 3, 2023
Main Article
License
CC BY 4.0
Meta
Record Statistics
Record Views
176
Version History
[v1] (Original Submission)
Apr 3, 2023
 
Verified by curator on
Apr 3, 2023
This Version Number
v1
Citations
Most Recent
This Version
URL Here
https://psecommunity.org/LAPSE:2023.26634
 
Record Owner
Auto Uploader for LAPSE
Links to Related Works
Directly Related to This Work
Publisher Version