update DNACalib

This commit is contained in:
Srdjan Milicev 2023-09-21 10:38:00 +02:00
parent c0a894d421
commit 401ea78fc9
17 changed files with 178 additions and 257 deletions

View File

@ -4,6 +4,42 @@
namespace dnac {
namespace {
tdm::vec3<std::uint32_t> findTriangleWithLargestArea(ConstArrayView<std::uint32_t> face,
ConstArrayView<std::uint32_t> textureCoordinateUVIndices,
ConstArrayView<float> Us,
ConstArrayView<float> Vs) {
float maxArea = 0.0f;
tdm::vec3<std::uint32_t> maxTriangle = {0u, 1u, static_cast<std::uint32_t>(face.size() - 1u)};
for (std::size_t ai = {}; ai < face.size(); ++ai) {
const std::uint32_t avli = face[ai];
const std::uint32_t auvi = textureCoordinateUVIndices[avli];
const float au = Us[auvi];
const float av = Vs[auvi];
for (std::size_t bi = (ai + 1ul); bi < face.size(); ++bi) {
const std::uint32_t bvli = face[bi];
const std::uint32_t buvi = textureCoordinateUVIndices[bvli];
const float bu = Us[buvi];
const float bv = Vs[buvi];
for (std::size_t ci = (bi + 1ul); ci < face.size(); ++ci) {
const std::uint32_t cvli = face[ci];
const std::uint32_t cuvi = textureCoordinateUVIndices[cvli];
const float cu = Us[cuvi];
const float cv = Vs[cuvi];
const float area = std::fabs(0.5f * (au * (bv - cv) + bu * (cv - av) + cu * (av - bv)));
if (area > maxArea) {
maxArea = area;
maxTriangle = {avli, bvli, cvli};
}
}
}
}
return maxTriangle;
}
} // namespace
UVBarycentricMapping::UVBarycentricMapping(const std::function<ConstArrayView<std::uint32_t>(std::uint32_t)>& faceGetter,
ConstArrayView<std::uint32_t> vertexPositionIndices,
ConstArrayView<std::uint32_t> textureCoordinateUVIndices,
@ -20,9 +56,10 @@ UVBarycentricMapping::UVBarycentricMapping(const std::function<ConstArrayView<st
for (std::uint32_t i = 0u; i < faceCount; i++) {
auto face = faceGetter(i);
while (face.size() > 2) {
const auto vertexLayoutIndex0 = face[0];
const auto vertexLayoutIndex1 = face[1];
const auto vertexLayoutIndex2 = face[face.size() - 1u];
const auto maxTriangle = findTriangleWithLargestArea(face, textureCoordinateUVIndices, Us, Vs);
const auto vertexLayoutIndex0 = maxTriangle[0];
const auto vertexLayoutIndex1 = maxTriangle[1];
const auto vertexLayoutIndex2 = maxTriangle[2];
const std::array<std::uint32_t, 3> positionIndices {vertexPositionIndices[vertexLayoutIndex0],
vertexPositionIndices[vertexLayoutIndex1],

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,15 @@
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
if __package__ or "." in __name__:
from . import _py3dna
else:
import _py3dna
@ -19,35 +19,6 @@ try:
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
@ -107,7 +78,7 @@ def __managed_init(self, *args, **kwargs):
self._kwargs = kwargs
class MemoryResource(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -124,7 +95,7 @@ class MemoryResource(object):
_py3dna.MemoryResource_swigregister(MemoryResource)
class AlignedMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def allocate(self, size, alignment):
@ -141,7 +112,7 @@ class AlignedMemoryResource(MemoryResource):
_py3dna.AlignedMemoryResource_swigregister(AlignedMemoryResource)
class ArenaMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dna.delete_ArenaMemoryResource
@ -161,7 +132,7 @@ class ArenaMemoryResource(MemoryResource):
_py3dna.ArenaMemoryResource_swigregister(ArenaMemoryResource)
class DefaultMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def allocate(self, size, alignment):
@ -178,7 +149,7 @@ class DefaultMemoryResource(MemoryResource):
_py3dna.DefaultMemoryResource_swigregister(DefaultMemoryResource)
class StatusCode(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
code = property(_py3dna.StatusCode_code_get, _py3dna.StatusCode_code_set)
message = property(_py3dna.StatusCode_message_get, _py3dna.StatusCode_message_set)
@ -191,7 +162,7 @@ class StatusCode(object):
_py3dna.StatusCode_swigregister(StatusCode)
class Status(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
@ -216,7 +187,7 @@ def Status_get():
return _py3dna.Status_get()
class Readable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -229,7 +200,7 @@ class Readable(object):
_py3dna.Readable_swigregister(Readable)
class Writable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -242,7 +213,7 @@ class Writable(object):
_py3dna.Writable_swigregister(Writable)
class Seekable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -258,7 +229,7 @@ class Seekable(object):
_py3dna.Seekable_swigregister(Seekable)
class Openable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -271,7 +242,7 @@ class Openable(object):
_py3dna.Openable_swigregister(Openable)
class Closeable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -284,7 +255,7 @@ class Closeable(object):
_py3dna.Closeable_swigregister(Closeable)
class Controllable(Openable, Closeable):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -294,7 +265,7 @@ class Controllable(Openable, Closeable):
_py3dna.Controllable_swigregister(Controllable)
class Bounded(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -307,7 +278,7 @@ class Bounded(object):
_py3dna.Bounded_swigregister(Bounded)
class Buffered(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -320,7 +291,7 @@ class Buffered(object):
_py3dna.Buffered_swigregister(Buffered)
class Resizable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -333,7 +304,7 @@ class Resizable(object):
_py3dna.Resizable_swigregister(Resizable)
class BoundedIOStream(Controllable, Readable, Writable, Seekable, Bounded):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -355,7 +326,7 @@ AccessMode_ReadWrite = _py3dna.AccessMode_ReadWrite
OpenMode_Binary = _py3dna.OpenMode_Binary
OpenMode_Text = _py3dna.OpenMode_Text
class FileStream(BoundedIOStream):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -380,7 +351,7 @@ def FileStream_destroy(instance):
return _py3dna.FileStream_destroy(instance)
class MemoryMappedFileStream(BoundedIOStream, Buffered, Resizable):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -405,7 +376,7 @@ def MemoryMappedFileStream_destroy(instance):
return _py3dna.MemoryMappedFileStream_destroy(instance)
class MemoryStream(BoundedIOStream):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -463,7 +434,7 @@ MemoryMappedFileStream.AccessMode_Write = AccessMode_Write
MemoryMappedFileStream.AccessMode_ReadWrite = AccessMode_ReadWrite
class StringView(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def c_str(self):
@ -524,7 +495,7 @@ Direction_down = _py3dna.Direction_down
Direction_front = _py3dna.Direction_front
Direction_back = _py3dna.Direction_back
class CoordinateSystem(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
xAxis = property(_py3dna.CoordinateSystem_xAxis_get, _py3dna.CoordinateSystem_xAxis_set)
yAxis = property(_py3dna.CoordinateSystem_yAxis_get, _py3dna.CoordinateSystem_yAxis_set)
@ -538,7 +509,7 @@ class CoordinateSystem(object):
_py3dna.CoordinateSystem_swigregister(CoordinateSystem)
class DescriptorReader(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -590,7 +561,7 @@ class DescriptorReader(object):
_py3dna.DescriptorReader_swigregister(DescriptorReader)
class MeshBlendShapeChannelMapping(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
meshIndex = property(_py3dna.MeshBlendShapeChannelMapping_meshIndex_get, _py3dna.MeshBlendShapeChannelMapping_meshIndex_set)
blendShapeChannelIndex = property(_py3dna.MeshBlendShapeChannelMapping_blendShapeChannelIndex_get, _py3dna.MeshBlendShapeChannelMapping_blendShapeChannelIndex_set)
@ -603,7 +574,7 @@ class MeshBlendShapeChannelMapping(object):
_py3dna.MeshBlendShapeChannelMapping_swigregister(MeshBlendShapeChannelMapping)
class DefinitionReader(DescriptorReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -709,7 +680,7 @@ class DefinitionReader(DescriptorReader):
_py3dna.DefinitionReader_swigregister(DefinitionReader)
class BehaviorReader(DefinitionReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -806,7 +777,7 @@ class BehaviorReader(DefinitionReader):
_py3dna.BehaviorReader_swigregister(BehaviorReader)
class GeometryReader(DefinitionReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -915,7 +886,7 @@ class GeometryReader(DefinitionReader):
_py3dna.GeometryReader_swigregister(GeometryReader)
class Reader(BehaviorReader, GeometryReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -929,7 +900,7 @@ class Reader(BehaviorReader, GeometryReader):
_py3dna.Reader_swigregister(Reader)
class StreamReader(Reader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -946,7 +917,7 @@ StreamReader.VersionMismatchError = _py3dna.cvar.StreamReader_VersionMismatchErr
StreamReader.InvalidDataError = _py3dna.cvar.StreamReader_InvalidDataError
class BinaryStreamReader(StreamReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -971,7 +942,7 @@ def BinaryStreamReader_destroy(instance):
return _py3dna.BinaryStreamReader_destroy(instance)
class JSONStreamReader(StreamReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1010,7 +981,7 @@ del JSONStreamReader.create
del JSONStreamReader.destroy
class DescriptorWriter(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1059,7 +1030,7 @@ class DescriptorWriter(object):
_py3dna.DescriptorWriter_swigregister(DescriptorWriter)
class DefinitionWriter(DescriptorWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1168,7 +1139,7 @@ class DefinitionWriter(DescriptorWriter):
_py3dna.DefinitionWriter_swigregister(DefinitionWriter)
class BehaviorWriter(DefinitionWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1265,7 +1236,7 @@ class BehaviorWriter(DefinitionWriter):
_py3dna.BehaviorWriter_swigregister(BehaviorWriter)
class GeometryWriter(DefinitionWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1323,7 +1294,7 @@ class GeometryWriter(DefinitionWriter):
_py3dna.GeometryWriter_swigregister(GeometryWriter)
class Writer(BehaviorWriter, GeometryWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1337,7 +1308,7 @@ class Writer(BehaviorWriter, GeometryWriter):
_py3dna.Writer_swigregister(Writer)
class StreamWriter(Writer):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1351,7 +1322,7 @@ class StreamWriter(Writer):
_py3dna.StreamWriter_swigregister(StreamWriter)
class BinaryStreamWriter(StreamWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1376,7 +1347,7 @@ def BinaryStreamWriter_destroy(instance):
return _py3dna.BinaryStreamWriter_destroy(instance)
class JSONStreamWriter(StreamWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")

Binary file not shown.

View File

@ -1,15 +1,15 @@
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
if __package__ or "." in __name__:
from . import _py3dnacalib
else:
import _py3dnacalib
@ -19,35 +19,6 @@ try:
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
@ -108,7 +79,7 @@ def __managed_init(self, *args, **kwargs):
import dna
class VersionInfo(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
@ -147,7 +118,7 @@ def VersionInfo_getVersionString():
return _py3dnacalib.VersionInfo_getVersionString()
class DNACalibDNAReader(dna.Reader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -178,7 +149,7 @@ del DNACalibDNAReader.create
del DNACalibDNAReader.destroy
class Command(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -196,7 +167,7 @@ VectorOperation_Add = _py3dnacalib.VectorOperation_Add
VectorOperation_Subtract = _py3dnacalib.VectorOperation_Subtract
VectorOperation_Multiply = _py3dnacalib.VectorOperation_Multiply
class CommandSequence(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_CommandSequence
@ -245,7 +216,7 @@ CommandSequence.add = command_sequence_add(CommandSequence.add)
CommandSequence.remove = command_sequence_remove(CommandSequence.remove)
class CalculateMeshLowerLODsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_CalculateMeshLowerLODsCommand
@ -262,7 +233,7 @@ class CalculateMeshLowerLODsCommand(Command):
_py3dnacalib.CalculateMeshLowerLODsCommand_swigregister(CalculateMeshLowerLODsCommand)
class ClearBlendShapesCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_ClearBlendShapesCommand
@ -276,7 +247,7 @@ class ClearBlendShapesCommand(Command):
_py3dnacalib.ClearBlendShapesCommand_swigregister(ClearBlendShapesCommand)
class PruneBlendShapeTargetsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_PruneBlendShapeTargetsCommand
@ -293,7 +264,7 @@ class PruneBlendShapeTargetsCommand(Command):
_py3dnacalib.PruneBlendShapeTargetsCommand_swigregister(PruneBlendShapeTargetsCommand)
class RemoveAnimatedMapCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveAnimatedMapCommand
@ -313,7 +284,7 @@ class RemoveAnimatedMapCommand(Command):
_py3dnacalib.RemoveAnimatedMapCommand_swigregister(RemoveAnimatedMapCommand)
class RemoveBlendShapeCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveBlendShapeCommand
@ -333,7 +304,7 @@ class RemoveBlendShapeCommand(Command):
_py3dnacalib.RemoveBlendShapeCommand_swigregister(RemoveBlendShapeCommand)
class RemoveJointAnimationCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveJointAnimationCommand
@ -353,7 +324,7 @@ class RemoveJointAnimationCommand(Command):
_py3dnacalib.RemoveJointAnimationCommand_swigregister(RemoveJointAnimationCommand)
class RemoveJointCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveJointCommand
@ -373,7 +344,7 @@ class RemoveJointCommand(Command):
_py3dnacalib.RemoveJointCommand_swigregister(RemoveJointCommand)
class RemoveMeshCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveMeshCommand
@ -393,7 +364,7 @@ class RemoveMeshCommand(Command):
_py3dnacalib.RemoveMeshCommand_swigregister(RemoveMeshCommand)
class RenameAnimatedMapCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameAnimatedMapCommand
@ -410,7 +381,7 @@ class RenameAnimatedMapCommand(Command):
_py3dnacalib.RenameAnimatedMapCommand_swigregister(RenameAnimatedMapCommand)
class RenameBlendShapeCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameBlendShapeCommand
@ -427,7 +398,7 @@ class RenameBlendShapeCommand(Command):
_py3dnacalib.RenameBlendShapeCommand_swigregister(RenameBlendShapeCommand)
class RenameJointCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameJointCommand
@ -444,7 +415,7 @@ class RenameJointCommand(Command):
_py3dnacalib.RenameJointCommand_swigregister(RenameJointCommand)
class RenameMeshCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameMeshCommand
@ -461,7 +432,7 @@ class RenameMeshCommand(Command):
_py3dnacalib.RenameMeshCommand_swigregister(RenameMeshCommand)
class RotateCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RotateCommand
@ -481,7 +452,7 @@ class RotateCommand(Command):
_py3dnacalib.RotateCommand_swigregister(RotateCommand)
class ScaleCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_ScaleCommand
@ -501,7 +472,7 @@ class ScaleCommand(Command):
_py3dnacalib.ScaleCommand_swigregister(ScaleCommand)
class SetBlendShapeTargetDeltasCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetBlendShapeTargetDeltasCommand
@ -538,7 +509,7 @@ SetBlendShapeTargetDeltasCommand.DeltasVertexIndicesCountMismatch = _py3dnacalib
SetBlendShapeTargetDeltasCommand.DeltasMasksCountMismatch = _py3dnacalib.cvar.SetBlendShapeTargetDeltasCommand_DeltasMasksCountMismatch
class SetLODsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetLODsCommand
@ -555,7 +526,7 @@ class SetLODsCommand(Command):
_py3dnacalib.SetLODsCommand_swigregister(SetLODsCommand)
class SetNeutralJointRotationsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetNeutralJointRotationsCommand
@ -572,7 +543,7 @@ class SetNeutralJointRotationsCommand(Command):
_py3dnacalib.SetNeutralJointRotationsCommand_swigregister(SetNeutralJointRotationsCommand)
class SetNeutralJointTranslationsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetNeutralJointTranslationsCommand
@ -589,7 +560,7 @@ class SetNeutralJointTranslationsCommand(Command):
_py3dnacalib.SetNeutralJointTranslationsCommand_swigregister(SetNeutralJointTranslationsCommand)
class SetSkinWeightsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetSkinWeightsCommand
@ -615,7 +586,7 @@ class SetSkinWeightsCommand(Command):
_py3dnacalib.SetSkinWeightsCommand_swigregister(SetSkinWeightsCommand)
class SetVertexPositionsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetVertexPositionsCommand
@ -642,7 +613,7 @@ _py3dnacalib.SetVertexPositionsCommand_swigregister(SetVertexPositionsCommand)
SetVertexPositionsCommand.PositionsMasksCountMismatch = _py3dnacalib.cvar.SetVertexPositionsCommand_PositionsMasksCountMismatch
class TranslateCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_TranslateCommand

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,15 @@
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
if __package__ or "." in __name__:
from . import _py3dna
else:
import _py3dna
@ -19,35 +19,6 @@ try:
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
@ -107,7 +78,7 @@ def __managed_init(self, *args, **kwargs):
self._kwargs = kwargs
class MemoryResource(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -124,7 +95,7 @@ class MemoryResource(object):
_py3dna.MemoryResource_swigregister(MemoryResource)
class AlignedMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def allocate(self, size, alignment):
@ -141,7 +112,7 @@ class AlignedMemoryResource(MemoryResource):
_py3dna.AlignedMemoryResource_swigregister(AlignedMemoryResource)
class ArenaMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dna.delete_ArenaMemoryResource
@ -161,7 +132,7 @@ class ArenaMemoryResource(MemoryResource):
_py3dna.ArenaMemoryResource_swigregister(ArenaMemoryResource)
class DefaultMemoryResource(MemoryResource):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def allocate(self, size, alignment):
@ -178,7 +149,7 @@ class DefaultMemoryResource(MemoryResource):
_py3dna.DefaultMemoryResource_swigregister(DefaultMemoryResource)
class StatusCode(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
code = property(_py3dna.StatusCode_code_get, _py3dna.StatusCode_code_set)
message = property(_py3dna.StatusCode_message_get, _py3dna.StatusCode_message_set)
@ -191,7 +162,7 @@ class StatusCode(object):
_py3dna.StatusCode_swigregister(StatusCode)
class Status(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
@ -216,7 +187,7 @@ def Status_get():
return _py3dna.Status_get()
class Readable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -229,7 +200,7 @@ class Readable(object):
_py3dna.Readable_swigregister(Readable)
class Writable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -242,7 +213,7 @@ class Writable(object):
_py3dna.Writable_swigregister(Writable)
class Seekable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -258,7 +229,7 @@ class Seekable(object):
_py3dna.Seekable_swigregister(Seekable)
class Openable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -271,7 +242,7 @@ class Openable(object):
_py3dna.Openable_swigregister(Openable)
class Closeable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -284,7 +255,7 @@ class Closeable(object):
_py3dna.Closeable_swigregister(Closeable)
class Controllable(Openable, Closeable):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -294,7 +265,7 @@ class Controllable(Openable, Closeable):
_py3dna.Controllable_swigregister(Controllable)
class Bounded(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -307,7 +278,7 @@ class Bounded(object):
_py3dna.Bounded_swigregister(Bounded)
class Buffered(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -320,7 +291,7 @@ class Buffered(object):
_py3dna.Buffered_swigregister(Buffered)
class Resizable(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -333,7 +304,7 @@ class Resizable(object):
_py3dna.Resizable_swigregister(Resizable)
class BoundedIOStream(Controllable, Readable, Writable, Seekable, Bounded):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -355,7 +326,7 @@ AccessMode_ReadWrite = _py3dna.AccessMode_ReadWrite
OpenMode_Binary = _py3dna.OpenMode_Binary
OpenMode_Text = _py3dna.OpenMode_Text
class FileStream(BoundedIOStream):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -380,7 +351,7 @@ def FileStream_destroy(instance):
return _py3dna.FileStream_destroy(instance)
class MemoryMappedFileStream(BoundedIOStream, Buffered, Resizable):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -405,7 +376,7 @@ def MemoryMappedFileStream_destroy(instance):
return _py3dna.MemoryMappedFileStream_destroy(instance)
class MemoryStream(BoundedIOStream):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -463,7 +434,7 @@ MemoryMappedFileStream.AccessMode_Write = AccessMode_Write
MemoryMappedFileStream.AccessMode_ReadWrite = AccessMode_ReadWrite
class StringView(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def c_str(self):
@ -524,7 +495,7 @@ Direction_down = _py3dna.Direction_down
Direction_front = _py3dna.Direction_front
Direction_back = _py3dna.Direction_back
class CoordinateSystem(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
xAxis = property(_py3dna.CoordinateSystem_xAxis_get, _py3dna.CoordinateSystem_xAxis_set)
yAxis = property(_py3dna.CoordinateSystem_yAxis_get, _py3dna.CoordinateSystem_yAxis_set)
@ -538,7 +509,7 @@ class CoordinateSystem(object):
_py3dna.CoordinateSystem_swigregister(CoordinateSystem)
class DescriptorReader(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -590,7 +561,7 @@ class DescriptorReader(object):
_py3dna.DescriptorReader_swigregister(DescriptorReader)
class MeshBlendShapeChannelMapping(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
meshIndex = property(_py3dna.MeshBlendShapeChannelMapping_meshIndex_get, _py3dna.MeshBlendShapeChannelMapping_meshIndex_set)
blendShapeChannelIndex = property(_py3dna.MeshBlendShapeChannelMapping_blendShapeChannelIndex_get, _py3dna.MeshBlendShapeChannelMapping_blendShapeChannelIndex_set)
@ -603,7 +574,7 @@ class MeshBlendShapeChannelMapping(object):
_py3dna.MeshBlendShapeChannelMapping_swigregister(MeshBlendShapeChannelMapping)
class DefinitionReader(DescriptorReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -709,7 +680,7 @@ class DefinitionReader(DescriptorReader):
_py3dna.DefinitionReader_swigregister(DefinitionReader)
class BehaviorReader(DefinitionReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -806,7 +777,7 @@ class BehaviorReader(DefinitionReader):
_py3dna.BehaviorReader_swigregister(BehaviorReader)
class GeometryReader(DefinitionReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -915,7 +886,7 @@ class GeometryReader(DefinitionReader):
_py3dna.GeometryReader_swigregister(GeometryReader)
class Reader(BehaviorReader, GeometryReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -929,7 +900,7 @@ class Reader(BehaviorReader, GeometryReader):
_py3dna.Reader_swigregister(Reader)
class StreamReader(Reader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -946,7 +917,7 @@ StreamReader.VersionMismatchError = _py3dna.cvar.StreamReader_VersionMismatchErr
StreamReader.InvalidDataError = _py3dna.cvar.StreamReader_InvalidDataError
class BinaryStreamReader(StreamReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -971,7 +942,7 @@ def BinaryStreamReader_destroy(instance):
return _py3dna.BinaryStreamReader_destroy(instance)
class JSONStreamReader(StreamReader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1010,7 +981,7 @@ del JSONStreamReader.create
del JSONStreamReader.destroy
class DescriptorWriter(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1059,7 +1030,7 @@ class DescriptorWriter(object):
_py3dna.DescriptorWriter_swigregister(DescriptorWriter)
class DefinitionWriter(DescriptorWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1168,7 +1139,7 @@ class DefinitionWriter(DescriptorWriter):
_py3dna.DefinitionWriter_swigregister(DefinitionWriter)
class BehaviorWriter(DefinitionWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1265,7 +1236,7 @@ class BehaviorWriter(DefinitionWriter):
_py3dna.BehaviorWriter_swigregister(BehaviorWriter)
class GeometryWriter(DefinitionWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1323,7 +1294,7 @@ class GeometryWriter(DefinitionWriter):
_py3dna.GeometryWriter_swigregister(GeometryWriter)
class Writer(BehaviorWriter, GeometryWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1337,7 +1308,7 @@ class Writer(BehaviorWriter, GeometryWriter):
_py3dna.Writer_swigregister(Writer)
class StreamWriter(Writer):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1351,7 +1322,7 @@ class StreamWriter(Writer):
_py3dna.StreamWriter_swigregister(StreamWriter)
class BinaryStreamWriter(StreamWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -1376,7 +1347,7 @@ def BinaryStreamWriter_destroy(instance):
return _py3dna.BinaryStreamWriter_destroy(instance)
class JSONStreamWriter(StreamWriter):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")

Binary file not shown.

View File

@ -1,15 +1,15 @@
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
if __package__ or "." in __name__:
from . import _py3dnacalib
else:
import _py3dnacalib
@ -19,35 +19,6 @@ try:
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
@ -108,7 +79,7 @@ def __managed_init(self, *args, **kwargs):
import dna
class VersionInfo(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
@staticmethod
@ -147,7 +118,7 @@ def VersionInfo_getVersionString():
return _py3dnacalib.VersionInfo_getVersionString()
class DNACalibDNAReader(dna.Reader):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -178,7 +149,7 @@ del DNACalibDNAReader.create
del DNACalibDNAReader.destroy
class Command(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
@ -196,7 +167,7 @@ VectorOperation_Add = _py3dnacalib.VectorOperation_Add
VectorOperation_Subtract = _py3dnacalib.VectorOperation_Subtract
VectorOperation_Multiply = _py3dnacalib.VectorOperation_Multiply
class CommandSequence(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_CommandSequence
@ -245,7 +216,7 @@ CommandSequence.add = command_sequence_add(CommandSequence.add)
CommandSequence.remove = command_sequence_remove(CommandSequence.remove)
class CalculateMeshLowerLODsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_CalculateMeshLowerLODsCommand
@ -262,7 +233,7 @@ class CalculateMeshLowerLODsCommand(Command):
_py3dnacalib.CalculateMeshLowerLODsCommand_swigregister(CalculateMeshLowerLODsCommand)
class ClearBlendShapesCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_ClearBlendShapesCommand
@ -276,7 +247,7 @@ class ClearBlendShapesCommand(Command):
_py3dnacalib.ClearBlendShapesCommand_swigregister(ClearBlendShapesCommand)
class PruneBlendShapeTargetsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_PruneBlendShapeTargetsCommand
@ -293,7 +264,7 @@ class PruneBlendShapeTargetsCommand(Command):
_py3dnacalib.PruneBlendShapeTargetsCommand_swigregister(PruneBlendShapeTargetsCommand)
class RemoveAnimatedMapCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveAnimatedMapCommand
@ -313,7 +284,7 @@ class RemoveAnimatedMapCommand(Command):
_py3dnacalib.RemoveAnimatedMapCommand_swigregister(RemoveAnimatedMapCommand)
class RemoveBlendShapeCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveBlendShapeCommand
@ -333,7 +304,7 @@ class RemoveBlendShapeCommand(Command):
_py3dnacalib.RemoveBlendShapeCommand_swigregister(RemoveBlendShapeCommand)
class RemoveJointAnimationCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveJointAnimationCommand
@ -353,7 +324,7 @@ class RemoveJointAnimationCommand(Command):
_py3dnacalib.RemoveJointAnimationCommand_swigregister(RemoveJointAnimationCommand)
class RemoveJointCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveJointCommand
@ -373,7 +344,7 @@ class RemoveJointCommand(Command):
_py3dnacalib.RemoveJointCommand_swigregister(RemoveJointCommand)
class RemoveMeshCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RemoveMeshCommand
@ -393,7 +364,7 @@ class RemoveMeshCommand(Command):
_py3dnacalib.RemoveMeshCommand_swigregister(RemoveMeshCommand)
class RenameAnimatedMapCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameAnimatedMapCommand
@ -410,7 +381,7 @@ class RenameAnimatedMapCommand(Command):
_py3dnacalib.RenameAnimatedMapCommand_swigregister(RenameAnimatedMapCommand)
class RenameBlendShapeCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameBlendShapeCommand
@ -427,7 +398,7 @@ class RenameBlendShapeCommand(Command):
_py3dnacalib.RenameBlendShapeCommand_swigregister(RenameBlendShapeCommand)
class RenameJointCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameJointCommand
@ -444,7 +415,7 @@ class RenameJointCommand(Command):
_py3dnacalib.RenameJointCommand_swigregister(RenameJointCommand)
class RenameMeshCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RenameMeshCommand
@ -461,7 +432,7 @@ class RenameMeshCommand(Command):
_py3dnacalib.RenameMeshCommand_swigregister(RenameMeshCommand)
class RotateCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_RotateCommand
@ -481,7 +452,7 @@ class RotateCommand(Command):
_py3dnacalib.RotateCommand_swigregister(RotateCommand)
class ScaleCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_ScaleCommand
@ -501,7 +472,7 @@ class ScaleCommand(Command):
_py3dnacalib.ScaleCommand_swigregister(ScaleCommand)
class SetBlendShapeTargetDeltasCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetBlendShapeTargetDeltasCommand
@ -538,7 +509,7 @@ SetBlendShapeTargetDeltasCommand.DeltasVertexIndicesCountMismatch = _py3dnacalib
SetBlendShapeTargetDeltasCommand.DeltasMasksCountMismatch = _py3dnacalib.cvar.SetBlendShapeTargetDeltasCommand_DeltasMasksCountMismatch
class SetLODsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetLODsCommand
@ -555,7 +526,7 @@ class SetLODsCommand(Command):
_py3dnacalib.SetLODsCommand_swigregister(SetLODsCommand)
class SetNeutralJointRotationsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetNeutralJointRotationsCommand
@ -572,7 +543,7 @@ class SetNeutralJointRotationsCommand(Command):
_py3dnacalib.SetNeutralJointRotationsCommand_swigregister(SetNeutralJointRotationsCommand)
class SetNeutralJointTranslationsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetNeutralJointTranslationsCommand
@ -589,7 +560,7 @@ class SetNeutralJointTranslationsCommand(Command):
_py3dnacalib.SetNeutralJointTranslationsCommand_swigregister(SetNeutralJointTranslationsCommand)
class SetSkinWeightsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetSkinWeightsCommand
@ -615,7 +586,7 @@ class SetSkinWeightsCommand(Command):
_py3dnacalib.SetSkinWeightsCommand_swigregister(SetSkinWeightsCommand)
class SetVertexPositionsCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_SetVertexPositionsCommand
@ -642,7 +613,7 @@ _py3dnacalib.SetVertexPositionsCommand_swigregister(SetVertexPositionsCommand)
SetVertexPositionsCommand.PositionsMasksCountMismatch = _py3dnacalib.cvar.SetVertexPositionsCommand_PositionsMasksCountMismatch
class TranslateCommand(Command):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _py3dnacalib.delete_TranslateCommand