Skip to main content

Post-processing tools 2023 R2

ensightservice::UpdateGeom Struct Reference

Last update: 17.04.2023

Update a Geom entity. More...

Public Types

enum  ArrayType {
  COORDINATES = 0 , TRIANGLES = 1 , LINES = 2 , EDGEFLAGS = 3 ,
  ELEM_VARIABLE = 4 , NODE_VARIABLE = 5 , ELEM_NORMALS = 6 , NODE_NORMALS = 7 ,
  TEX_COORDINATES = 8
}
 

Public Attributes

uint64 id = 1
 The Geom entity id.
 
uint64 parent_id = 2
 Parent Part entity id.
 
ArrayType payload_type = 3
 The type of the array represented by this entity.
 
uint64 variable_id = 4
 If the ArrayType is VARIABLE, this is the associated entity id of a Variable.
 
repeated float flt_array = 5 [packed=true]
 Used when payload_type is VARIABLE or COORDINATES.
 
repeated uint32 int_array = 6 [packed=true]
 Used when payload_type is TRIANGLES, LINES or EDGEFLAGS.
 
uint64 chunk_offset = 7
 The offset in "elements" (floats, uint32, etc) of the array represented by this Geom.
 
uint64 total_array_size = 8
 The total size in "elements" (floats, uint32, etc) of the array represented by this Geom.
 
string hash = 9
 hash for this message payload
 

Detailed Description

Update a Geom entity.

The geom entity holds the physical arrays used for rendering. It contains a coordinate array and connectivity that is relative to the coordinate array for this geom. The connectivity can be triangles, lines or empty (points). If triangles, optional edgeflags specify the "line" representation of the triangles (for element outlining) Otherwise, the geom object can hold the data payloads for other variables tagged via their variable id. The use of these variables is dictated by fields in the Part entity that note the use of specific variables for other purposes (e.g. normals, coloring, node size, etc). Multiple UpdateGeom packets are send to fill in an entire array, limited by the size specified in the init command. All Geom packets for a specific array will include the full size of the target array (in base type units, uint32 or float) and an offset where the payload of a specific UpdateGeom packet should be stored in the array.

Definition at line 370 of file dynamic_scene_graph.proto.

Member Enumeration Documentation

◆ ArrayType

The type of array the Geom represents

Enumerator
COORDINATES 

x1,y1,z1,x2,y2,z2 ...

TRIANGLES 

3*uint32 per triangle (zero based)

LINES 

2*uint32 per line segment (zero based)

EDGEFLAGS 

uint32 per element (only used with triangles)

ELEM_VARIABLE 

per element 1D variable values from the variable_id

NODE_VARIABLE 

per node 1D variable values from the variable_id

ELEM_NORMALS 

x1,y1,z1,x2,y2,z2 ...

NODE_NORMALS 

x1,y1,z1,x2,y2,z2 ...

TEX_COORDINATES 

2*float, always per vertex, u1,v1,u2,v2 ...

Definition at line 373 of file dynamic_scene_graph.proto.


The documentation for this struct was generated from the following file: