The saveObj()
function exports p5.Geometry
objects as 3D models in the Wavefront .obj file format. This way, you can use the 3D shapes you create in p5.js in other software for rendering, animation, 3D printing, or more.
The exported .obj file will include the faces and vertices of the p5.Geometry
, as well as its texture coordinates and normals, if it has them.
示例
语法
saveObj([fileName])
参数
fileName
String:
The name of the file to save the model as. If not specified, the default file name will be 'model.obj'.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Geometry.js and open a pull request!