PartPoints
- class cee.mrk.PartPoints()
 A part that can show points in a
MarkupModelUse
MarkupModel.addPointsPartto create a new instance of this class.
Accessors
Accessors
- cee.mrk.PartPoints.color
 The single color of the part if no per-point color is specified with the colorArray() property
- cee.mrk.PartPoints.colorArray
 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
- cee.mrk.PartPoints.customData
 Custom data for the part. This field is not used by EnvisionWeb.
- cee.mrk.PartPoints.pointSize
 Controls the point size
Methods
rayIntersect
- cee.mrk.PartPoints.rayIntersect(ray, hitItem)
 Picking
- Arguments
 ray (
cee.Ray) –hitItem (
cee.mrk.PartHitItem) –
- Return type
 boolean
setColorArray
- cee.mrk.PartPoints.setColorArray(colorArr)
 Specify one color per point/vertex.
- Arguments
 colorArr (
ArrayLike[number]) –
- Return type
 void
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, …)
setColorArrayUint8Array
- cee.mrk.PartPoints.setColorArrayUint8Array(colorArr)
 Specify one color per point/vertex.
- Arguments
 colorArr (
Uint8Array) –
- Return type
 void
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.
setVertices
- cee.mrk.PartPoints.setVertices(vertices)
 Sets the vertices for the points
- Arguments
 vertices (
ArrayLike[number]) –
- Return type
 void
setVerticesFloat32Array
- cee.mrk.PartPoints.setVerticesFloat32Array(vertices)
 Sets the vertices for the points from a Float32Array
- Arguments
 vertices (
Float32Array) –
- Return type
 void
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.