cc.primitive
Module
一个创建 3D 物体顶点数据的基础模块,你可以通过 "cc.primitive" 来访问这个模块。
Index
Methods
box
Create box vertex datacone
Create cone vertex datacylinder
Create cylinder vertex dataplane
Create plane vertex dataquad
Create quad vertex datasphere
Create sphere vertex datatorus
Create torus vertex datacapsule
Create capsule vertex datapolyhedron
Create polyhedron vertex data
Details
Methods
box
Create box vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:24 |
Parameters
cone
Create cone vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:39 |
Parameters
cylinder
Create cylinder vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:54 |
Parameters
plane
Create plane vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:70 |
Parameters
quad
Create quad vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:83 |
sphere
Create sphere vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:91 |
Parameters
torus
Create torus vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:102 |
Parameters
capsule
Create capsule vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:116 |
Parameters
polyhedron
Create polyhedron vertex data
meta | description |
---|---|
Returns | primitive.VertexData |
Defined in | cocos2d/core/3d/primitive/index.js:132 |