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

Methods


Constructors

QueryMapResultOnPoints.constructor(model)
Arguments:
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