# QueryMapResultOnPoints

class `cee.ug.``QueryMapResultOnPoints`()

  Query the scalar or vector result in a given set of points.

  Use this query to compute the value of a given result in a set of points (coordinates) within the model. The result will be loaded if needed, so you can specify any result available for the model.

  This class can be used to map results on the surface of a 3D solid. See the example in Examples/DemoAppUg on how to do that. Various 3D solid generators can be used to generate vertices and indices for this purpose, such as: `utils.CylinderGenerator`, `utils.BoxGenerator` or `utils.SphereGenerator`.

Constructors

- `constructor`

Methods

- `executeQuery`
- `setTolerance`

## Constructors

`QueryMapResultOnPoints.``constructor`(model)

  Arguments: | model (`RemoteModel`) – None
  Return type: | QueryMapResultOnPoints

## Methods

### executeQuery

`QueryMapResultOnPoints.``executeQuery`(frameIndex, resultId, resultType, pointArr, callback)

  Arguments: | frameIndex (`number`) – The zero based index of the frame to query the path from resultId (`number`) – Id of the scalar result to map on the points resultType (`ResultType`) – Scalar and vector results are supported pointArr (`[number]`) – 3D coordinates of the points interleaved (x0, y0, z0, x1, y1, z1, …) callback (`QueryMapScalarOnPointsCallback`) – None

  Compute the value of the specified result in the given points (coordinates).

  Return type: | void

### setTolerance

`QueryMapResultOnPoints.``setTolerance`(tolerance)

  Arguments: | tolerance (`number`) – None

  A non-negative tolerance value used when comparing point location with the model’s elements. Due to the way each point is checked to be inside the model or not, it is recommended to use a small tolerance value. This is used to fine-tune the query to work well for querying points on (or very near) the surface of the model.

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