primitive Module

一个创建 3D 物体顶点数据的基础模块,你可以通过 "cc.primitive" 来访问这个模块。

Index

Methods
  • box Create box vertex data
  • cone Create cone vertex data
  • cylinder Create cylinder vertex data
  • plane Create plane vertex data
  • quad Create quad vertex data
  • sphere Create sphere vertex data
  • torus Create torus vertex data
  • capsule Create capsule vertex data
  • polyhedron Create polyhedron vertex data

Details

Methods

box

Create box vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:24
Parameters
cone

Create cone vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:39
Parameters
cylinder

Create cylinder vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:54
Parameters
plane

Create plane vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:70
Parameters
quad

Create quad vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:83
sphere

Create sphere vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:91
Parameters
torus

Create torus vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:102
Parameters
capsule

Create capsule vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:116
Parameters
polyhedron

Create polyhedron vertex data

meta description
Returns primitive.VertextData
Defined in cocos2d/core/3d/primitive/index.js:132
Parameters

results matching ""

    No results matching ""