How can we easily identifed the shapes by the given path | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How can we easily identifed the shapes by the given path

29th Apr 2020, 3:17 PM
Safrin Nihar
2 Answers
+ 3
By joining the given path we get the shape of that.
29th Apr 2020, 3:19 PM
Puthur Harthik
0
Did you means svg Path element? If so, there's no easy way to identify the shape (path could be very complex composition of straight lines, bicubic and quadratric curves... Even with only straight line (polygons, if closed path to be able to consider a shape), shape recognition is not simple at all... At worst, you could identify SOME PARTICULAR SHAPES (such as triangle and type of triangle, parrallelogram, square...), but even the task of parsing the Path string would be not obvious, and characterization of such "simple" (from an human point of view) shapes, will implie lot of geometric computation not obvious too ^^
30th Apr 2020, 1:16 AM
visph
visph - avatar