set_scene_3d_param🔗
Short description🔗
set_scene_3d_param — Set parameters of a 3D scene.
Signature🔗
set_scene_3d_param( scene_3d Scene3D, string GenParamName, string GenParamValue )
Description🔗
set_scene_3d_param sets parameters of the 3D scene Scene3D.
The name and value of a parameter must be given in GenParamName and
GenParamValue.
All parameters that can be set with set_scene_3d_instance_param
can be set with set_scene_3d_param for all instances of a scene.
Additionally, the following parameters can be set:
-
'disp_background': Flag, if the current window content should be used as background.
List of values: 'true', 'false'.
Default: 'false'.
-
'colored': Set the colors of all currently added instances to different colors. The value of this parameter defines the number of colors that are used.
List of values: 3, 6, 12.
Default: All objects are displayed white.
-
'object_index_persistence': Must be set to 'true' to enable the object index query with
get_display_scene_3d_info.List of values: 'true', 'false'.
Default: 'false'.
-
'depth_persistence': Must be set to 'true' to enable the depth query with
get_display_scene_3d_info.List of values: 'true', 'false'.
Default: 'false'.
-
'quality': Must be set to 'low' to enable faster rendering without anti aliasing.
List of values: 'low', 'high'.
Default: 'high'.
-
'compatibility_mode_enable': Enforce the usage of the fallback mode to OpenGL 1.1.
List of values: 'true', 'false'.
Default: 'false'.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
Scene3D (input_control) scene_3d → (handle)
Handle of the 3D scene.
GenParamName (input_control) string → (string)
Names of the generic parameters.
Default: 'quality'
List of values: 'alpha', 'attribute', 'blue_channel_attrib', 'color', 'color_attrib', 'color_attrib_end', 'color_attrib_start', 'colored', 'compatibility_mode_enable', 'depth_persistence', 'disp_background', 'disp_lines', 'disp_normals', 'disp_pose', 'green_channel_attrib', 'line_color', 'line_width', 'lut', 'normal_color', 'object_index_persistence', 'point_size', 'quality', 'red_channel_attrib', 'rgb_channel_attrib_end', 'rgb_channel_attrib_start', 'visible'
GenParamValue (input_control) string → (string / integer / real)
Values of the generic parameters.
Default: 'high'
Suggested values: 'true', 'false', 'high', 'low', 'coord_x', 'coord_y', 'coord_z', 'normal_x', 'normal_y', 'normal_z', 'red', 'green', 'blue', 'auto', 'faces', 'primitive', 'points', 'lines'
Result🔗
set_scene_3d_param returns 2 (H_MSG_TRUE) if all parameters are
correct. If necessary, an exception is raised.
Combinations with other operators🔗
Module🔗
3D Metrology