Skip to content

Commit

Permalink
change: single name input without file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Oct 30, 2020
1 parent e2840e7 commit c2cf952
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/Visualization/_povmacros.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def pyelastica_rod(


def render(
script_file,
image_file,
filename,
width,
height,
antialias="on",
Expand All @@ -89,10 +88,8 @@ def render(
Parameters
----------
script_file : str
Input .pov file path
image_file : str
Output .png file path
filename : str
POV filename (without extension)
width : int
The width of the output image.
height : int
Expand All @@ -117,6 +114,10 @@ def render(
"""

# Define script path and image path
script_file = filename + '.pov'
image_file = filename + '.png'

# Run Povray as subprocess
cmds = [
"povray",
Expand Down

0 comments on commit c2cf952

Please sign in to comment.