I need an advice!

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!
Your question seems underspecified. Are you talking about 2D "nets" of 3D shapes? Like https://nzmaths.co.nz/sites/default/files/images/P9A.GIF or https://www.printablee.com/postpic/2009/03/printable-3d-shapes-cut-out-template_152351.png ?

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)?

PS: You don't say "an advice". You just say "advice".
https://youtu.be/q5pESPQpXxE
Last edited on
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.
I mean 2D drawing.

Still way too little detail.

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).
Last edited on
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.
WinForms is NOT standard C++.

English clearly is not your native language, so a lot of your explanations don't make much sense. Not your fault, just the way I see the situation.

You really need to find a different forum that deals with WinForms, if it exists, and people who know more about it than the regular crew here.

I despise WinForms personally. As bloated and nightmarish as the Win32/Desktop WinAPI can be MS made a bad situation worse with WinForms IMO.
OK, thanks for the advice.
Agree with you on WinForms.
Topic archived. No new replies allowed.