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.BoxGeneratororutils.SphereGenerator.
Constructors
-
cee.ug.QueryMapResultOnPoints.constructor() - QueryMapResultOnPoints(model:
RemoteModel):QueryMapResultOnPointsParameters
model:RemoteModelReturns:
QueryMapResultOnPoints
Methods
-
cee.ug.QueryMapResultOnPoints.executeQuery() - executeQuery(frameIndex: number, resultId: number, resultType:
ResultType, pointArr: number[], callback:QueryMapScalarOnPointsCallback): voidCompute the value of the specified result in the given points (coordinates).
Parameters
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:
ResultTypeScalar and vector results are supportedpointArr: number[]
3D coordinates of the points interleaved (x0, y0, z0, x1, y1, z1, …)callback:
QueryMapScalarOnPointsCallbackReturns: void
-
cee.ug.QueryMapResultOnPoints.setTolerance() - setTolerance(tolerance: number?): void
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.
Parameters
tolerance: number = 1e-6Returns: void
Default
```ts 1e-6. ```