Blender V2.61 - r43446
|
#include "LinearMath/btTransform.h"
#include "LinearMath/btGeometryUtil.h"
Go to the source code of this file.
Functions | |
SIMD_FORCE_INLINE btScalar | bt_distance_point_plane (const btVector4 &plane, const btVector3 &point) |
SIMD_FORCE_INLINE void | bt_vec_blend (btVector3 &vr, const btVector3 &va, const btVector3 &vb, btScalar blend_factor) |
SIMD_FORCE_INLINE void | bt_plane_clip_polygon_collect (const btVector3 &point0, const btVector3 &point1, btScalar dist0, btScalar dist1, btVector3 *clipped, int &clipped_count) |
This function calcs the distance from a 3D plane. | |
SIMD_FORCE_INLINE int | bt_plane_clip_polygon (const btVector4 &plane, const btVector3 *polygon_points, int polygon_point_count, btVector3 *clipped) |
Clips a polygon by a plane. | |
SIMD_FORCE_INLINE int | bt_plane_clip_triangle (const btVector4 &plane, const btVector3 &point0, const btVector3 &point1, const btVector3 &point2, btVector3 *clipped) |
Clips a polygon by a plane. |
Definition in file btClipPolygon.h.
SIMD_FORCE_INLINE btScalar bt_distance_point_plane | ( | const btVector4 & | plane, |
const btVector3 & | point | ||
) |
Definition at line 31 of file btClipPolygon.h.
Referenced by bt_line_plane_collision(), bt_plane_clip_polygon(), bt_plane_clip_triangle(), GIM_TRIANGLE_CONTACT::merge_points(), btPrimitiveTriangle::overlap_test_conservative(), and btTriangleShapeEx::overlap_test_conservative().
SIMD_FORCE_INLINE int bt_plane_clip_polygon | ( | const btVector4 & | plane, |
const btVector3 * | polygon_points, | ||
int | polygon_point_count, | ||
btVector3 * | clipped | ||
) |
Clips a polygon by a plane.
Definition at line 72 of file btClipPolygon.h.
References bt_distance_point_plane(), bt_plane_clip_polygon_collect(), i, and SIMD_EPSILON.
Referenced by btPrimitiveTriangle::clip_triangle().
SIMD_FORCE_INLINE void bt_plane_clip_polygon_collect | ( | const btVector3 & | point0, |
const btVector3 & | point1, | ||
btScalar | dist0, | ||
btScalar | dist1, | ||
btVector3 * | clipped, | ||
int & | clipped_count | ||
) |
This function calcs the distance from a 3D plane.
Definition at line 44 of file btClipPolygon.h.
References bt_vec_blend(), and SIMD_EPSILON.
Referenced by bt_plane_clip_polygon(), and bt_plane_clip_triangle().
SIMD_FORCE_INLINE int bt_plane_clip_triangle | ( | const btVector4 & | plane, |
const btVector3 & | point0, | ||
const btVector3 & | point1, | ||
const btVector3 & | point2, | ||
btVector3 * | clipped | ||
) |
Clips a polygon by a plane.
clipped | must be an array of 16 points. |
Definition at line 122 of file btClipPolygon.h.
References bt_distance_point_plane(), bt_plane_clip_polygon_collect(), and SIMD_EPSILON.
Referenced by btPrimitiveTriangle::clip_triangle().
SIMD_FORCE_INLINE void bt_vec_blend | ( | btVector3 & | vr, |
const btVector3 & | va, | ||
const btVector3 & | vb, | ||
btScalar | blend_factor | ||
) |
Vector blending Takes two vectors a, b, blends them together
Definition at line 38 of file btClipPolygon.h.
Referenced by bt_plane_clip_polygon_collect().