Skip to content
Snippets Groups Projects
Commit 92006625 authored by ojs1g14's avatar ojs1g14
Browse files

added trim test

parent 3ffa593d
No related branches found
No related tags found
No related merge requests found
Pipeline #347 failed
......@@ -30,7 +30,7 @@ class trimMixin(object):
>>> amp.planarTrim(100, 2)
"""
if isinstance(height, float) and isinstance(plane, int):
if type(height)==float:
# planar values for each vert on face
fv = self.vert[self.faces, plane]
# Number points on each face are above cut plane
......@@ -51,4 +51,4 @@ class trimMixin(object):
self.vert = self.vert[~delv, :]
self.calcStruct()
else:
raise TypeError("height arg must be a float and plane arg must be an int")
\ No newline at end of file
raise TypeError("height arg must be a float")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment