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
orSphereGenerator
Constructors
Methods
Constructors
constructor
- cee.ug.QueryMapResultOnPoints.constructor(model)
- Arguments
model (
cee.ug.RemoteModel
) –
- 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 fromresultId (
number
) – Id of the scalar result to map on the pointsresultType (
cee.ug.ResultType
) – Scalar and vector results are supportedpointArr (
[number]
) – 3D coordinates of the points interleaved (x0, y0, z0, x1, y1, z1, …)callback (
cee.ug.QueryMapScalarOnPointsCallback
) –
- Return type
void