Transforms the geometry's vertices to fit snugly within a 100×100×100 box centered at the origin.
Calling myGeometry.normalize() translates the geometry's vertices so that they're centered at the origin (0, 0, 0). Then it scales the vertices so that they fill a 100×100×100 box. As a result, small geometries will grow and large geometries will shrink.
Note: myGeometry.normalize() only works when called in the setup() function.
예제
This page is generated from the comments in src/webgl/p5.Geometry.js . Please feel free to edit it and submit a pull request!
관련 레퍼런스
beginGeometry
Begins adding shapes to a new p5.Geometry object.
buildGeometry
Creates a custom p5.Geometry object from simpler 3D shapes.
endGeometry
Stops adding shapes to a new p5.Geometry object and returns the object.
freeGeometry
Clears a p5.Geometry object from the graphics processing unit (GPU) memory.