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: CylinderGenerator BoxGenerator or SphereGenerator

Constructors

Methods


Constructors

constructor

cee.ug.QueryMapResultOnPoints.constructor(model)
Arguments
Return type

cee.ug.QueryMapResultOnPoints

Methods

executeQuery

cee.ug.QueryMapResultOnPoints.executeQuery(frameIndex, resultId, resultType, pointArr, callback)

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

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 (cee.ug.ResultType) – Scalar and vector results are supported

  • pointArr ([number]) – 3D coordinates of the points interleaved (x0, y0, z0, x1, y1, z1, …)

  • callback (cee.ug.QueryMapScalarOnPointsCallback) –

Return type

void