|
Blender V4.3
|
#include <gim_contact.h>
Inherits gim_array< GIM_CONTACT >.
Public Member Functions | |
| gim_contact_array () | |
| SIMD_FORCE_INLINE void | push_contact (const btVector3 &point, const btVector3 &normal, GREAL depth, GUINT feature1, GUINT feature2) |
| SIMD_FORCE_INLINE void | push_triangle_contacts (const GIM_TRIANGLE_CONTACT_DATA &tricontact, GUINT feature1, GUINT feature2) |
| void | merge_contacts (const gim_contact_array &contacts, bool normal_contact_average=true) |
| void | merge_contacts_unique (const gim_contact_array &contacts) |
Public Member Functions inherited from gim_array< GIM_CONTACT > | |
| void | destroyData () |
| bool | resizeData (GUINT newsize) |
| bool | growingCheck () |
| bool | reserve (GUINT size) |
| void | clear_range (GUINT start_range) |
| void | clear () |
| void | clear_memory () |
| gim_array () | |
| gim_array (GUINT reservesize) | |
| ~gim_array () | |
| GUINT | size () const |
| GUINT | max_size () const |
| GIM_CONTACT & | operator[] (size_t i) |
| const GIM_CONTACT & | operator[] (size_t i) const |
| GIM_CONTACT * | pointer () |
| const GIM_CONTACT * | pointer () const |
| GIM_CONTACT * | get_pointer_at (GUINT i) |
| const GIM_CONTACT * | get_pointer_at (GUINT i) const |
| GIM_CONTACT & | at (GUINT i) |
| const GIM_CONTACT & | at (GUINT i) const |
| GIM_CONTACT & | front () |
| const GIM_CONTACT & | front () const |
| GIM_CONTACT & | back () |
| const GIM_CONTACT & | back () const |
| void | swap (GUINT i, GUINT j) |
| void | push_back (const GIM_CONTACT &obj) |
| void | push_back_mem () |
| Simply increase the m_size, doesn't call the new element constructor. | |
| void | push_back_memcpy (const GIM_CONTACT &obj) |
| void | pop_back () |
| void | pop_back_mem () |
| Simply decrease the m_size, doesn't call the deleted element destructor. | |
| void | erase (GUINT index) |
| fast erase | |
| void | erase_sorted_mem (GUINT index) |
| void | erase_sorted (GUINT index) |
| void | insert_mem (GUINT index) |
| void | insert (const GIM_CONTACT &obj, GUINT index) |
| void | resize (GUINT size, bool call_constructor=true, const GIM_CONTACT &fillData=GIM_CONTACT()) |
| void | refit () |
Additional Inherited Members | |
Public Attributes inherited from gim_array< GIM_CONTACT > | |
| GIM_CONTACT * | m_data |
| GUINT | m_size |
| GUINT | m_allocated_size |
Definition at line 129 of file gim_contact.h.
|
inline |
Definition at line 132 of file gim_contact.h.
| void gim_contact_array::merge_contacts | ( | const gim_contact_array & | contacts, |
| bool | normal_contact_average = true ) |
Definition at line 35 of file gim_contact.cpp.
References gim_array< T >::back(), gim_array< GIM_CONTACT >::back(), btFabs(), gim_array< GIM_CONTACT >::clear(), CONTACT_DIFF_EPSILON, gim_heap_sort(), GUINT, GIM_CONTACT::interpolate_normals(), GIM_CONTACT::m_depth, GIM_CONTACT::m_normal, MAX_COINCIDENT, gim_array< T >::pointer(), gim_array< GIM_CONTACT >::push_back(), gim_array< T >::resize(), and gim_array< T >::size().
| void gim_contact_array::merge_contacts_unique | ( | const gim_contact_array & | contacts | ) |
Definition at line 114 of file gim_contact.cpp.
References gim_array< T >::back(), gim_array< GIM_CONTACT >::clear(), GREAL, GUINT, GIM_CONTACT::m_depth, GIM_CONTACT::m_normal, GIM_CONTACT::m_point, gim_array< GIM_CONTACT >::push_back(), and gim_array< T >::size().
|
inline |
Definition at line 136 of file gim_contact.h.
References gim_array< GIM_CONTACT >::back(), GIM_CONTACT::m_depth, GIM_CONTACT::m_feature1, GIM_CONTACT::m_feature2, GIM_CONTACT::m_normal, GIM_CONTACT::m_point, point, and gim_array< GIM_CONTACT >::push_back_mem().
|
inline |
Definition at line 148 of file gim_contact.h.
References gim_array< GIM_CONTACT >::back(), GUINT, GIM_CONTACT::m_depth, GIM_CONTACT::m_feature1, GIM_CONTACT::m_feature2, GIM_CONTACT::m_normal, GIM_TRIANGLE_CONTACT_DATA::m_penetration_depth, GIM_CONTACT::m_point, GIM_TRIANGLE_CONTACT_DATA::m_point_count, GIM_TRIANGLE_CONTACT_DATA::m_points, GIM_TRIANGLE_CONTACT_DATA::m_separating_normal, and gim_array< GIM_CONTACT >::push_back_mem().