simplex-solver 3.0.18__37-abi3-win_amd64.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.
Files changed (81) hide show
  1. pysimplex.pyd +0 -0
  2. simplex_solver-3.0.18.dist-info/METADATA +87 -0
  3. simplex_solver-3.0.18.dist-info/RECORD +81 -0
  4. simplex_solver-3.0.18.dist-info/WHEEL +5 -0
  5. simplex_solver-3.0.18.dist-info/licenses/LICENSE +165 -0
  6. simplexui/__init__.py +54 -0
  7. simplexui/channelBox.py +862 -0
  8. simplexui/comboCheckDialog.py +335 -0
  9. simplexui/commands/__init__.py +16 -0
  10. simplexui/commands/alembicCommon.py +1045 -0
  11. simplexui/commands/applyCorrectives.py +455 -0
  12. simplexui/commands/buildIceXML.py +443 -0
  13. simplexui/commands/correctiveInterface.py +271 -0
  14. simplexui/commands/expandedExport.py +435 -0
  15. simplexui/commands/hdf5Convert.py +62 -0
  16. simplexui/commands/mayaCorrectiveInterface.py +164 -0
  17. simplexui/commands/mesh.py +1086 -0
  18. simplexui/commands/reorderSimplexPoints.py +103 -0
  19. simplexui/commands/rigidAlign.py +103 -0
  20. simplexui/commands/setDelta.xsicompound +60 -0
  21. simplexui/commands/smpxBlend.py +634 -0
  22. simplexui/commands/unsubdivide.py +1232 -0
  23. simplexui/commands/uvTransfer.py +986 -0
  24. simplexui/commands/xsiCorrectiveInterface.py +136 -0
  25. simplexui/dragFilter.py +299 -0
  26. simplexui/falloffDialog.py +476 -0
  27. simplexui/img/ChefHead.png +0 -0
  28. simplexui/img/frozen.png +0 -0
  29. simplexui/interface/__init__.py +30 -0
  30. simplexui/interface/dummyInterface.py +1564 -0
  31. simplexui/interface/mayaInterface.py +3197 -0
  32. simplexui/interface/xsiInterface.py +2944 -0
  33. simplexui/interfaceModel.py +1040 -0
  34. simplexui/interfaceModelTrees.py +439 -0
  35. simplexui/interfaceModel_Test.py +259 -0
  36. simplexui/items/__init__.py +26 -0
  37. simplexui/items/accessor.py +217 -0
  38. simplexui/items/combo.py +855 -0
  39. simplexui/items/falloff.py +780 -0
  40. simplexui/items/group.py +295 -0
  41. simplexui/items/progression.py +745 -0
  42. simplexui/items/shape.py +444 -0
  43. simplexui/items/simplex.py +1747 -0
  44. simplexui/items/slider.py +741 -0
  45. simplexui/items/stack.py +156 -0
  46. simplexui/items/traversal.py +969 -0
  47. simplexui/main.pyw +22 -0
  48. simplexui/menu/__init__.py +73 -0
  49. simplexui/menu/dummyPlugins/__init__.py +16 -0
  50. simplexui/menu/genericPlugins/__init__.py +16 -0
  51. simplexui/menu/genericPlugins/_builtins.py +260 -0
  52. simplexui/menu/genericPlugins/checkPossibleCombos.py +47 -0
  53. simplexui/menu/genericPlugins/exportSplit.py +61 -0
  54. simplexui/menu/genericPlugins/showFalloffs.py +24 -0
  55. simplexui/menu/genericPlugins/showTraversals.py +24 -0
  56. simplexui/menu/genericPlugins/simplexUvTransfer.py +109 -0
  57. simplexui/menu/genericPlugins/unsubdivide.py +71 -0
  58. simplexui/menu/mayaPlugins/__init__.py +16 -0
  59. simplexui/menu/mayaPlugins/exportOther.py +45 -0
  60. simplexui/menu/mayaPlugins/extractProgressives.py +67 -0
  61. simplexui/menu/mayaPlugins/freezeCombo.py +251 -0
  62. simplexui/menu/mayaPlugins/generateShapeIncrementals.py +100 -0
  63. simplexui/menu/mayaPlugins/importObjs.py +196 -0
  64. simplexui/menu/mayaPlugins/linearizeTraversal.py +49 -0
  65. simplexui/menu/mayaPlugins/makeShelfBtn.py +69 -0
  66. simplexui/menu/mayaPlugins/relaxToSelection.py +77 -0
  67. simplexui/menu/mayaPlugins/reloadDefinition.py +34 -0
  68. simplexui/menu/mayaPlugins/snapToNeutral.py +74 -0
  69. simplexui/menu/mayaPlugins/softSelectToCluster.py +204 -0
  70. simplexui/menu/mayaPlugins/tweakMix.py +138 -0
  71. simplexui/menu/mayaPlugins/updateRestShape.py +107 -0
  72. simplexui/menu/xsiPlugins/__init__.py +16 -0
  73. simplexui/simplexDialog.py +1391 -0
  74. simplexui/travCheckDialog.py +393 -0
  75. simplexui/traversalDialog.py +277 -0
  76. simplexui/ui/comboCheckDialog.ui +475 -0
  77. simplexui/ui/falloffDialog.ui +243 -0
  78. simplexui/ui/simplexDialog.ui +1458 -0
  79. simplexui/ui/travCheckDialog.ui +488 -0
  80. simplexui/ui/traversalDialog.ui +532 -0
  81. simplexui/utils.py +320 -0
