DeepSDFStruct.plotting#

Functions

generate_plane_points(origin, normal, res, ...)

Generates evenly spaced points on a plane.

plot_slice(fun[, origin, normal, res, ax, ...])

DeepSDFStruct.plotting.generate_plane_points(origin, normal, res, xlim, ylim)#

Generates evenly spaced points on a plane.

Parameters: origin (array-like): A point on the plane (3D vector). normal (array-like): Normal vector of the plane (3D vector). num_points_u (int): Number of points along the first direction (u-axis). num_points_v (int): Number of points along the second direction (v-axis). spacing (float): Distance between adjacent points.

Returns: points (numpy.ndarray): Array of points on the plane of shape (num_points_u * num_points_v, 3).

DeepSDFStruct.plotting.plot_slice(fun, origin=(0, 0, 0), normal=(0, 0, 1), res=(100, 100), ax=None, xlim=(-1, 1), ylim=(-1, 1), clim=(-1, 1), cmap='seismic', show_zero_level=True)#