20#ifdef WITH_CXX_GUARDEDALLOC
30template<
class T>
inline void ogf_swap(T &x, T &y)
63 return eigen_value_[i_[i]];
100 real eigen_value_[3];
104#ifdef WITH_CXX_GUARDEDALLOC
105 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:OGF:NormalCycle")
113 double s =
beta * neigh_area / edge.
norm();
115 M_[0] += s * edge.x() * edge.x();
116 M_[1] += s * edge.x() * edge.y();
117 M_[2] += s * edge.y() * edge.y();
118 M_[3] += s * edge.x() * edge.z();
119 M_[4] += s * edge.y() * edge.z();
120 M_[5] += s * edge.z() * edge.z();
Configuration definitions.
Vectors and Matrices (useful type definitions)
Read Guarded memory(de)allocation.
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
void accumulate_dihedral_angle(const Vec3r &edge, real angle, real neigh_area=1.0)
const Vec3r & Kmin() const
const Vec3r & Kmax() const
real eigen_value(int i) const
const Vec3r & eigen_vector(int i) const
void ogf_swap(T &x, T &y)
ccl_device_inline float beta(float x, float y)