Skip to content

Commit

Permalink
Updated examples to show new gustaf capability
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwar authored and j042 committed Apr 8, 2024
1 parent 28cf752 commit 6d7badb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/show_isophotes_and_curvature.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ def mean_curvature(data, on=None):
a.show_options["lighting"] = "off"
a.show_options["control_points"] = False
a.show_options["knots"] = False
# a.show_options["cmap_n_colors"] = 2
a.show_options["cmap"] = "turbo"

# Show Isophotes
a.show_options["data"] = "isophotes"
a.show(resolutions=1000, title="Isophotes")

# Show Gaussian Curvature
a.show_options["cmap_n_colors"] = 20
a.show_options["data"] = "gaussian_curvature"
a.show_options["scalarbar"] = True
a.show(resolutions=100, title="Gaussian Curvature")
Expand Down
1 change: 1 addition & 0 deletions splinepy/helpme/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def _process_scalar_field(spline, data, sampled_spline, res):
"scalarbar3d",
"cmap",
"cmap_alpha",
"cmap_n_colors",
)
spline.show_options.copy_valid_options(
sampled_spline.show_options, keys
Expand Down

0 comments on commit 6d7badb

Please sign in to comment.