QuerySurfaceGroup

class cee.ug.QuerySurfaceGroup()

Query for retrieving triangulated geometry of surface groups.

Each surface group is a collection of element faces that originate from the same surface. The main source of surface groups is CAD files (e.g. HOOPS Exchange plugin), so they are sometimes referred to as CAD surface groups. Use this query to obtain the surface group IDs present in the model, and to obtain an indexed triangle mesh (vertices + triangle indices) for the surface group with a given surface group ID.

Constructors

Methods


Constructors

QuerySurfaceGroup.constructor(model)
Arguments:
Return type:

QuerySurfaceGroup

Methods

executeAvailableSurfaceGroupIdsQuery

QuerySurfaceGroup.executeAvailableSurfaceGroupIdsQuery(frameIndex, callback)
Arguments:

Executes a query that returns the surface group IDs that are present in the model.

Return type:void

executeTriangulationQuery

QuerySurfaceGroup.executeTriangulationQuery(frameIndex, surfaceGroupId, callback)
Arguments:

Executes a query that returns the triangulated geometry of the surface group with the given surface group ID.

The result is an indexed triangle mesh (deduplicated vertices + triangle indices). If no surface group with the given surface group ID exists, the callback is invoked with an error.

Vertices are returned in world coordinates using the currently active node positions of the part (i.e. including displacements when applicable). Vertices are deduplicated, so each shared mesh node appears only once in the output vertices array, and triangles reference vertices via the indices in triangleIndices (three indices per triangle).

Return type:void