-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBCOL.h
More file actions
115 lines (107 loc) · 2.85 KB
/
BCOL.h
File metadata and controls
115 lines (107 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifdef BCOL_set_HaveDefaultCB
#error outdated setting BCOL_set_HaveDefaultCB. it's always enabled now.
#endif
#ifndef BCOL_set_prefix
#error ifndef BCOL_set_prefix
#endif
#ifndef BCOL_set_Dimension
#error BCOL_set_Dimension needs to be defined.
#endif
#ifndef BCOL_set_PreferredFloatSize
#define BCOL_set_PreferredFloatSize 32
#endif
#ifndef BCOL_set_StoreExtraDataInsideObject
#define BCOL_set_StoreExtraDataInsideObject 0
#endif
#ifndef BCOL_set_SupportGrid
#define BCOL_set_SupportGrid 0
#endif
#ifndef BCOL_set_DynamicDeltaFunction
#define BCOL_set_DynamicDeltaFunction
#endif
#ifndef BCOL_set_DynamicToDynamic
#define BCOL_set_DynamicToDynamic 1
#endif
#ifndef BCOL_set_StepNumber
#define BCOL_set_StepNumber 0
#endif
#ifndef BCOL_set_VisualSolve
#define BCOL_set_VisualSolve 0
#endif
#ifndef BCOL_set_VisualSolve_dmin
#define BCOL_set_VisualSolve_dmin 0.1
#endif
#ifndef BCOL_set_VisualSolve_dmax
#define BCOL_set_VisualSolve_dmax 99999999
#endif
#ifndef BCOL_set_VisualSolve_CalculateBarycentric
#define BCOL_set_VisualSolve_CalculateBarycentric 0
#endif
#ifndef BCOL_set_DefaultVelocity0
#define BCOL_set_DefaultVelocity0 1
#endif
#ifndef BCOL_set_UseEmbree
#define BCOL_set_UseEmbree 0
#endif
#if BCOL_set_UseEmbree == 1
#if BCOL_set_Dimension != 3
#error embree only works with dimension 3
#endif
#endif
#if BCOL_set_VisualSolve != 0
#if BCOL_set_SupportGrid != 0
#ifndef BCOL_set_VisualSolve_GridContact
#error define BCOL_set_VisualSolve_GridContact
#endif
#endif
#endif
#if BCOL_set_StoreExtraDataInsideObject == 0
#elif BCOL_set_StoreExtraDataInsideObject == 1
#ifndef BCOL_set_ExtraDataInsideObject
#error ?
#endif
#else
#error ?
#endif
#if BCOL_set_SupportGrid == 0
#elif BCOL_set_SupportGrid == 1
#else
#error ?
#endif
#include "internal/rest.h"
#ifndef BCOL_set_PostSolve_Grid_CollisionNormal
#undef BCOL_set_PostSolve_Grid_CollisionNormal
#endif
#ifndef BCOL_set_PostSolve_Grid
#undef BCOL_set_PostSolve_Grid
#endif
#ifndef BCOL_set_ConstantBumpFriction
#undef BCOL_set_ConstantBumpFriction
#endif
#ifndef BCOL_set_ConstantFriction
#undef BCOL_set_ConstantFriction
#endif
#ifdef BCOL_set_DPFStore
#undef BCOL_set_DPFStore
#endif
#undef BCOL_set_UseEmbree
#undef BCOL_set_DefaultVelocity0
#ifdef BCOL_set_VisualSolve_GridContact
#undef BCOL_set_VisualSolve_GridContact
#endif
#undef BCOL_set_VisualSolve_CalculateBarycentric
#undef BCOL_set_VisualSolve_dmax
#undef BCOL_set_VisualSolve_dmin
#undef BCOL_set_VisualSolve
#undef BCOL_set_StepNumber
#undef BCOL_set_DynamicToDynamic
#undef BCOL_set_DynamicDeltaFunction
#undef BCOL_set_SupportGrid
#if BCOL_set_StoreExtraDataInsideObject == 0
#elif BCOL_set_StoreExtraDataInsideObject == 1
#undef BCOL_set_ExtraDataInsideObject
#endif
#undef BCOL_set_StoreExtraDataInsideObject
#undef BCOL_set_PreferredFloatSize
#undef BCOL_set_Dimension
#undef BCOL_set_prefix