whitebook.log

Photo & Programming

Author : laqu [FrontendEngineer]

Program : Javascript,Swift,ActionScript

Camera : Canon EOS6D, Olympus E-P5, Ricoh GR

[threejs] 扇形を描画する

three.js(r79)で扇形を描画する方法。
CircleGeometryの第3、4引数を利用します。
第3引数に開始角度、第4引数に終了角度を代入します。(共にラジアン角)

DEMO

以下デモのソース(CoffeeScript)

Tags

threejs

コメントを残す

メールアドレスが公開されることはありません。

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*