Skip to content

Commit

Permalink
Add: debug log at cs_normal_vector
Browse files Browse the repository at this point in the history
  • Loading branch information
OberGue committed Jul 3, 2024
1 parent ca5adbf commit 1855ad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/show_swept.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@

# user can define the normal vector of the cross section, in case
# the cross section is not planar in the x-y plane (default)
cs_nv = np.array([0, 1, 1])
cs_nv = np.array([0, 0, 1])

### SWEEP ###
swept_surface = splinepy.helpme.create.swept(
Expand Down
2 changes: 2 additions & 0 deletions splinepy/helpme/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ def swept(
# setting default value for cross_section_normal
if cross_section_normal is None:
cross_section_normal = _np.array([0, 0, 1])
# add debug message
_log.debug("No cross section normal given. Defaulting to [0, 0, 1].")

# make copies so we can work on it inplace
trajectory = trajectory.create.embedded(3)
Expand Down

0 comments on commit 1855ad4

Please sign in to comment.