| 1 |
/* |
| 2 |
Copyright (c) 2019, Michael Kazhdan |
| 3 |
All rights reserved. |
| 4 |
|
| 5 |
Redistribution and use in source and binary forms, with or without modification, |
| 6 |
are permitted provided that the following conditions are met: |
| 7 |
|
| 8 |
Redistributions of source code must retain the above copyright notice, this list of |
| 9 |
conditions and the following disclaimer. Redistributions in binary form must reproduce |
| 10 |
the above copyright notice, this list of conditions and the following disclaimer |
| 11 |
in the documentation and/or other materials provided with the distribution. |
| 12 |
|
| 13 |
Neither the name of the Johns Hopkins University nor the names of its contributors |
| 14 |
may be used to endorse or promote products derived from this software without specific |
| 15 |
prior written permission. |
| 16 |
|
| 17 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
| 18 |
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES |
| 19 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
| 20 |
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 21 |
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
| 22 |
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 23 |
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 24 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| 25 |
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 26 |
DAMAGE. |
| 27 |
*/ |
| 28 |
|
| 29 |
#ifndef PRE_PROCESSOR_INCLUDED |
| 30 |
#define PRE_PROCESSOR_INCLUDED |
| 31 |
|
| 32 |
#ifndef BIG_DATA // Allow over-riding if defined before PreProcessor.h |
| 33 |
#undef BIG_DATA // Supports processing requiring more than 32-bit integers for indexing |
| 34 |
// Note: enabling BIG_DATA can generate .ply files using "longlong" for vertex indices instead of "int". |
| 35 |
// These are not standardly supported by .ply reading/writing applications. |
| 36 |
// The executable ChunkPLY can help by partitioning the mesh into more manageable chunks |
| 37 |
// (each of which is small enough to be represented using 32-bit indexing.) |
| 38 |
#endif // BIG_DATA |
| 39 |
|
| 40 |
//#define SANITIZED_PR // If enabled, produces CLANG-sanitized code [thread/undefined/address] |
| 41 |
//#define FAST_COMPILE // If enabled, only a single version of the code is compiled |
| 42 |
#undef SHOW_WARNINGS // Display compilation warnings |
| 43 |
#undef ARRAY_DEBUG // If enabled, array access is tested for validity |
| 44 |
|
| 45 |
#ifdef BIG_DATA |
| 46 |
#define USE_DEEP_TREE_NODES // Chances are that if you are using big data, you want to support a tree with depth>15. |
| 47 |
#endif // BIG_DATA |
| 48 |
|
| 49 |
#define ADAPTIVE_SOLVERS_VERSION "18.75" // The version of the code |
| 50 |
#define MEMORY_ALLOCATOR_BLOCK_SIZE 1<<12 // The chunk size for memory allocation |
| 51 |
|
| 52 |
#define ADAPTIVE_PADDING // Only pushes padding points deep enough so that they are "close" to the slab in terms of units at that depth |
| 53 |
#define NESTED_VECTOR_LEVELS 1 // The number of nesting levels for the nested-vector |
| 54 |
|
| 55 |
#endif // PRE_PROCESSOR_INCLUDED |