processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.4k stars 3.28k forks source link

Add Downloadable .obj File Support for p5.Geometry shapes #6769

Closed diyaayay closed 2 months ago

diyaayay commented 7 months ago

Increasing access

Feature Request: The current proposal aims to enhance the reusability of 3D models created using p5.Geometry by adding support for downloadable .obj files. This feature would empower users to export their 3D creations in a format compatible with various 3D software, such as Blender, and facilitate cross-platform usage. As .obj files are pretty straightforward, this could be achievable by using the current array properties of p5.Geometry.

Most appropriate sub-area of p5.js?

Feature request details

There is a way of collecting shapes in p5.Geometry with buildGeometry. By iterating over the vertices and faces of the geometry and then converting them to string format supported by .obj files, the functionality of downloadable obj files can be achieved.

diyaayay commented 7 months ago

I'm working on this issue.