MCPcopy
hub / github.com/processing/p5.js / buildGeometry

Method buildGeometry

src/core/p5.Renderer3D.js:486–490  ·  view source on GitHub ↗

* Creates a new p5.Geometry that contains all * the shapes drawn in a provided callback function. The returned combined shape * can then be drawn all at once using model() . * * If you need to draw complex shapes every frame which don't

(callback)

Source from the content-addressed store, hash-verified

484 * @returns {p5.Geometry} The model that was built from the callback function.
485 */
486 buildGeometry(callback) {
487 this.beginGeometry();
488 callback();
489 return this.endGeometry();
490 }
491
492 //////////////////////////////////////////////
493 // Shape drawing

Callers 9

p5.Geometry.jsFile · 0.80
p5.RendererGL.jsFile · 0.80
webgpu.jsFile · 0.80
webgl.jsFile · 0.80
primitives3DFunction · 0.80
textToModelMethod · 0.80

Calls 2

beginGeometryMethod · 0.95
endGeometryMethod · 0.95

Tested by

no test coverage detected