描述由长度、顶部半径和底部半径定义的圆柱体、截锥或圆锥体。
中心位置和方向由包含的
Entity
确定。Name | Type | Description |
---|---|---|
options |
CylinderGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
bottomRadius : Property|undefined
获取或设置指定圆柱体底部半径的数值属性。
readonly definitionChanged : Event
获取每当更改或修改属性或子属性时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition
属性,该属性指定此圆柱体将在距摄影机的距离处显示。fill : Property|undefined
获取或设置布尔属性,该属性指定是否用所提供的材料填充圆柱体。
-
Default Value:
true
heightReference : Property|undefined
获取指定属性的6866165或。
-
Default Value:
HeightReference.NONE
length : Property|undefined
获取指定圆柱体或属性的数值集的长度。
material : MaterialProperty|undefined
获取或设置指定用于填充圆柱体的材料的属性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置属性,该属性指定要沿轮廓的周长绘制的垂直线数。
-
Default Value:
16
outline : Property|undefined
获取或设置布尔属性,该属性指定是否对圆柱体进行轮廓。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定大纲的
Color
的属性。-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置指定大纲宽度的数值属性。
-
Default Value:
1.0
shadows : Property|undefined
获取或设置指定圆柱体
从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定圆柱体可见性的布尔属性。
-
Default Value:
true
slices : Property|undefined
获取或设置属性,该属性指定圆柱体周长周围的边数。
-
Default Value:
128
topRadius : Property|undefined
获取或设置指定圆柱体顶部半径的数值属性。
Methods
clone(result) → CylinderGraphics
复制此实例。
Name | Type | Description |
---|---|---|
result |
CylinderGraphics | optional 要将结果存储到的对象。 |
Returns:
修改后的结果参数或新实例(如果未提供)。
将此对象上的每个未指定属性指定给值
在提供的源对象上具有相同的属性。
Name | Type | Description |
---|---|---|
source |
CylinderGraphics | 要合并到此对象中的对象。 |
Type Definitions
CylinderGraphics构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定圆柱体可见性的布尔属性。 |
length |
Property | number |
<optional> |
指定圆柱体长度的数值属性。 | |
topRadius |
Property | number |
<optional> |
指定圆柱体顶部半径的数值特性。 | |
bottomRadius |
Property | number |
<optional> |
指定圆柱体底部半径的数值特性。 | |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 指定距实体位置的高度相对于的属性。 |
fill |
Property | boolean |
<optional> |
true | 一个布尔属性,指定是否用所提供的材质填充圆柱体。 |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | 指定用于填充圆柱体的材质的属性。 |
outline |
Property | boolean |
<optional> |
false | 一个布尔属性,指定是否勾勒圆柱体。 |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | 指定大纲的Color 的属性。 |
outlineWidth |
Property | number |
<optional> |
1.0 | 指定轮廓宽度的数值属性。 |
numberOfVerticalLines |
Property | number |
<optional> |
16 | 一个数值属性,指定要沿轮廓的周长绘制的垂直线数。 |
slices |
Property | number |
<optional> |
128 | 圆柱体周长周围的边数。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,指定圆柱体是投射还是接收来自光源的阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定此圆柱体将在距摄影机的距离处显示。 |