Click or drag to resize
DigitalRuneContactReducer Class
Removes contacts if a ContactSet contains more than 4 Contacts.
Inheritance Hierarchy
SystemObject
  DigitalRune.Geometry.CollisionsContactReducer

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public class ContactReducer : IContactFilter

The ContactReducer type exposes the following members.

Constructors
  NameDescription
Public methodContactReducer
Initializes a new instance of the ContactReducer class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFilter
Filters the specified contact set.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
If the ContactSet contains 4 or less Contacts this filter does nothing. If the ContactSet contains more than 4 Contacts, the Contact with the deepest penetration depth is kept and 3 more Contacts that enclose a large area. The order of the Contacts in the ContactSet is modified.
See Also