PartPoints
-
class
cee.mrk.PartPoints() A part that can show points in a
MarkupModel.Use
MarkupModel.addPointsPartto create a new instance of this class.
Accessors
-
cee.mrk.PartPoints.color() - get color():
Color3LikeThe single color of the part if no per-point color is specified with the colorArray() property
Returns:
Color3Likeset color(color:Color3Like): voidParameters
color:Color3LikeReturns: void
-
cee.mrk.PartPoints.colorArray() - get colorArray(): Uint8Array
The Uint8Array with the per point colors (if any).
Colors are interleaved in a Uint8Array with (r0,g0,b0,r1,g1,b1,…) ordering and each component being 0..255
Returns: Uint8Array
-
cee.mrk.PartPoints.customData() inherited
get customData(): anyCustom data for the part. This field is not used by EnvisionWeb.
Returns: any
set customData(data: any): voidParameters
data: anyReturns: void
-
cee.mrk.PartPoints.pointSize() - get pointSize(): number
Controls the point size
Returns: number
set pointSize(pointSize: number): voidParameters
pointSize: numberReturns: void
Methods
-
cee.mrk.PartPoints.rayIntersect() - rayIntersect(ray:
Ray, hitItem:PartHitItem): booleanPicking
Parameters
ray:
RayhitItem:
PartHitItemReturns: boolean
-
cee.mrk.PartPoints.setColorArray() - setColorArray(colorArr: ArrayLike): void
Specify one color per point/vertex.
The size of the array must match the number of vertices (points) in the part.
The colors needs to be interleaved (r0, g0, b0, r1, g1, b1, …)
Parameters
colorArr: ArrayLikeReturns: void
-
cee.mrk.PartPoints.setColorArrayUint8Array() - setColorArrayUint8Array(colorArr: Uint8Array): void
Specify one color per point/vertex.
Colors needs to be specified in a Uint8Array with (r0,g0,b0,r1,g1,b1,…) ordering and each component being 0..255
This is the most optimal setting as the PartPoints will just hold a reference to the passed array and not copy any data.
Parameters
colorArr: Uint8ArrayReturns: void
-
cee.mrk.PartPoints.setVertices() - setVertices(vertices: ArrayLike): void
Sets the vertices for the points
Parameters
vertices: ArrayLikeReturns: void
-
cee.mrk.PartPoints.setVerticesFloat32Array() - setVerticesFloat32Array(vertices: Float32Array): void
Sets the vertices for the points from a Float32Array
The coordinates needs to be interleaved (x0, y0, z0, x1, y1, z1, …)
This is the most optimal setting as the PartPoints will just hold a reference to the passed array and not copy any data.
Parameters
vertices: Float32ArrayReturns: void