MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
defines.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef FSSR_DEFINES_HEADER
11#define FSSR_DEFINES_HEADER
12
13#define FSSR_NAMESPACE_BEGIN namespace fssr {
14#define FSSR_NAMESPACE_END }
15
16/* Use new weighting function with continuous derivative. */
17#define FSSR_NEW_WEIGHT_FUNCTION 1
18
19/* Use derivatives for more precise isovertex interpolation. */
20#define FSSR_USE_DERIVATIVES 1
21
22/*
23 * Using the new weighting function is strongly recommended when using
24 * derivatives, as the old weighting function derivative is discontinuous.
25 */
26#if FSSR_USE_DERIVATIVES && !FSSR_NEW_WEIGHT_FUNCTION
27# error "FSSR_USE_DERIVATIVES requires FSSR_NEW_WEIGHT_FUNCTION"
28#endif
29
30#endif /* FSSR_DEFINES_HEADER */