# PartPoints

class `cee.mrk.``PartPoints`()

  A part that can show points in a `MarkupModel`.

  Use `MarkupModel.addPointsPart` to create a new instance of this class.

Accessors

- `color`
- `colorArray`
- `customData`
- `pointSize`

Methods

- `rayIntersect`
- `setColorArray`
- `setColorArrayUint8Array`
- `setVertices`
- `setVerticesFloat32Array`

## Accessors

`PartPoints.``color`()

  The single color of the part if no per-point color is specified with the colorArray() property

  Return type: | Color3Like

`PartPoints.``color`(color)

  Arguments: | color (`Color3Like`) – None
  Return type: | void

`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

  Return type: | Uint8Array <ArrayBufferLike>

`PartPoints.``customData`()

  Custom data for the part. This field is not used by EnvisionWeb.

  Return type: | any

`PartPoints.``customData`(data)

  Arguments: | data (`any`) – None
  Return type: | void

`PartPoints.``pointSize`()

  Controls the point size

  Return type: | number

`PartPoints.``pointSize`(pointSize)

  Arguments: | pointSize (`number`) – None
  Return type: | void

## Methods

### rayIntersect

`PartPoints.``rayIntersect`(ray, hitItem)

  Arguments: | ray (`Ray`) – None hitItem (`PartHitItem`) – None

  Picking

  Return type: | boolean

### setColorArray

`PartPoints.``setColorArray`(colorArr)

  Arguments: | colorArr (`ArrayLike`) – None

  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, …)

  Return type: | void

### setColorArrayUint8Array

`PartPoints.``setColorArrayUint8Array`(colorArr)

  Arguments: | colorArr (`Uint8Array`) – None

  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.

  Return type: | void

### setVertices

`PartPoints.``setVertices`(vertices)

  Arguments: | vertices (`ArrayLike`) – None

  Sets the vertices for the points

  Return type: | void

### setVerticesFloat32Array

`PartPoints.``setVerticesFloat32Array`(vertices)

  Arguments: | vertices (`Float32Array`) – None

  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.

  Return type: | void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...