Skip to content

Commit

Permalink
Blend surface: evaluate() method was not implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
portnov committed Jan 4, 2023
1 parent dcf956c commit 704d341
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/surface/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,9 @@ def get_v_min(self):
def get_v_max(self):
return self.v_bounds[1]

def evaluate(self, u, v):
return self.evaluate_array(np.array([u]), np.array([v]))[0]

def evaluate_array(self, us, vs):
c1_min, c1_max = self.curve1.get_u_bounds()
c2_min, c2_max = self.curve2.get_u_bounds()
Expand Down

0 comments on commit 704d341

Please sign in to comment.