PartSettings

class cee.geo.PartSettings()

PartSettings defines properties that control how the part is rendered and behaves.


Accessors

PartSettings.color()

The color of the part. Note that the returned color cannot be modified.

Return type:Color3Like
PartSettings.color(color)
Arguments:
  • color (Color3Like) – None
Return type:

void

PartSettings.eyeLift()

The eye lift mode to use for this part

Return type:EyeLift
PartSettings.eyeLift(mode)
Arguments:
  • mode (EyeLift) – None
Return type:

void

PartSettings.highlight()

Whether the part should be highlighted.

Return type:boolean
PartSettings.highlight(highlight)
Arguments:
  • highlight (boolean) – None
Return type:

void

PartSettings.intersectable()

Specifies if the part should be considered by picking (rayIntersect()) or not

Return type:boolean
PartSettings.intersectable(intersectable)
Arguments:
  • intersectable (boolean) – None
Return type:

void

PartSettings.lineWidth()

The line width in pixels for line meshes

Note that setting the width to values greater than 1, will trigger generation and rendering of thick lines which can significantly reduce update and rendering performance.

Return type:number
PartSettings.lineWidth(lineWidth)
Arguments:
  • lineWidth (number) – None
Return type:

void

PartSettings.opacity()

The opacity of the part.

1.0 is fully opaque, 0.0 is fully transparent (invisible).

Return type:number
PartSettings.opacity(opacity)
Arguments:
  • opacity (number) – None
Return type:

void

PartSettings.polygonOffset()

The polygon offset mode to use for this part

Return type:PolygonOffset
PartSettings.polygonOffset(mode)
Arguments:
  • mode (PolygonOffset) – None
Return type:

void

PartSettings.specularIntensity()

The intensity of the specular highlight of the part

Note that the part’s default value for specularIntensity is undefined in which case the global default specular intensity will be used. Specify this value to override the default setting.

Return type:number
PartSettings.specularIntensity(intensity)
Arguments:
  • intensity (number) – None
Return type:

void

PartSettings.texture()

Texture to use for this part. If no texture is defined, null is returned.

Note that using textures requires that the mesh type is MeshIndexedTriangles and that you have specified texture coordinates in the mesh.

Return type:Texture
PartSettings.texture(texture)
Arguments:
  • texture (Texture) – None
Return type:

void

PartSettings.visible()

The visibility of the part

Return type:boolean
PartSettings.visible(visible)
Arguments:
  • visible (boolean) – None
Return type:

void