JunkBox_Lib++ (for Windows) 1.10.1
Loading...
Searching...
No Matches
Tolerance.h
Go to the documentation of this file.
1#ifndef __JBXL_CPP_TOLERANCE_H_
2#define __JBXL_CPP_TOLERANCE_H_
3
10//
11namespace jbxl {
12
13
14// 相対値
15extern double Vector_Tolerance;
16extern double Vertex_Tolerance;
17extern double Edge_Tolerance;
18extern double Facet_Tolerance;
19
20// 絶対値
21extern double Abs_Vector_Tolerance;
22extern double Abs_Vertex_Tolerance;
23extern double Collision_Tolerance;
24extern double Sin_Tolerance;
25
26// 1に対して 0とするトレランス
27extern double Zero_Eps;
28extern double Zero_Eps2;
29
30/*
31void SetZeroEPS(double eps);
32void SetVectorTolerance(double tol);
33void SetVertexTolerance(double tol);
34void SetEdgeTolerance(double tol);
35void SetFacetTolerance(double tol);
36void SetCollisionTolerance(double tol);
37void SetSINTolerance(double tol);
38void SetAbsVectorTolerance(double tol);
39void SetAbsVertexTolerance(double tol);
40*/
41
42inline void SetZeroEPS(double eps) { Zero_Eps = eps; }
43inline void SetVectorTolerance(double tol) { Vector_Tolerance = tol; }
44inline void SetVertexTolerance(double tol) { Vertex_Tolerance = tol; }
45inline void SetEdgeTolerance(double tol) { Edge_Tolerance = tol; }
46inline void SetFacetTolerance(double tol) { Facet_Tolerance = tol; }
47inline void SetCollisionTolerance(double tol){ Collision_Tolerance = tol; }
48inline void SetSINTolerance(double tol) { Sin_Tolerance = tol; }
49inline void SetAbsVectorTolerance(double tol){ Abs_Vector_Tolerance = tol; }
50inline void SetAbsVertexTolerance(double tol){ Abs_Vertex_Tolerance = tol; }
51
52
53} // namespace
54
55#endif
56
Definition Brep.h:29
void SetFacetTolerance(double tol)
Definition Tolerance.h:46
void SetSINTolerance(double tol)
Definition Tolerance.h:48
double Collision_Tolerance
衝突判定用トレランス
Definition Tolerance.cpp:22
void SetZeroEPS(double eps)
Definition Tolerance.h:42
double Edge_Tolerance
Definition Tolerance.cpp:16
void SetEdgeTolerance(double tol)
Definition Tolerance.h:45
double Zero_Eps
1に対して 0とするトレランス
Definition Tolerance.cpp:26
double Vector_Tolerance
Definition Tolerance.cpp:14
double Sin_Tolerance
sinθ==0
Definition Tolerance.cpp:23
double Abs_Vector_Tolerance
Definition Tolerance.cpp:20
void SetAbsVertexTolerance(double tol)
Definition Tolerance.h:50
void SetAbsVectorTolerance(double tol)
Definition Tolerance.h:49
double Abs_Vertex_Tolerance
Definition Tolerance.cpp:21
double Vertex_Tolerance
Definition Tolerance.cpp:15
void SetVertexTolerance(double tol)
Definition Tolerance.h:44
void SetVectorTolerance(double tol)
Definition Tolerance.h:43
void SetCollisionTolerance(double tol)
Definition Tolerance.h:47
double Facet_Tolerance
Definition Tolerance.cpp:17
double Zero_Eps2
Definition Tolerance.cpp:27