diffCheck.df_visualization module#

This module contains the utility functions to visualize differences

class diffCheck.df_visualization.DFColorMap(name)#

Bases: object

This class defines different colormaps for visualization purposes It allows selection of a colormap by name and initializes the corresponding color values.

interpolate_color(color1, color2, t)#

Interpolate between two colors.

value_to_color(value, min_value, max_value)#

Map a value to a color based on a colormap.

class diffCheck.df_visualization.DFVizSettings(valueType, palette, upper_threshold, lower_threshold, legend_height, legend_width, legend_plane, histogram_scale_factor)#

Bases: object

This class compiles the settings for the visualization into one object

diffCheck.df_visualization.color_rh_mesh(mesh, values, min_value, max_value, palette)#

Colors a mesh based on given values and palette.

diffCheck.df_visualization.color_rh_pcd(pcd, values, min_value, max_value, palette)#

Colors a point cloud data based on given values and palette.

diffCheck.df_visualization.create_histogram(values, min_value, max_value, steps=100, plane=Rhino.Geometry.Plane.WorldXY, total_height=10, scaling_factor=0.01, spacing=0)#

Create a histogram in Rhino with a polyline representing value frequencies.

diffCheck.df_visualization.create_legend(min_value, max_value, palette, steps=10, plane=Rhino.Geometry.Plane.WorldXY, width=0.5, total_height=10, spacing=0)#

Create a legend in Rhino with colored hatches and text labels.