polyclipNP 0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.1
2
+ Name: polyclipNP
3
+ Version: 0.3
4
+ Summary: Swig wrapper of polyclip.c from J.D. Smith
5
+ Author: N. Pirzkal
6
+
@@ -0,0 +1,5 @@
1
+ polyclipNP.py,sha256=vGBLDDbpA_rbDTOe0oqcRM1MItmpp_pUdut_jgyU6Dg,2381
2
+ polyclipNP-0.3.dist-info/METADATA,sha256=77kWCrS7XjguLHZdPVQ0vOTXnbGQGPs3Dec6ZlNaIVE,124
3
+ polyclipNP-0.3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
4
+ polyclipNP-0.3.dist-info/top_level.txt,sha256=FoAqsWxu5KhtQC1l96ETs9i1MgZvNfZwj-u5noHUKIQ,11
5
+ polyclipNP-0.3.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.2.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ polyclipNP
polyclipNP.py ADDED
@@ -0,0 +1,68 @@
1
+ # This file was automatically generated by SWIG (http://www.swig.org).
2
+ # Version 4.0.2
3
+ #
4
+ # Do not make changes to this file unless you know what you are doing--modify
5
+ # the SWIG interface file instead.
6
+
7
+ from sys import version_info as _swig_python_version_info
8
+ if _swig_python_version_info < (2, 7, 0):
9
+ raise RuntimeError("Python 2.7 or later required")
10
+
11
+ # Import the low-level C/C++ module
12
+ if __package__ or "." in __name__:
13
+ from . import _polyclipNP
14
+ else:
15
+ import _polyclipNP
16
+
17
+ try:
18
+ import builtins as __builtin__
19
+ except ImportError:
20
+ import __builtin__
21
+
22
+ def _swig_repr(self):
23
+ try:
24
+ strthis = "proxy of " + self.this.__repr__()
25
+ except __builtin__.Exception:
26
+ strthis = ""
27
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
+
29
+
30
+ def _swig_setattr_nondynamic_instance_variable(set):
31
+ def set_instance_attr(self, name, value):
32
+ if name == "thisown":
33
+ self.this.own(value)
34
+ elif name == "this":
35
+ set(self, name, value)
36
+ elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37
+ set(self, name, value)
38
+ else:
39
+ raise AttributeError("You cannot add instance attributes to %s" % self)
40
+ return set_instance_attr
41
+
42
+
43
+ def _swig_setattr_nondynamic_class_variable(set):
44
+ def set_class_attr(cls, name, value):
45
+ if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46
+ set(cls, name, value)
47
+ else:
48
+ raise AttributeError("You cannot add class attributes to %s" % cls)
49
+ return set_class_attr
50
+
51
+
52
+ def _swig_add_metaclass(metaclass):
53
+ """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54
+ def wrapper(cls):
55
+ return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56
+ return wrapper
57
+
58
+
59
+ class _SwigNonDynamicMeta(type):
60
+ """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61
+ __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
+
63
+
64
+
65
+ def polyclip_multi4(len_l, len_r, len_b, len_t, len_px, len_py, n_poly, len_poly_inds, len_x, len_y, len_nclip_poly, len_areas, len_index):
66
+ return _polyclipNP.polyclip_multi4(len_l, len_r, len_b, len_t, len_px, len_py, n_poly, len_poly_inds, len_x, len_y, len_nclip_poly, len_areas, len_index)
67
+
68
+