# coding: utf-8

"""
    Onshape REST API

    The Onshape REST API consumed by all clients.  # noqa: E501

    The version of the OpenAPI document: 1.104
    Contact: api-support@onshape.zendesk.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BTExportTessellatedFacesFacet(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'normal': 'BTVector3d',
        'indices': 'list[int]',
        'texture_coordinates': 'list[BTVector2d]',
        'normals': 'list[BTVector3d]',
        'vertices': 'list[BTVector3d]'
    }

    attribute_map = {
        'normal': 'normal',
        'indices': 'indices',
        'texture_coordinates': 'textureCoordinates',
        'normals': 'normals',
        'vertices': 'vertices'
    }

    def __init__(self, normal=None, indices=None, texture_coordinates=None, normals=None, vertices=None):  # noqa: E501
        """BTExportTessellatedFacesFacet - a model defined in OpenAPI"""  # noqa: E501

        self._normal = None
        self._indices = None
        self._texture_coordinates = None
        self._normals = None
        self._vertices = None
        self.discriminator = None

        if normal is not None:
            self.normal = normal
        if indices is not None:
            self.indices = indices
        if texture_coordinates is not None:
            self.texture_coordinates = texture_coordinates
        if normals is not None:
            self.normals = normals
        if vertices is not None:
            self.vertices = vertices

    @property
    def normal(self):
        """Gets the normal of this BTExportTessellatedFacesFacet.  # noqa: E501


        :return: The normal of this BTExportTessellatedFacesFacet.  # noqa: E501
        :rtype: BTVector3d
        """
        return self._normal

    @normal.setter
    def normal(self, normal):
        """Sets the normal of this BTExportTessellatedFacesFacet.


        :param normal: The normal of this BTExportTessellatedFacesFacet.  # noqa: E501
        :type: BTVector3d
        """

        self._normal = normal

    @property
    def indices(self):
        """Gets the indices of this BTExportTessellatedFacesFacet.  # noqa: E501


        :return: The indices of this BTExportTessellatedFacesFacet.  # noqa: E501
        :rtype: list[int]
        """
        return self._indices

    @indices.setter
    def indices(self, indices):
        """Sets the indices of this BTExportTessellatedFacesFacet.


        :param indices: The indices of this BTExportTessellatedFacesFacet.  # noqa: E501
        :type: list[int]
        """

        self._indices = indices

    @property
    def texture_coordinates(self):
        """Gets the texture_coordinates of this BTExportTessellatedFacesFacet.  # noqa: E501


        :return: The texture_coordinates of this BTExportTessellatedFacesFacet.  # noqa: E501
        :rtype: list[BTVector2d]
        """
        return self._texture_coordinates

    @texture_coordinates.setter
    def texture_coordinates(self, texture_coordinates):
        """Sets the texture_coordinates of this BTExportTessellatedFacesFacet.


        :param texture_coordinates: The texture_coordinates of this BTExportTessellatedFacesFacet.  # noqa: E501
        :type: list[BTVector2d]
        """

        self._texture_coordinates = texture_coordinates

    @property
    def normals(self):
        """Gets the normals of this BTExportTessellatedFacesFacet.  # noqa: E501


        :return: The normals of this BTExportTessellatedFacesFacet.  # noqa: E501
        :rtype: list[BTVector3d]
        """
        return self._normals

    @normals.setter
    def normals(self, normals):
        """Sets the normals of this BTExportTessellatedFacesFacet.


        :param normals: The normals of this BTExportTessellatedFacesFacet.  # noqa: E501
        :type: list[BTVector3d]
        """

        self._normals = normals

    @property
    def vertices(self):
        """Gets the vertices of this BTExportTessellatedFacesFacet.  # noqa: E501


        :return: The vertices of this BTExportTessellatedFacesFacet.  # noqa: E501
        :rtype: list[BTVector3d]
        """
        return self._vertices

    @vertices.setter
    def vertices(self, vertices):
        """Sets the vertices of this BTExportTessellatedFacesFacet.


        :param vertices: The vertices of this BTExportTessellatedFacesFacet.  # noqa: E501
        :type: list[BTVector3d]
        """

        self._vertices = vertices

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, BTExportTessellatedFacesFacet):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
