# MeshIndexedLines

class `cee.geo.``MeshIndexedLines`()

  This class implements a `Mesh` for indexed lines.

  Rather than defining each line directly as an array of vertices, an array containing each unique vertex in the part is defined. Then lines are defined by arrays of indices that refer to elements of this vertex array. This allows lines to share vertices, thus reducing the number of vertices.

Constructors

- `constructor`

Accessors

- `boundingBox`
- `indexArray`
- `primitiveCount`
- `primitiveType`
- `textureCoordinates`
- `vertexArray`
- `vertexCount`

Methods

- `getPrimitiveVertices`
- `rayIntersect`

## Constructors

`MeshIndexedLines.``constructor`(vertices, indices[, optionalVertexData])

  Arguments: | vertices (`ArrayLike`) – None indices (`ArrayLike`) – None optionalVertexData (`OptionalIndexedLinesVertexData`) – optional None

  Creates an indexed lines mesh with the given vertices and indices.

  Return type: | MeshIndexedLines

## Accessors

`MeshIndexedLines.``boundingBox`()

  Returns a copy of the `BoundingBox` of the mesh

  Return type: | BoundingBox

`MeshIndexedLines.``indexArray`()

  A readonly array containing the indices of the mesh

  Return type: | ArrayLike <number>

`MeshIndexedLines.``primitiveCount`()

  The number of primitives in the mesh.

  Return type: | number

`MeshIndexedLines.``primitiveType`()

  The type of primitives that are used in the mesh.

  Return type: | MeshPrimitiveType

`MeshIndexedLines.``textureCoordinates`()

  A readonly array containing the 2d texture coordinates of the mesh

  Return type: | ArrayLike <number>

`MeshIndexedLines.``vertexArray`()

  A readonly array containing the vertices of the mesh

  Return type: | ArrayLike <number>

`MeshIndexedLines.``vertexCount`()

  The number of vertices in the mesh.

  Return type: | number

## Methods

### getPrimitiveVertices

`MeshIndexedLines.``getPrimitiveVertices`(primitiveIndex)

  Arguments: | primitiveIndex (`number`) – None

  Returns a copy of the vertex indices of a given primitive.

  Return type: | [Vec3]

### rayIntersect

`MeshIndexedLines.``rayIntersect`(ray[, hitItem])

  Arguments: | ray (`Ray`) – None hitItem (`MeshHitItem`) – optional None

  Performs picking on the mesh.

  If a primitive was hit, the function returns true and populates the passed hitItem object with information about this primitive. It nothing was hit, returns false.

  Return type: | boolean

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...