Пример #1
0
    def global_to_local_param(self, d, *args):
        """
        Convert surface parameter(s) from global domain a <= u,v <= b to local
        domain 0 <= u,v <= 1.

        :param str d: Direction ('u' or 'v').
        :param args: Global parameter(s).

        :return: Local parameter(s).
        """
        if d.lower() in ['u']:
            return global_to_local_param(self._u0, self._u1, *args)
        else:
            return global_to_local_param(self._v0, self._v1, *args)
Пример #2
0
    def global_to_local_param(self, *args):
        """
        Convert parameter(s) from global domain a <= u <= b to local domain
        0 <= u <= 1.

        :param args: Global parameter(s).

        :return: Local parameter(s).
        """
        return global_to_local_param(self._a, self._b, *args)
Пример #3
0
    def global_to_local_param(self, *args):
        """
        Convert parameter(s) from global domain a <= u <= b to local domain
        0 <= u <= 1.

        :param args: Global parameter(s).

        :return: Local parameter(s).
        :rtype: float or list of floats
        """
        return global_to_local_param(self._u0, self._u1, *args)