TilesBase198

TilesBase198

模型分析(裁剪、压平、淹没) 基础类

Constructor

new TilesBase198(optionsopt)

创建一个模型编辑对象

Parameters:
Name Type Attributes Description
options Object <optional>

带有以下属性的对象:

Properties
Name Type Attributes Default Description
viewer * <optional>

viewer

tileset * <optional>

实体对象

textureMaxWidth Number <optional>
1024

纹理最大宽度

Classes

TilesBase198

Members

tileset :Object

编辑对象 tileset

Type:
  • Object

Methods

addArea(posArr, id)

添加区域

Parameters:
Name Type Description
posArr Array

区域点组 Cart3类型 必须是球心坐标

id String

区域id

clear()

重置编辑对象

createRegionImage(posArr, minX, minY, maxX, maxY)

通过点组绘制一个范围纹理 地形相关分析会用到 minX, minY, maxX, maxY是点组的包围盒信息 posArr是cart3的二维数组 可以表示多面

Parameters:
Name Type Description
posArr *
minX *
minY *
maxX *
maxY *

deActiveEdit()

设置不可编辑

destroy()

销毁

recomputeRect()

重置压平区域

removeArea(id)

移除压平区域

Parameters:
Name Type Description
id String

区域ID

setUpAxis(val)

输入模型上方向轴向,目前使用实验室的工具,好像会把模型转成Z向上的,所以该功能已遗弃,未被使用

Parameters:
Name Type Description
val String

X Y Z