Summary
Methods:
fromPoints |
根据网格模型控制点,创建网格模型 |
clone |
克隆新对象 |
setMaterial |
设置材质 |
setVisibleRange |
设置可视范围 |
Constructor
new SphereMesh(radiusX, radiusY, radiusZ, options)
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
radiusX |
Number | 轴方向半径 |
|||||||||||||||||||||
radiusY |
Number | 轴方向半径 |
|||||||||||||||||||||
radiusZ |
Number | 轴方向径 |
|||||||||||||||||||||
options |
Object | 可选项
|
Methods
-
static fromPoints(points, material) → {module:model~SphereMesh}
-
根据网格模型控制点,创建网格模型
Parameters:
Name Type Description points
module:geom~Point 点几何数组
material
module:style~Material 材质
-
clone() → {module:model~SphereMesh}
-
克隆新对象
Returns:
module:model~SphereMesh -
setMaterial(material)
-
设置材质
Parameters:
Name Type Description material
Material -
setVisibleRange(min, max)
-
设置可视范围
Parameters:
Name Type Description min
number max
number