{"id":21933163,"url":"https://github.com/link-wolf/fdf","last_synced_at":"2026-04-29T11:03:33.848Z","repository":{"id":46660884,"uuid":"470879478","full_name":"Link-Wolf/FdF","owner":"Link-Wolf","description":"42 project - Program for wireframe modeling from a given file","archived":false,"fork":false,"pushed_at":"2023-10-21T19:49:48.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T13:26:56.915Z","etag":null,"topics":["42","42born2code","42school","c","macos"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Link-Wolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-17T06:50:19.000Z","updated_at":"2023-11-01T10:25:36.000Z","dependencies_parsed_at":"2025-01-27T12:54:30.782Z","dependency_job_id":null,"html_url":"https://github.com/Link-Wolf/FdF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Link-Wolf/FdF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2FFdF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2FFdF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2FFdF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2FFdF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Link-Wolf","download_url":"https://codeload.github.com/Link-Wolf/FdF/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2FFdF/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["42","42born2code","42school","c","macos"],"created_at":"2024-11-29T00:08:41.742Z","updated_at":"2026-04-29T11:03:33.833Z","avatar_url":"https://github.com/Link-Wolf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/FdF\" title=\"Go to GitHub repo\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Link-Wolf\u0026message=FdF\u0026color=blue\u0026logo=github\u0026style=for-the-badge\" alt=\"Link-Wolf - FdF\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://\"\u003e\u003cimg src=\"https://img.shields.io/badge/42_grade-125_%2F_100-2ea44f?style=for-the-badge\" alt=\"42 grade - 125 / 100\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://\"\u003e\u003cimg src=\"https://img.shields.io/badge/Year-2022-ffad9b?style=for-the-badge\" alt=\"Year - 2022\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/FdF/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/Link-Wolf/FdF?style=for-the-badge\u0026color=yellow\" alt=\"stars - FdF\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/FdF/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/Link-Wolf/FdF?style=for-the-badge\u0026color=lightgray\" alt=\"forks - FdF\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/FdF/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/Link-Wolf/FdF?style=for-the-badge\u0026color=orange\" alt=\"issues - FdF\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.apple.com/macos/\" title=\"Go to Apple homepage\"\u003e\u003cimg src=\"https://img.shields.io/badge/OS-macOS-blue?logo=apple\u0026logoColor=white\u0026style=for-the-badge\u0026color=9cf\" alt=\"OS - macOS\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://www.42mulhouse.fr/wp-content/uploads/2022/06/logo-42-Mulhouse-white.svg\" alt=\"Logo\" width=\"192\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eFdF\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n\t  \u003cem\u003eU said wire ?\u003c/em\u003e\u003cbr/\u003e\n    Wireframe modeling\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/Link-Wolf/FdF/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Link-Wolf/FdF/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://media.discordapp.net/attachments/453159761639112706/998876414004703292/unknown.png\" alt=\"FdF header\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003c/br\u003e\n\nThis project consists of graphically creating the schematic representation\nof raised terrain\nThe program takes a file `.fdf` as a parameter and show the 3D representation of the file content\u003c/br\u003e\nTo do this, we're allowed to use our [libft](https://github.com/Link-Wolf/libft), [get next line](https://github.com/Link-Wolf/get_next_line), the C `math` library, and a tiny local graphic library : the [minilibx](https://harm-smits.github.io/42docs/libs/minilibx/introduction.html) (also called mlx)\n\n- The file contains `n` lines with the same size\n- The file must contain only integers, separated by space\n- Each integer represents the altitude of the related point\n- Each point must be joined to the 2 / 3 / 4 others around it\n\nThis is an example of a valid file\n```\n\t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n\t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n\t0 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0\n\t0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0\n\t0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0\n\t0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0\n\t0 0 0 1 1 1 1 1 0 0 0 1 1 0 0 0 0 0 0\n\t0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 0\n\t0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 1 1 0 0\n\t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n\t0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n```\n\nWe have to render the result in an isometric projection and be able to close the window either by the red cross or by press `ESC`\n\n### Bonus features\n\n- Include an additional projection (you can switch by pressing `TAB`)\n- Implement zoom in and out (scroll wheel)\n- Implement translation (press `WASD`)\n- Implement at least one rotation (I added all of them by pressing `JL`/`IK`/`UO`)\n- Add an additional bonus of my choice. I added colors for the wireframe when the map is big enough. The next picture is an illustration of it with a big, big map\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://media.discordapp.net/attachments/453159761639112706/998876964981051443/unknown.png\" alt=\"FdF header\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003c/br\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nIt's a simple C program but\n\u003cspan style=\"color:red\"\u003e/!\\\\ sadly the mlx used is only available locally on 42 iMacs /!\\\\\u003c/span\u003e\u003c/br\u003e\n**However** you can use the [improved one](https://github.com/codam-coding-college/MLX42), it will *just* need to edit some includes, the [Makefile](https://github.com/Link-Wolf/FdF/blob/master/Makefile) and maybe some other little things\n\n### Prerequisites\n\nHaving a C compiler like cc, gcc or clang\u003c/br\u003e\nBe on a 42 iMac or get the MLX42 described above\n\n### Installation\nAssuming you are on a 42 iMac\u003c/br\u003e\nIf you use the MLX42, use its [documentation](https://github.com/codam-coding-college/MLX42)\n1. Clone the repo\n   ```sh\n   git clone https://github.com/Link-Wolf/FdF.git\n   ```\n2. Compile FdF\n   ```sh\n   cd FdF; make\n   ```\n3. Execute the program with a `.fdf` file\n   ```sh\n   ./fdf [your file].fdf\n   ```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\nTest this FdF with any map you want !\u003c/br\u003e\nThe first picture is the result from this command :\n```sh\n   ./fdf 42.fdf\n```\n\n*(You can find some example [maps](https://github.com/Link-Wolf/FdF/tree/master/maps) in the maps folder)*\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\n- [x] Add all bonus features\n- [x] Add some examples maps\n- [x] Add back to top links\n\nSee the [open issues](https://github.com/Link-Wolf/FdF/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nMail : xxxxxxx@student.42mulhouse.fr\n\nProject Link: [https://github.com/Link-Wolf/FdF](https://github.com/Link-Wolf/FdF)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-wolf%2Ffdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink-wolf%2Ffdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-wolf%2Ffdf/lists"}