{"id":20031737,"url":"https://github.com/astrodynamic/geometry","last_synced_at":"2026-06-04T22:31:40.796Z","repository":{"id":160445817,"uuid":"635249303","full_name":"Astrodynamic/Geometry","owner":"Astrodynamic","description":"Geometry: A program to draw geometric primitives using SFML. Create lines, circles, triangles, rectangles, and squares easily. MIT licensed.","archived":false,"fork":false,"pushed_at":"2023-05-10T10:50:50.000Z","size":206,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-12T18:09:32.290Z","etag":null,"topics":["affine-transformation","cmake","cmakelists","cpp","cpp17","drawing-app","geometry","graphics","make","makefile","primitives","sfml","sfml-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Astrodynamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-02T09:40:02.000Z","updated_at":"2023-05-10T11:35:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9abb032-c4f4-4dab-9a6a-2be5b9b54763","html_url":"https://github.com/Astrodynamic/Geometry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FGeometry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FGeometry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FGeometry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FGeometry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Astrodynamic","download_url":"https://codeload.github.com/Astrodynamic/Geometry/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241462593,"owners_count":19966889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["affine-transformation","cmake","cmakelists","cpp","cpp17","drawing-app","geometry","graphics","make","makefile","primitives","sfml","sfml-library"],"created_at":"2024-11-13T09:34:33.241Z","updated_at":"2026-06-04T22:31:38.695Z","avatar_url":"https://github.com/Astrodynamic.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geometry\n\nThis program allows you to draw geometric primitives using SFML.\n\n![promo](img/promo.gif)\n\n## Installation\n\nTo build and install the project, follow these steps:\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/your/repository.git\n   ```\n\n2. Change to the project directory:\n\n   ```\n   cd Geometry\n   ```\n\n3. Build the project using CMake:\n\n   ```\n   cmake -S . -B ./build\n   cmake --build ./build\n   ```\n\n4. Run the executable:\n\n   ```\n   ./build/Geometry\n   ```\n\n## Dependencies\n\nThe project uses the SFML library (version 2.5.1) for graphics, window management, and system functionality. The library source code will be downloaded automatically during the build process.\n\n## Usage\n\nThe program allows you to draw different types of primitives, such as lines, circles, triangles, rectangles, and squares. The following code snippet demonstrates how to use the program:\n\n```cpp\n#include \u003cSFML/Graphics.hpp\u003e\n#include \u003cmemory\u003e\n\n#include \"line.h\"\n#include \"circle.h\"\n#include \"triangle.h\"\n#include \"rectangle.h\"\n#include \"square.h\"\n\nint main() {\n  sf::RenderWindow window(sf::VideoMode(800, 600), \"Geometry\");\n  std::vector\u003cstd::unique_ptr\u003cPrimitive\u003e\u003e primitives;\n  primitives.emplace_back(std::make_unique\u003cLine\u003e(100, 100, 200, 200));\n  primitives.emplace_back(std::make_unique\u003cCircle\u003e(400, 300, 50));\n  primitives.emplace_back(std::make_unique\u003cTriangle\u003e(300, 100, 400, 200, 200, 200));\n  primitives.emplace_back(std::make_unique\u003cRectangle\u003e(500, 400, 100, 50));\n  while (window.isOpen()) {\n    sf::Event event;\n    while (window.pollEvent(event)) {\n      if (event.type == sf::Event::Closed) window.close();\n    }\n    window.clear();\n    for (auto\u0026 primitive : primitives) {\n      primitive-\u003edraw(window);\n      primitive-\u003erotate(0.2f);\n    }\n    window.display();\n    sf::sleep(sf::milliseconds(50));\n  }\n  return 0;\n}\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrodynamic%2Fgeometry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrodynamic%2Fgeometry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrodynamic%2Fgeometry/lists"}