@@ -0,0 +1,26 @@
1
+ # Copyright 2016, Blur Studio
2
+ #
3
+ # This file is part of Simplex.
4
+ #
5
+ # Simplex is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # Simplex is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with Simplex. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ from .combo import Combo, ComboPair
19
+ from .falloff import Falloff
20
+ from .group import Group
21
+ from .progression import ProgPair, Progression
22
+ from .shape import Shape
23
+ from .simplex import Simplex
24
+ from .slider import Slider
25
+ from .stack import Stack, stackable
26
+ from .traversal import Traversal, TravPair
@@ -0,0 +1,217 @@
1
+ # Copyright 2016, Blur Studio
2
+ #
3
+ # This file is part of Simplex.
4
+ #
5
+ # Simplex is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # Simplex is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with Simplex. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ from __future__ import absolute_import
19
+
20
+ import copy
21
+
22
+ import six
23
+
24
+
25
+ class SimplexAccessor(object):
26
+ """The base object for all Simplex System object types
27
+ This class provides access to the simplex system, draggability,
28
+ name getters/setters/unifiers, proper deepcopying, and abstract tree lookup
29
+
30
+ Parameters
31
+ ----------
32
+
33
+ Returns
34
+ -------
35
+
36
+ """
37
+
38
+ def __init__(self, simplex):
39
+ self.simplex = simplex
40
+ self._name = None
41
+ self._splitApplied = set()
42
+
43
+ self.dragStep = 0.05
44
+ self.maxValue = 1.0
45
+ self.minValue = 0.0
46
+
47
+ def valueTick(self, ticks, mul):
48
+ """Change the value of the current object by some number of ticks
49
+ with some given multiplier. This is the interface for the MMB drag
50
+
51
+ Parameters
52
+ ----------
53
+ ticks : int
54
+ The number of dragStep ticks to apply
55
+ mul : float
56
+ An overall multiplier
57
+ """
58
+ try:
59
+ val = self.value
60
+ except AttributeError:
61
+ return
62
+ val += self.dragStep * ticks * mul
63
+ if abs(val) < 1.0e-5:
64
+ val = 0.0
65
+ val = max(min(val, self.maxValue), self.minValue)
66
+ self.value = val
67
+
68
+ @property
69
+ def name(self):
70
+ """ """
71
+ return self._name
72
+
73
+ @name.setter
74
+ def name(self, val):
75
+ """The name of the current object"""
76
+ self._name = val
77
+
78
+ @property
79
+ def models(self):
80
+ """ """
81
+ return self.simplex.models
82
+
83
+ @property
84
+ def falloffModels(self):
85
+ """ """
86
+ return self.simplex.falloffModels
87
+
88
+ @property
89
+ def DCC(self):
90
+ """ """
91
+ return self.simplex.DCC
92
+
93
+ @property
94
+ def stack(self):
95
+ """ """
96
+ return self.simplex.stack
97
+
98
+ def __deepcopy__(self, memo):
99
+ cls = self.__class__
100
+ result = cls.__new__(cls)
101
+ memo[id(self)] = result
102
+ for k, v in six.iteritems(self.__dict__):
103
+ if k == "_thing" and self.DCC.program != "dummy":
104
+ # DO NOT make a copy of the DCC thing (unless its a dummy dcc)
105
+ # as it may or may not be a persistent object
106
+ # setattr(result, k, self._thing)
107
+ setattr(result, k, None)
108
+ elif k == "expanded":
109
+ # Skip the expanded dict because it deals with the Qt models
110
+ setattr(result, k, {})
111
+ else:
112
+ setattr(result, k, copy.deepcopy(v, memo))
113
+ return result
114
+
115
+ def _buildLinkedRename(self, newName, maxDepth, currentLinks):
116
+ """Build the proposed set of renames specifically for this object
117
+ This allows sub-classes to override the linked name behavior
118
+
119
+ Parameters
120
+ ----------
121
+ newName :
122
+
123
+ maxDepth :
124
+
125
+ currentLinks :
126
+
127
+
128
+ Returns
129
+ -------
130
+
131
+ """
132
+ return currentLinks
133
+
134
+ def buildLinkedRename(self, newName, maxDepth=5, currentLinks=None):
135
+ """For the Shape, Slider, Combo, and Traversal items, build a linked rename
136
+ dictionary like {itemType: {newName: (item, maxDepth)}} recursively up to a
137
+ maximum given depth
138
+
139
+ The dictionary is structured like that to easily check for name clashes
140
+
141
+ Parameters
142
+ ----------
143
+ newName : str
144
+ The new suggested name for this object
145
+ maxDepth : int
146
+ The maximum depth of recursion when resolving names (Default value = 5)
147
+ currentLinks : dict
148
+ The current set of proposed renames. (Default value = None)
149
+
150
+ Returns
151
+ -------
152
+ dict :
153
+ A new set of propsed renames
154
+
155
+ """
156
+ # Build the output dict if not done already
157
+ if currentLinks is None:
158
+ currentLinks = {}
159
+
160
+ # return at depth
161
+ if maxDepth <= 0:
162
+ return currentLinks
163
+
164
+ # If this doesn't need renamed, then we can prune this branch
165
+ if self.name == newName:
166
+ return currentLinks
167
+
168
+ # Check for conflicts, or other short circuits
169
+ typeLinks = currentLinks.setdefault(type(self), {})
170
+ if newName in typeLinks:
171
+ tlPair = typeLinks[newName]
172
+ if tlPair[0] is not self:
173
+ # Error out if a name conflict is found.
174
+ msg = "Linked rename produced a conflict: Trying to rename {0} {1} and {2} to {3}"
175
+ msg = msg.format(
176
+ type(self), typeLinks[newName].name, self.name, newName
177
+ )
178
+ raise ValueError(msg)
179
+ elif tlPair[1] >= maxDepth:
180
+ # If we've been here before with more available depth
181
+ # then we can just return because we've done this before
182
+ return currentLinks
183
+
184
+ # Finally add myself to the rename
185
+ typeLinks[newName] = (self, maxDepth)
186
+
187
+ # And now handle the type-specific stuff
188
+ return self._buildLinkedRename(newName, maxDepth, currentLinks)
189
+
190
+ def treeChild(self, row):
191
+ """ """
192
+ return None
193
+
194
+ def treeRow(self):
195
+ """ """
196
+ return None
197
+
198
+ def treeParent(self):
199
+ """ """
200
+ return None
201
+
202
+ def treeChildCount(self):
203
+ """ """
204
+ return 0
205
+
206
+ def treeData(self, column):
207
+ """ """
208
+ if column == 0:
209
+ return self.name
210
+ return None
211
+
212
+ def treeChecked(self):
213
+ """ """
214
+ return None
215
+
216
+ def icon(self):
217
+ return None