CD_Depth.h
Go to the documentation of this file.
1 #ifndef _CD_DEPTH
2 #define _CD_DEPTH
3 
4 #pragma once
7 #include <sch/sch_api.h>
8 
9 namespace sch
10 {
11 
12 class CD_Depth
13 {
14 
15 protected:
18 
20 
21 public:
22  SCH_API CD_Depth(S_Object * Obj1, S_Object * Obj2);
23  SCH_API virtual ~CD_Depth(void);
24 
29 
34 
36  Point3 & p1,
37  Point3 & p2,
38  const CD_SimplexEnhanced & s,
39  const CD_Simplex & s1_,
40  const CD_Simplex & s2_);
41 };
42 
43 } // namespace sch
44 
45 #endif
Definition: CD_Depth.h:13
SCH_API void setEpsilon(Scalar)
Sets the machine epsilon. Default is 1e-24.
virtual SCH_API ~CD_Depth(void)
SCH_API void setRelativePrecision(Scalar)
sets the relative precision of the proximity queries to a given value. Default is 1e-3
SCH_API CD_Depth(S_Object *Obj1, S_Object *Obj2)
S_Object * sObj2_
Definition: CD_Depth.h:17
SCH_API Scalar getPenetrationDepth(Vector3 &v, Point3 &p1, Point3 &p2, const CD_SimplexEnhanced &s, const CD_Simplex &s1_, const CD_Simplex &s2_)
Scalar precision_
Definition: CD_Depth.h:19
S_Object * sObj1_
Definition: CD_Depth.h:16
Scalar epsilon_
Definition: CD_Depth.h:19
Definition: CD_SimplexEnhanced.h:11
Definition: CD_Simplex.h:55
Definition: S_Object.h:72
Definition: CD_Pair.h:12
double Scalar
Definition: SCH_Types.h:23
#define SCH_API
Definition: sch_api.h:13