Write your question here. The problem is as follows. I need to compare the template with the flattened shapes on the template. I have the coordinates of the template shapes. How do I compare shapes to a template?
If you have ideas on how to draw figures of the required size, I will also accept them.
Thanks!
You're trying to see if a 3D shape matches a 2D net? While this is an activity that I remember doing in grade school, it doesn't seem completely trivial to program, because there's a one-to-many relationship of a 3D shape and all of its possible 2D nets. Are we dealing with just polyhedra, or can shape have curves as well (like a cylinder)?
Sorry!
I mean 2D drawing. I draw a pattern on the main lobby. According to this template, I have to place geometric shapes on the template. And I want to check whether the placed figures match the pattern.
Do you mean actually drawing something graphical, like a picture? If so that's GUI type coding.
Fair warning, GUI isn't a part of the C/C++ standard. It would require a 3rd party library. One that is either very specific to the operating system (Windows GDI for example) or cross-platform (SFML is one).
No, I use WinForms. I make a simple analog of Paint in C ++. The idea is as follows: prepare a template drawing in 2D, then the user selects geometric shapes (circle, square, triangle, line) and places them on the template. I have to check if the figures were placed correctly. For comparison, I have the coordinates of the geometric vertices from which the template is made.