This file contains hidden or 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
| /* | |
| * Copyright 2020 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
| ''' | |
| MIT License | |
| Copyright (c) 2018 Fanjin Zeng | |
| This work is licensed under the terms of the MIT license, see <https://opensource.org/licenses/MIT>. | |
| ''' | |
| import numpy as np | |
| import pymesh # pymesh is used to load mesh obj files. | |
| # compute triangle mesh surface area |
This file contains hidden or 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
| /************************************************************ | |
| * Better Singleton by David Darias | |
| * Use as you like - credit where due would be appreciated :D | |
| * Licence: WTFPL V2, Dec 2014 | |
| * Tested on Unity v5.6.0 (should work on earlier versions) | |
| * 03/02/2017 - v1.1 | |
| * **********************************************************/ | |
| using System; | |
| using UnityEngine; |
This file contains hidden or 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
| #include <iostream> | |
| #include <bitset> | |
| #include <cstdint> | |
| #include <iomanip> | |
| #include <limits> | |
| #include <sstream> | |
| #include <cmath> | |
| /* | |
| * 8-bit Minifloat mimicing binary32 of IEEE 754/IEC 60559 |