# QueryBulkCalculation

class `cee.ug.``QueryBulkCalculation`()

  Calculation of bulk values from cutting planes and visible surfaces of parts.

  The following values are computed on the cutting plane/part surface:

  - Scalar value: Min/Max/Average/Resultant(sum of Area*EltResult for all surface elements).
  - Geometry: Area, surface (triangle) count, node count, surface centroid.

  For scalar results, a per element result (maybe interpolated) is used for the calculations.

  For vector results, a dot product between the per element vector result (maybe interpolated) and the surface normal is used to compute the scalar value for the element. This is then used to compute min/max/avg/resultant. This will enable computation of flux/flow through the surface.

  Note that bulk calculations can be performed on any result, not only the ones currently mapped on the model/cutting plane.

  For cutting planes, bulk values will be calculated per region, causing one cutting plane to provide more than one region if it consists of two separate spacial regions.

Constructors

- `constructor`

Accessors

- `includeRegionTriangles`

Methods

- `executeCuttingPlaneQuery`
- `executePartQuery`

## Constructors

`QueryBulkCalculation.``constructor`(model)

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

## Accessors

`QueryBulkCalculation.``includeRegionTriangles`()

  Specify if the cutting plane queries should include triangle tessellation for each reg

  Return type: | boolean

`QueryBulkCalculation.``includeRegionTriangles`(includeTriangles)

  Arguments: | includeTriangles (`boolean`) – None
  Return type: | void

## Methods

### executeCuttingPlaneQuery

`QueryBulkCalculation.``executeCuttingPlaneQuery`(frameIndex, cuttingPlaneId, resultType, resultId, callback)

  Arguments: | frameIndex (`number`) – None cuttingPlaneId (`number`) – None resultType (`ResultType`) – None resultId (`number`) – None callback (`QueryBulkCalculationCallback`) – None

  Executes the query for the given cutting plane.

  The query will return bulk values for each region of the cutting plane. The cutting plane will be split into one region for each part, and also further split if the cutting plane for one part consists of two or more spatially separate regions.

  Supported result types are: ResultType.SCALAR and ResultType.VECTOR

  Return type: | void

### executePartQuery

`QueryBulkCalculation.``executePartQuery`(frameIndex, geometryIndex, partId, resultType, resultId, callback)

  Arguments: | frameIndex (`number`) – None geometryIndex (`number`) – None partId (`number`) – None resultType (`ResultType`) – None resultId (`number`) – None callback (`QueryBulkCalculationCallback`) – None

  Executes the query for the given part.

  The bulk values are computed based on the elements referenced by the visible surfaces of the part.

  This query will provide one QueryBulkCalculationValues object with the bulk values for this part.

  Supported result types are: ResultType.SCALAR and ResultType.VECTOR

  Return type: | void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Web 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...