    

 ## On this page

  

 

 # ensightservice::UpdatePart Struct Reference

 Last update: 16.07.2025 

Update a Part entity. [More...](structensightservice_1_1_update_part.xhtml#details)

## <a id="pub-types" name="pub-types"></a>Public Types

enum [RenderingMode](structensightservice_1_1_update_part.xhtml#a08774fd175375ce53267c2596831ddec) { [NODES](structensightservice_1_1_update_part.xhtml#a08774fd175375ce53267c2596831ddecac09b801c81ff9a17215d193690acb941) = 0 , [CONNECTIVITY](structensightservice_1_1_update_part.xhtml#a08774fd175375ce53267c2596831ddeca91f814245db2858844fd78dc9010c205) = 1 } enum [ShadingMode](structensightservice_1_1_update_part.xhtml#a8a65fed5c948b9c4ee6165818da35b01) { [ELEMENTAL](structensightservice_1_1_update_part.xhtml#a8a65fed5c948b9c4ee6165818da35b01acdfc4ad1532f97699bedfad3653ac2fe) = 0 , [NODAL](structensightservice_1_1_update_part.xhtml#a8a65fed5c948b9c4ee6165818da35b01a5cb3cf33dd6e04ce4bbe8721d36f2c6a) = 1 } enum [TextureWrapMode](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796) { [REPEAT](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796ae49b8828574680d1dedb130bbbb9c2bc) = 0 , [CLAMP](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796a244b83109d047b4fb87cd9ed347c5463) = 1 , [CLAMP\_TEXTURE](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796ae6e175e4e97f97b923fd496da72346c2) = 2 } enum [TextureApplyMode](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736) { [REPLACE](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736a5e4ea0327459d1bf936e5a7db32ef0ba) = 0 , [DECAL](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736a520aea4e9aa1ff0b3627e4812e77fa8a) = 1 , [MODULATE](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736a801b9e7ee05853ab08f92695c4453fb8) = 2 } enum [TextureSampleMode](structensightservice_1_1_update_part.xhtml#a41ed8e636c5565d44c63fe1e8cd62163) { [NEAREST](structensightservice_1_1_update_part.xhtml#a41ed8e636c5565d44c63fe1e8cd62163afb41518d4aa2322e1822a7ad6860f896) = 0 , [LINEAR](structensightservice_1_1_update_part.xhtml#a41ed8e636c5565d44c63fe1e8cd62163abf80688fd45aec45cc89bbf4929aabbd) = 1 } ## <a id="pub-attribs" name="pub-attribs"></a>Public Attributes

<a id="a146d625ee8cfdc2174a4d040c60911c3"></a>uint64 [id](structensightservice_1_1_update_part.xhtml#a146d625ee8cfdc2174a4d040c60911c3) = 1 The Part entity id.   
 <a id="a05419f0c4aabaa6070aa80a3910d567f"></a>uint64 [parent\_id](structensightservice_1_1_update_part.xhtml#a05419f0c4aabaa6070aa80a3910d567f) = 2 Parent Group id.   
 <a id="a64d2b287913002e8dc978450e91d717d"></a>string [name](structensightservice_1_1_update_part.xhtml#a64d2b287913002e8dc978450e91d717d) = 3 The name of the Part.   
 <a id="a7899500fa988dd96cfa7456351ab7332"></a>repeated float [matrix4x4](structensightservice_1_1_update_part.xhtml#a7899500fa988dd96cfa7456351ab7332) = 4 Rigid body motion.   
 <a id="a6fa26455ae14b97ed2ff47bc81a2fe01"></a>repeated float [fill\_color](structensightservice_1_1_update_part.xhtml#a6fa26455ae14b97ed2ff47bc81a2fe01) = 5 Base color for the part (rgba). If color\_variableid is not set, draw the part with this RGB. Even if color\_variableid is set, combine RGB from color\_variableid with A in fill\_color.   
 <a id="a518b58bb817746904e20bae13df42336"></a>repeated float [line\_color](structensightservice_1_1_update_part.xhtml#a518b58bb817746904e20bae13df42336) = 6 Used for rendering line connectivity and element boundaries if edgeflags are specified.   
 <a id="a7bc6066b491f0e0d53f74f89e897e62a"></a>[RenderingMode](structensightservice_1_1_update_part.xhtml#a08774fd175375ce53267c2596831ddec) [render](structensightservice_1_1_update_part.xhtml#a7bc6066b491f0e0d53f74f89e897e62a) = 7 What to aspect of the mesh to render.   
 <a id="a5f0ab89caa52e901e519bb0312097b6b"></a>[ShadingMode](structensightservice_1_1_update_part.xhtml#a8a65fed5c948b9c4ee6165818da35b01) [shading](structensightservice_1_1_update_part.xhtml#a5f0ab89caa52e901e519bb0312097b6b) = 8 Defines the location of the normals. If normals are specified per-element, triangles should be shaded as "flat".   
 <a id="a1bdde519e13ec4fe017e3cd33ac19101"></a>float [ambient](structensightservice_1_1_update_part.xhtml#a1bdde519e13ec4fe017e3cd33ac19101) = 9 OpenGL style ambient coloring factor: GL\_AMBIENT.   
 <a id="af1fac323130745d692092724afad5305"></a>float [diffuse](structensightservice_1_1_update_part.xhtml#af1fac323130745d692092724afad5305) = 10 OpenGL style diffuse coloring rgb: GL\_DIFFUSE.   
 <a id="ae870baf91c0272bacc9a6b767dce9fc0"></a>float [specular\_shine](structensightservice_1_1_update_part.xhtml#ae870baf91c0272bacc9a6b767dce9fc0) = 11 OpenGL style specular factor: GL\_SHININESS.   
 <a id="a435c23c1109c77b9880a22e4e97f6ecb"></a>float [specular\_intensity](structensightservice_1_1_update_part.xhtml#a435c23c1109c77b9880a22e4e97f6ecb) = 12 OpenGL style specular factor: GL\_SPECULAR.   
 <a id="aef2cbe0ee256ed43444ce8b46fdf7897"></a>string [material\_name](structensightservice_1_1_update_part.xhtml#aef2cbe0ee256ed43444ce8b46fdf7897) = 13 The material name specification.   
 <a id="af0d873b7ed1de4234c494af420bc3bd3"></a>float [node\_size\_default](structensightservice_1_1_update_part.xhtml#af0d873b7ed1de4234c494af420bc3bd3) = 14 If node rendering is specified, the base size of each node.   
 <a id="a06f276651bacf17d190576631064b80b"></a>uint64 [color\_variableid](structensightservice_1_1_update_part.xhtml#a06f276651bacf17d190576631064b80b) = 15 per-node or per-element coloring specification   
 <a id="ad7834ca7d0348aef62bd8349f2c49707"></a>uint64 [alpha\_variableid](structensightservice_1_1_update_part.xhtml#ad7834ca7d0348aef62bd8349f2c49707) = 16 If this is set, transparency varies over the part, and comes from the alpha channel for alpha\_variableid. It supercedes the alpha value in fill\_color.   
 <a id="adcfa62e75a9159c60598b4b15ace17f1"></a>uint64 [node\_size\_variableid](structensightservice_1_1_update_part.xhtml#adcfa62e75a9159c60598b4b15ace17f1) = 17 If the 'render' variable has 'NODES' set, the size of rendered points can vary by the value of a variable instead of the node\_size\_default.   
 <a id="abca6bd2a86631f927e86eaa68905ea80"></a>uint64 [displacement\_variableid](structensightservice_1_1_update_part.xhtml#abca6bd2a86631f927e86eaa68905ea80) = 18 if this is set, the vector variable should be added to the coordinate variable to generate the final coordinate.   
 <a id="a2fab0e62a37c14a713f2d522e167e34b"></a>uint64 [texture\_id](structensightservice_1_1_update_part.xhtml#a2fab0e62a37c14a713f2d522e167e34b) = 19 2D texture to apply.   
 <a id="a5342169c3591f1324c3bf0c8ea4e68b6"></a>[TextureWrapMode](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796) [texture\_wrap\_mode](structensightservice_1_1_update_part.xhtml#a5342169c3591f1324c3bf0c8ea4e68b6) = 20 2D texture wrapping options   
 <a id="a69b91fc0cbd910578edb81ed45b3c66c"></a>[TextureApplyMode](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736) [texture\_apply\_mode](structensightservice_1_1_update_part.xhtml#a69b91fc0cbd910578edb81ed45b3c66c) = 21 2D texture color blending options   
 <a id="ada36d973467e004165e916c9b4da47df"></a>[TextureSampleMode](structensightservice_1_1_update_part.xhtml#a41ed8e636c5565d44c63fe1e8cd62163) [texture\_sample\_mode](structensightservice_1_1_update_part.xhtml#ada36d973467e004165e916c9b4da47df) = 22 2D texture sampling options   
 <a id="a91ffdc6c84e47f69bde3fedc8424fdac"></a>string [hash](structensightservice_1_1_update_part.xhtml#a91ffdc6c84e47f69bde3fedc8424fdac) = 23 hash for this message payload   
 <a id="details" name="details"></a>## Detailed Description

Update a Part entity.

Sent to update part rendering attributes. Parts have Geom entity children that define the bulk data arrays.

The material name needs additional work. If 'steel' or 'glass' are specified, are we expecting the client to come up with shaders for those materials, or just informing that fill\_color and shininess parameters are steel-like or glass-like. General thinking is to use common namespaces (e.g. granta, etc) for known material specifications and namespace prefixed JSON for others (e.g. ensight:{json payload}

Definition at line [269](dynamic__scene__graph_8proto_source.xhtml#l00269) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).



## Member Enumeration Documentation

<a id="a08774fd175375ce53267c2596831ddec"></a>## [◆ ](#a08774fd175375ce53267c2596831ddec)RenderingMode

 enum [ensightservice::UpdatePart::RenderingMode](structensightservice_1_1_update_part.xhtml#a08774fd175375ce53267c2596831ddec)

The rendering mode is actually a bit field, defining what should be rendered.

Enumerator<a id="a08774fd175375ce53267c2596831ddecac09b801c81ff9a17215d193690acb941"></a>NODES render the nodes of the connectivity (spheres)

<a id="a08774fd175375ce53267c2596831ddeca91f814245db2858844fd78dc9010c205"></a>CONNECTIVITY render the elements defined by the connectivity, triangles or lines. Note: if edgeflags are specified and the connectivity is triangle, element boundaries are to be outlined

Definition at line [272](dynamic__scene__graph_8proto_source.xhtml#l00272) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a8a65fed5c948b9c4ee6165818da35b01"></a>## [◆ ](#a8a65fed5c948b9c4ee6165818da35b01)ShadingMode

 enum [ensightservice::UpdatePart::ShadingMode](structensightservice_1_1_update_part.xhtml#a8a65fed5c948b9c4ee6165818da35b01)

Define the location of normals

Enumerator<a id="a8a65fed5c948b9c4ee6165818da35b01acdfc4ad1532f97699bedfad3653ac2fe"></a>ELEMENTAL Normals are specified per element face (e.g. one normal per triangle).

<a id="a8a65fed5c948b9c4ee6165818da35b01a5cb3cf33dd6e04ce4bbe8721d36f2c6a"></a>NODAL Normals are specified per node.

Definition at line [278](dynamic__scene__graph_8proto_source.xhtml#l00278) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a7d558b62f6603608dd88a4a1469f6736"></a>## [◆ ](#a7d558b62f6603608dd88a4a1469f6736)TextureApplyMode

 enum [ensightservice::UpdatePart::TextureApplyMode](structensightservice_1_1_update_part.xhtml#a7d558b62f6603608dd88a4a1469f6736)

2D texture options for combining texture color with part color, lighting, color by var

Enumerator<a id="a7d558b62f6603608dd88a4a1469f6736a5e4ea0327459d1bf936e5a7db32ef0ba"></a>REPLACE 2D texture color replaces all other color. No lighting. Same as DECAL unless wrap mode is CLAMP.

<a id="a7d558b62f6603608dd88a4a1469f6736a520aea4e9aa1ff0b3627e4812e77fa8a"></a>DECAL 2D texture color replaces all other color. No lighting.

<a id="a7d558b62f6603608dd88a4a1469f6736a801b9e7ee05853ab08f92695c4453fb8"></a>MODULATE Color as usual with part color, lighting, color by var, etc. Then multiply by the 2D texture color.

Definition at line [291](dynamic__scene__graph_8proto_source.xhtml#l00291) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a41ed8e636c5565d44c63fe1e8cd62163"></a>## [◆ ](#a41ed8e636c5565d44c63fe1e8cd62163)TextureSampleMode

 enum [ensightservice::UpdatePart::TextureSampleMode](structensightservice_1_1_update_part.xhtml#a41ed8e636c5565d44c63fe1e8cd62163)

2D texture interpolation

Enumerator<a id="a41ed8e636c5565d44c63fe1e8cd62163afb41518d4aa2322e1822a7ad6860f896"></a>NEAREST Like GL\_NEAREST.

<a id="a41ed8e636c5565d44c63fe1e8cd62163abf80688fd45aec45cc89bbf4929aabbd"></a>LINEAR Like GL\_LINEAR.

Definition at line [298](dynamic__scene__graph_8proto_source.xhtml#l00298) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





<a id="a694e8e5cb74ec402c0edeb2c9d232796"></a>## [◆ ](#a694e8e5cb74ec402c0edeb2c9d232796)TextureWrapMode

 enum [ensightservice::UpdatePart::TextureWrapMode](structensightservice_1_1_update_part.xhtml#a694e8e5cb74ec402c0edeb2c9d232796)

2D texture options for tex coords outside \[0,1\]

Enumerator<a id="a694e8e5cb74ec402c0edeb2c9d232796ae49b8828574680d1dedb130bbbb9c2bc"></a>REPEAT Like GL\_REPEAT.

<a id="a694e8e5cb74ec402c0edeb2c9d232796a244b83109d047b4fb87cd9ed347c5463"></a>CLAMP Like GL\_CLAMP\_TO\_BORDER, except values outside \[0,1\] get the usual part color/lighting/color by var in DECAL mode, and killed in REPLACE or MODULATE mode.

<a id="a694e8e5cb74ec402c0edeb2c9d232796ae6e175e4e97f97b923fd496da72346c2"></a>CLAMP\_TEXTURE Like GL\_CLAMP\_TO\_EDGE.

Definition at line [284](dynamic__scene__graph_8proto_source.xhtml#l00284) of file [dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml).





---

The documentation for this struct was generated from the following file:- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/ensight/client/rpc\_interface/[dynamic\_scene\_graph.proto](dynamic__scene__graph_8proto_source.xhtml)