THING.GeologicalmodelLayer(param)

地质体图层 根据数据驱动生成地质体

new GeologicalmodelLayer(param)

Parameters:
Name Type Description
param Object 参数列表
Properties
Name Type Attributes Description
data Array 数据源
clippingPlane Object <optional>
剖切面属性
Properties
Name Type Attributes Description
normal Array <optional>
剖切面法线 如 [0,0,1]
constant Number <optional>
剖切面constant值
imageUrls Array <optional>
贴图图像数组url
colors Array <optional>
颜色数组
imageRepeat Array <optional>
贴图重复度
gridSize Number <optional>
地质表面三角化参数,值越小,生成三角形面积越小,生成三角形数量越多 如果不传会根据数据范围适配
triangulationWasmUrl String 构造地质体三角面时需要使用的一个外部wasm库的地址 必填

Extends

  • THING.Object3D

Members

clippingPlane :Object

设置/获取地质体剖切面

Example
geologicalModel.clipPlaneParam = {
		  normal:[0,0,1],
		  constant:100
		}

colors

获取/设置地层渲染使用的颜色 数组长度与地层个数一致

readonly data :Array

构造地质体需要的数据源

imageUrls

获取/设置地层渲染使用的贴图路径 数组长度与地层个数一致

Methods

setBottomBlockVisibleByIndex(visible, index)

按照索引设置地层地面是否可见

Parameters:
Name Type Description
visible Boolean 是否可见
index Boolean 地层索引

setSideBlockVisibleByIndex(visible, index)

按照索引设置地层侧面是否可见

Parameters:
Name Type Description
visible Boolean 是否可见
index Boolean 地层索引

setTopBlockVisibleByIndex(visible, index)

按照索引设置地层顶面是否可见

Parameters:
Name Type Description
visible Boolean 是否可见
index Boolean 地层索引

setVisibleByIndex(visible, index, effectCylinder)

按照索引设置地层是否可见

Parameters:
Name Type Default Description
visible Boolean 是否可见
index Boolean 地层索引
effectCylinder Boolean true 是否影响钻井柱子