-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is based on my original "surfaceCluster.py" script from 2014, but re-written to be more modular and reusable and easier to understand. This new version has a lot of improvements, such as: - A tool to update the soft-selection weights for a surface cluster. - A UI enable/disable opening the paint-weights tool, after creation. - A tool to open the paint-weights tool for the selected surface cluster control node. - The ability to create multiple surface clusters from multiple selected mesh components. GitHub issue #111.
- Loading branch information
1 parent
f5bb313
commit b4caddd
Showing
18 changed files
with
1,411 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
============================= | ||
mmSolver.tools.surfacecluster | ||
============================= | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster | ||
:members: | ||
:undoc-members: | ||
|
||
Tools | ||
+++++ | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster.tool | ||
:members: | ||
:undoc-members: | ||
|
||
Library | ||
+++++++ | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster.lib | ||
:members: | ||
:undoc-members: | ||
|
||
UI - Layout | ||
+++++++++++ | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster.ui.surfacecluster_layout | ||
:members: | ||
:undoc-members: | ||
|
||
UI - Window | ||
+++++++++++ | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster.ui.surfacecluster_window | ||
:members: | ||
:undoc-members: | ||
|
||
Constants | ||
+++++++++ | ||
|
||
.. automodule:: mmSolver.tools.surfacecluster.constant | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (C) 2023 David Cattermole. | ||
# | ||
# This file is part of mmSolver. | ||
# | ||
# mmSolver is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# mmSolver is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with mmSolver. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
""" | ||
Surface Cluster constants. | ||
""" | ||
|
||
WINDOW_TITLE = 'Create Surface Cluster' | ||
|
||
CONFIG_CREATE_MODE_KEY = 'mmSolver_surfacecluster_createMode' | ||
CONFIG_OPEN_PAINT_WEIGHTS_KEY = 'mmSolver_surfacecluster_openPaintWeights' | ||
|
||
CREATE_MODE_SINGLE_VALUE = 'single_surface_cluster' | ||
CREATE_MODE_MULTIPLE_VALUE = 'multiple_surface_cluster' | ||
CREATE_MODE_VALUES = [ | ||
CREATE_MODE_SINGLE_VALUE, | ||
CREATE_MODE_MULTIPLE_VALUE, | ||
] | ||
|
||
CREATE_MODE_SINGLE_LABEL = 'Create Single Cluster On Components' | ||
CREATE_MODE_MULTIPLE_LABEL = 'Create Multiple Clusters On Each Component' | ||
CREATE_MODE_LABELS = [ | ||
CREATE_MODE_SINGLE_LABEL, | ||
CREATE_MODE_MULTIPLE_LABEL, | ||
] | ||
|
||
DEFAULT_CREATE_MODE = CREATE_MODE_SINGLE_VALUE | ||
DEFAULT_OPEN_PAINT_WEIGHTS = True |
Oops, something went wrong.