Convert geometry data from a psi2tree object into 3D data format.
This function processes the geometry data from a psi2tree object and converts it into a structured 3D data format suitable for visualization or further analysis, returning it as a named tuple (Data3D).
Parameters
Name
Type
Description
Default
psi2tree
object
A psi2tree object containing graph and geometry data to be converted
required
Other Parameters
Name
Type
Description
Default
bitmap
bool, optional (default: False)
If True, generates a bitmap-style grid; if False, uses interpolation to create a continuous grid
False
Returns
Name
Type
Description
Data3D
A named tuple containing: - xi: x-coordinate grid points - yi: y-coordinate grid points - zi: z-values (levels) on the grid - levels: sorted unique levels from the graph nodes - cmin: minimum color value for scaling - cmax: maximum color value for scaling - obstacles: list of (x, y) obstacle coordinates (if bitmap=True)