Visualization Functions
Get the current view status as dictionary or plot.
gd.getViewStatus
Returns the current view status (settings for rendering). It has the same format as the argument for the GeoDict:SetViewStatus command in Python files.
It is useful to change render settings based on the current settings.
Input:
Example:
For example, change the angle of the camera:
|
gd.get2DViewAsPlot
Returns the 2D view of the loaded structure as a Python dictionary. This dictionary can be used to plot the given slice in a custom GeoDict result file (*.gdr).
Input:
- view direction, integer
- The view direction must be given as integer, where 0 = X, 1 = Y and 2 = Z.
- slice, integer
- The slice in the 2D view of the visualization area in the given direction.
- orientation, bool
- Determine, if the image orientation should be Top to Bottom (True) or Bottom to Top (False). These options are described with the other Camera 2D settings.
Example:
In the following example a result file is generated only containing a plot from the 50th slice of the loaded structure viewed in X-direction and bottom to top.
|