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

added trim test

parent 3ffa593d
Branches
No related tags found
No related merge requests found
Pipeline #347 failed
...@@ -30,7 +30,7 @@ class trimMixin(object): ...@@ -30,7 +30,7 @@ class trimMixin(object):
>>> amp.planarTrim(100, 2) >>> amp.planarTrim(100, 2)
""" """
if isinstance(height, float) and isinstance(plane, int): if type(height)==float:
# planar values for each vert on face # planar values for each vert on face
fv = self.vert[self.faces, plane] fv = self.vert[self.faces, plane]
# Number points on each face are above cut plane # Number points on each face are above cut plane
...@@ -51,4 +51,4 @@ class trimMixin(object): ...@@ -51,4 +51,4 @@ class trimMixin(object):
self.vert = self.vert[~delv, :] self.vert = self.vert[~delv, :]
self.calcStruct() self.calcStruct()
else: else:
raise TypeError("height arg must be a float and plane arg must be an int") raise TypeError("height arg must be a float")
\ No newline at end of file \ 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