# Path: rhino_unwrapper/transformations.py
# def get_mapped_point(point,from_frame,to_frame):
# def get_frame_on_mesh(mesh_location,myMesh):
#     def getOther(vertIdx, edgeTVerts):
# def get_xy_net_frame(pointPair):
# def make_xy_frame(point,xVec):
# def make_origin_frame():
#     def __init__(self,plane):
#     def create_frame_from_vectors(cls,origin,x,y):
#     def create_frame_from_normal_and_x(cls,origin,normal,x):
#     def create_frame_from_tuples(cls,origin,x,y):
#     def instantiate_plane(origin,x,y):
#     def show(self):
#     def is_equal(self,test_frame):
#     def _check_vector3d(self):
#     def _unitize(self):
#     def _check_orthogonal(self):
#     def _check_unitized(self):
# class Frame(object):


import unittest
import mesh
import meshLoad
import Rhino.Geometry as geom
import rhinoscriptsyntax as rs
from rhino_unwrapper import transformations as trans
        self.assertTrue(self.mesh.is_cut_edge(edge))
        self.assertFalse(self.mesh.is_cut_edge(0))
        self.assertFalse(self.mesh.is_cut_edge(-1))

    def test_is_fold_edge(self):
        cuts = [1,4]
        edge = 7
        self.mesh.set_cuts(cuts)
        self.assertTrue(self.mesh.is_fold_edge(edge))
        self.assertFalse(self.mesh.is_fold_edge(1))
        self.assertFalse(self.mesh.is_fold_edge(0))

    def test_is_naked_edge(self):
        naked = 0
        surrounded = 2
        self.assertTrue(self.mesh.is_naked_edge(naked))
        self.assertFalse(self.mesh.is_naked_edge(surrounded))
        self.assertRaises(AssertionError,self.mesh.is_naked_edge,-1)

class MeshTestCase(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.mesh = mesh.make_test_mesh()

    def test_get_frame_oriented_with_face_normals(self):
        newFrame = self.mesh.get_frame_oriented_with_face_normal(edge=0,face=2)
        o = (0,5,0)
        x = (0,-1,0)
        y = (1,0,0)

# Path: rhino_unwrapper/transformations.py
# def get_mapped_point(point,from_frame,to_frame):
# def get_frame_on_mesh(mesh_location,myMesh):
#     def getOther(vertIdx, edgeTVerts):
# def get_xy_net_frame(pointPair):
# def make_xy_frame(point,xVec):
# def make_origin_frame():
#     def __init__(self,plane):
#     def create_frame_from_vectors(cls,origin,x,y):
#     def create_frame_from_normal_and_x(cls,origin,normal,x):
#     def create_frame_from_tuples(cls,origin,x,y):
#     def instantiate_plane(origin,x,y):
#     def show(self):
#     def is_equal(self,test_frame):
#     def _check_vector3d(self):
#     def _unitize(self):
#     def _check_orthogonal(self):
#     def _check_unitized(self):
# class Frame(object):


# Path: rhino_unwrapper/meshUtils/test_mesh.py
import unittest
import mesh
import meshLoad
import Rhino.Geometry as geom
import rhinoscriptsyntax as rs
from rhino_unwrapper import transformations as trans

        self.assertTrue(self.mesh.is_cut_edge(edge))
        self.assertFalse(self.mesh.is_cut_edge(0))
        self.assertFalse(self.mesh.is_cut_edge(-1))

    def test_is_fold_edge(self):
        cuts = [1,4]
        edge = 7
        self.mesh.set_cuts(cuts)
        self.assertTrue(self.mesh.is_fold_edge(edge))
        self.assertFalse(self.mesh.is_fold_edge(1))
        self.assertFalse(self.mesh.is_fold_edge(0))

    def test_is_naked_edge(self):
        naked = 0
        surrounded = 2
        self.assertTrue(self.mesh.is_naked_edge(naked))
        self.assertFalse(self.mesh.is_naked_edge(surrounded))
        self.assertRaises(AssertionError,self.mesh.is_naked_edge,-1)

class MeshTestCase(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.mesh = mesh.make_test_mesh()

    def test_get_frame_oriented_with_face_normals(self):
        newFrame = self.mesh.get_frame_oriented_with_face_normal(edge=0,face=2)
        o = (0,5,0)
        x = (0,-1,0)
        y = (1,0,0)

        correct_frame = trans.Frame.create_frame_from_tuples(o,x,y)