Pyramid

Pyramid class

参数化金字塔。

方法

constructor

名称描述
constructor()使用默认底部面积 (10, 10) 和默认高度 (5) 构造一个新的 pyramid 实例。

Result:


constructor_overload

名称描述
constructor_overload(xbottom, ybottom, height)使用指定的底部面积构造一个新的 pyramid 实例。

Parameters:

名称类型描述
xbottom数字底部的 x 方向长度
ybottom数字底部的 y 方向长度
height数字pyramid 的高度

Result:


constructor_overload2

名称描述
constructor_overload2(xbottom, ybottom, xtop, ytop, height)使用指定的底部面积、顶部面积和高度构造一个新的 pyramid 实例。

Parameters:

名称类型描述
xbottom数字底部区域的 x 方向长度
ybottom数字底部区域的 y 方向长度
xtop数字顶部区域的 x 方向长度
ytop数字顶部区域的 y 方向长度
height数字pyramid 的高度

Result:


constructor_overload3

名称描述
constructor_overload3(name, xbottom, ybottom, xtop, ytop, height)使用指定的底部面积、顶部面积和高度构造一个新的 pyramid 实例。

Parameters:

名称类型描述
name字符串金字塔的名称
xbottom数字底部区域的 x 方向长度
ybottom数字底部区域的 y 方向长度
xtop数字顶部区域的 x 方向长度
ytop数字顶部区域的 y 方向长度
height数字pyramid 的高度

Result:


getBottomArea

名称描述
getBottomArea()底部帽面的面积

Result:


setBottomArea

名称描述
setBottomArea(value)底部帽面的面积

Result:


getTopArea

名称描述
getTopArea()顶部帽面的面积

Result:


setTopArea

名称描述
setTopArea(value)顶部帽面的面积

Result:


getBottomOffset

名称描述
getBottomOffset()底部顶点的偏移量

Result:


setBottomOffset

名称描述
setBottomOffset(value)底部顶点的偏移量

Result:


getHeight

名称描述
getHeight()金字塔的高度

Result:


setHeight

名称描述
setHeight(value)金字塔的高度

Result:


getCastShadows

名称描述
getCastShadows()获取或设置此几何体是否可以投射阴影。

Result:


setCastShadows

名称描述
setCastShadows(value)获取或设置此几何体是否可以投射阴影。

Result:


getReceiveShadows

名称描述
getReceiveShadows()获取或设置此几何体是否可以接收阴影。

Result:


setReceiveShadows

名称描述
setReceiveShadows(value)获取或设置此几何体是否可以接收阴影。

Result:


getParentNodes

名称描述
getParentNodes()获取所有父节点,实体可以附加到多个父节点以实现几何实例化。

Result:


getExcluded

名称描述
getExcluded()获取或设置在导出期间是否排除此实体。

Result:


setExcluded

名称描述
setExcluded(value)获取或设置在导出期间是否排除此实体。

Result:


getParentNode

名称描述
getParentNode()获取或设置第一个父节点,如果设置了第一个父节点,则此实体将从其他父节点分离。父节点。

Result:


setParentNode

名称描述
setParentNode(value)获取或设置第一个父节点,如果设置了第一个父节点,则此实体将从其他父节点分离。父节点。

Result:


getScene

名称描述
getScene()获取此对象所属的场景

Result:


getName

名称描述
getName()获取或设置名称。名称。

Result:


setName

名称描述
setName(value)获取或设置名称。名称。

Result:


getProperties

名称描述
getProperties()获取所有属性的集合。

Result:


toMesh

名称描述
toMesh()将当前对象转换为网格

Result: Mesh


getBoundingBox

名称描述
getBoundingBox()获取当前实体在其对象空间坐标系中的边界框。

Result: Mesh


getEntityRendererKey

名称描述
getEntityRendererKey()获取在渲染器中注册的实体渲染器的键

Result: EntityRendererKey


removeProperty

名称描述
removeProperty(property)移除动态属性。

Parameters:

名称类型描述
propertyProperty要移除哪个属性

Result: boolean


removeProperty

名称描述
removeProperty(property)移除按名称标识的指定属性

Parameters:

名称类型描述
propert字符串null

Result: boolean


getProperty

名称描述
getProperty(property)获取指定属性的值

Parameters:

名称类型描述
property字符串属性名称

Result: 对象


setProperty

名称描述
setProperty(property, value)设置指定属性的值

Parameters:

名称类型描述
property字符串属性名称
对象属性的值

Result: 对象


findProperty

名称描述
findProperty(propertyName)查找属性。它可以是动态属性(由 CreateDynamicProperty/SetProperty 创建)或本机属性(通过其名称标识)

Parameters:

名称类型描述
propertyName字符串属性名称。

Result: Property