import os
import sys
from shapeworks import *

def smoothTest1():
  mesh = Mesh(os.environ["DATA"] + "/femur.vtk")
  mesh.smooth(10, 0.01)

  compareMesh = Mesh(os.environ["DATA"] + "/smooth1.vtk")

  return mesh == compareMesh

val = smoothTest1()

if val is False:
  sys.exit(1)

def smoothTest2():
  mesh = Mesh(os.environ["DATA"] + "/femur.vtk")
  mesh.smooth()

  compareMesh = Mesh(os.environ["DATA"] + "/smooth2.vtk")

  return mesh == compareMesh

val = smoothTest2()

if val is False:
  sys.exit(1)

import os
import sys
from shapeworks import *

def smoothTest1():
  mesh = Mesh(os.environ["DATA"] + "/femur.vtk")
  mesh.smooth(10, 0.01)

  compareMesh = Mesh(os.environ["DATA"] + "/smooth1.vtk")

  return mesh == compareMesh

val = smoothTest1()

if val is False:
  sys.exit(1)

def smoothTest2():
  mesh = Mesh(os.environ["DATA"] + "/femur.vtk")
  mesh.smooth()

  compareMesh = Mesh(os.environ["DATA"] + "/smooth2.vtk")

  return mesh == compareMesh

val = smoothTest2()

if val is False:
  sys.exit(1)
