Skip to content

Commit

Permalink
allow max_volume and volume_constraints both exist for triangle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liubenyuan committed Dec 8, 2014
1 parent d69ae7f commit 4fda4e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meshpy/triangle.py
Expand Up @@ -154,9 +154,7 @@ def build(mesh_info, verbose=False, refinement_func=None, attributes=False,

if volume_constraints:
opts += "a"
if max_volume:
raise ValueError("cannot specify both volume_constraints and max_area")
elif max_volume:
if max_volume:
opts += "a%.20f" % max_volume

if refinement_func is not None:
Expand Down

0 comments on commit 4fda4e4

Please sign in to comment.