Copyright (c) 2022
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Version HistoryVersion 2.0//
Due to commentary, I\'ve added in a button which allows a switch between a modified version of the maya core SolidShatter, and my polyCut method of shattering, so a combination can be used, be sure to clear history before using the SolidShatter Method though. Window has also been resized so buttons are more accessible, and extract checkbox has been removed, as it would conflict with the solid shatter. Also, the complexity of the interior pieces of each shard is dynamically scaled based on the number of cuts for the given operation (most, due to the method I coded it in are 2, until whatever is left for the number of desired pieces is not evenly divisible by two, then it does a final shatter with that many shards), so the complexity of the interior, even with high noise values is not very great. I kept it low like this to keep from making distractingly noisy meshes.
The # cuts/ # pieces slider now switches usage depending on the mode you\'re in, if you\'re in ctCut mode, it cuts that many times, if you\'re in solidShatter mode, it makes the chosen number of pieces.
Also keep in mind that the close and increase gap buttons do nothing with solidShattered objects, as it directly effects polyCut nodes, of which there are none.