LoginSignup
0
0

P5.js 日本語リファレンス(buildGeometry)

Posted at

このページでは「P5.js 日本語リファレンス」 の buildGeometry()関数を説明します。

buildGeometry

説明文

buildGeometry()は sphere(球) や cone(円錐) など単純な 3D 形状から複雑な 3D 形状を作成して p5.Geometryオブジェクトにすることができます。

buildGeometry()で複雑な 3D 形状を作成して、スケッチ途中で変更しないときはスケッチのパフォーマンスを向上させる事ができます。(個々の形状部分を繰り返し描画するよりも高速に実行できます)

buildGeometry() のパラメタとしてオブジェクトの描画命令を含むcallback関数を指定することができます。

3D 形状を作成する別の方法については、beginGeometry()と endGeometry() を参照してください。

注: buildGeometry()は WebGL モードでのみ使用できます。

構文

buildGeometry(callback)

パラメタ

callback: 任意。オブジェクトの描画命令を含むcallback関数を指定する

著作権

p5.js was created by Lauren McCarthy and is developed by a community of collaborators, with support from the Processing Foundation and NYU ITP. Identity and graphic design by Jerel Johnson.

ライセンス

Creative Commons(CC BY-NC-SA 4.0) に従います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0