38 #ifndef FCL_COLLISION_GEOMETRY_INL_H
39 #define FCL_COLLISION_GEOMETRY_INL_H
53 : aabb_center(
Vector3<S>::Zero()),
57 threshold_occupied((S)1),
102 return cost_density >= threshold_occupied;
106 template <
typename S>
109 return cost_density <= threshold_free;
113 template <
typename S>
116 return !isOccupied() && !isFree();
120 template <
typename S>
127 template <
typename S>
134 template <
typename S>
141 template <
typename S>
153 S V = computeVolume();
156 m << C(0, 0) - V * (com[1] * com[1] + com[2] * com[2]),
157 C(0, 1) + V * com[0] * com[1],
158 C(0, 2) + V * com[0] * com[2],
159 C(1, 0) + V * com[1] * com[0],
160 C(1, 1) - V * (com[0] * com[0] + com[2] * com[2]),
161 C(1, 2) + V * com[1] * com[2],
162 C(2, 0) + V * com[2] * com[0],
163 C(2, 1) + V * com[2] * com[1],
164 C(2, 2) - V * (com[0] * com[0] + com[1] * com[1]);