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
executeAvailableSurfaceGroupIdsQueryexecuteSurfaceGroupIdForElementQueryexecuteTriangulationQuery
Constructors
-
QuerySurfaceGroup.constructor(model) Arguments: - model (
RemoteModel) – None
Return type: QuerySurfaceGroup
- model (
Methods
executeAvailableSurfaceGroupIdsQuery
-
QuerySurfaceGroup.executeAvailableSurfaceGroupIdsQuery(frameIndex, callback) Arguments: - frameIndex (
number) – None - callback (
QuerySurfaceGroupAvailableSurfaceGroupIdsCallback) – None
Executes a query that returns the surface group IDs that are present in the model.
Return type: void - frameIndex (
executeTriangulationQuery
-
QuerySurfaceGroup.executeTriangulationQuery(frameIndex, surfaceGroupId, callback) Arguments: - frameIndex (
number) – None - surfaceGroupId (
number) – None - callback (
QuerySurfaceGroupTriangulationCallback) – None
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
verticesarray, and triangles reference vertices via the indices intriangleIndices(three indices per triangle).Return type: void - frameIndex (