Merge pull request #33566 from akien-mga/xatlas-5b9de84
xatlas: Sync with upstream e12ea82
This commit is contained in:
commit
078527465f
4 changed files with 2378 additions and 1506 deletions
6
thirdparty/README.md
vendored
6
thirdparty/README.md
vendored
|
@ -496,15 +496,13 @@ File extracted from upstream release tarball:
|
||||||
## xatlas
|
## xatlas
|
||||||
|
|
||||||
- Upstream: https://github.com/jpcy/xatlas
|
- Upstream: https://github.com/jpcy/xatlas
|
||||||
- Version: git (b4b5426, 2019)
|
- Version: git (e12ea82, 2019)
|
||||||
- License: MIT
|
- License: MIT
|
||||||
|
|
||||||
Files extracted from upstream source:
|
Files extracted from upstream source:
|
||||||
|
|
||||||
- `xatlas.{cpp,h}`
|
- `xatlas.{cpp,h}`
|
||||||
|
- `LICENSE`
|
||||||
Note: License is marked as Public Domain in the files, but it was
|
|
||||||
later clarified upstream to MIT license.
|
|
||||||
|
|
||||||
|
|
||||||
## zlib
|
## zlib
|
||||||
|
|
27
thirdparty/xatlas/LICENSE
vendored
27
thirdparty/xatlas/LICENSE
vendored
|
@ -1,14 +1,21 @@
|
||||||
xatlas
|
MIT License
|
||||||
https://github.com/jpcy/xatlas
|
|
||||||
Copyright (c) 2018 Jonathan Young
|
|
||||||
|
|
||||||
thekla_atlas
|
Copyright (c) 2018-2019 Jonathan Young
|
||||||
https://github.com/Thekla/thekla_atlas
|
|
||||||
Copyright (c) 2013 Thekla, Inc
|
|
||||||
Copyright NVIDIA Corporation 2006 -- Ignacio Castano <icastano@nvidia.com>
|
|
||||||
|
|
||||||
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:
|
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 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.
|
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.
|
3840
thirdparty/xatlas/xatlas.cpp
vendored
3840
thirdparty/xatlas/xatlas.cpp
vendored
File diff suppressed because it is too large
Load diff
11
thirdparty/xatlas/xatlas.h
vendored
11
thirdparty/xatlas/xatlas.h
vendored
|
@ -35,11 +35,14 @@ Copyright NVIDIA Corporation 2006 -- Ignacio Castano <icastano@nvidia.com>
|
||||||
|
|
||||||
namespace xatlas {
|
namespace xatlas {
|
||||||
|
|
||||||
struct ChartFlags
|
struct ChartType
|
||||||
{
|
{
|
||||||
enum
|
enum Enum
|
||||||
{
|
{
|
||||||
Invalid = 1 << 0
|
Planar,
|
||||||
|
Ortho,
|
||||||
|
LSCM,
|
||||||
|
Piecewise
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -47,10 +50,10 @@ struct ChartFlags
|
||||||
struct Chart
|
struct Chart
|
||||||
{
|
{
|
||||||
uint32_t atlasIndex; // Sub-atlas index.
|
uint32_t atlasIndex; // Sub-atlas index.
|
||||||
uint32_t flags;
|
|
||||||
uint32_t *faceArray;
|
uint32_t *faceArray;
|
||||||
uint32_t faceCount;
|
uint32_t faceCount;
|
||||||
uint32_t material;
|
uint32_t material;
|
||||||
|
ChartType::Enum type;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Output vertex.
|
// Output vertex.
|
||||||
|
|
Loading…
Reference in a new issue