# PartArrows

class `cee.mrk.``PartArrows`()

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

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

Accessors

- `color`
- `customData`

Methods

- `addArrow`
- `rayIntersect`
- `removeAllArrows`
- `setArrows`
- `setArrowsFloat32Array`

## Accessors

`PartArrows.``color`()

  The single color of all arrows

  Return type: | Color3Like

`PartArrows.``color`(color)

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

`PartArrows.``customData`()

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

  Return type: | any

`PartArrows.``customData`(data)

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

## Methods

### addArrow

`PartArrows.``addArrow`(position, direction)

  Arguments: | position (`Vec3Like`) – None direction (`Vec3Like`) – None

  Add an arrow with position and direction to the part

  Return type: | void

### rayIntersect

`PartArrows.``rayIntersect`(_ray, _hitItem)

  Arguments: | _ray (`Ray`) – None _hitItem (`PartHitItem`) – None

  Not implemented, always returns false

  Return type: | boolean

### removeAllArrows

`PartArrows.``removeAllArrows`()

  Remove all arrows from the part

  Return type: | void

### setArrows

`PartArrows.``setArrows`(vertexArray, vectorArray)

  Arguments: | vertexArray (`ArrayLike`) – None vectorArray (`ArrayLike`) – None

  Sets the arrows by providing the vertices (start points) and the vectors (direction and length)

  The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)

  Return type: | void

### setArrowsFloat32Array

`PartArrows.``setArrowsFloat32Array`(vertexArray, vectorArray)

  Arguments: | vertexArray (`Float32Array`) – None vectorArray (`Float32Array`) – None

  Sets the arrows by providing the vertices (start points) and the vectors (direction and length)

  The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, …)

  This is the most optimal setting as the PartArrows 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 Docs generative AI assistant. Ask me anything about HOOPS Envision for Web 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...