← Back to team overview

yade-dev team mailing list archive

[Bug 1002524] [NEW] erasing/inserting body in the same place will (?) break collider

 

Public bug reported:

If body ID is deleted then replaced by a new one, the bound dispatcher
will create a new bound, but the collider will still have a copy of
values from the old one.
Fortunately it is harmless, since the collider will update the values
based on current body->bound before doing the sort.
It will be seen by the collider as if body ID was not deleted but,
instead, moved to a different place.

Now the bug: if a new body is
created in the same place (approximately) as the old one, then the
collider will not detect any move in the sort phase and no interactions
will be created.

A secondary bug that can be fixed ion the same move: 
https://github.com/yade/trunk/blob/master/pkg/common/InsertionSortCollider.cpp#L125
If 2*nBodies-BBsize is more than 0, then we are pushing to a a vector that has not
been cleared.

** Affects: yade
     Importance: Undecided
     Assignee: Chareyre (bruno-chareyre)
         Status: Incomplete

** Changed in: yade
       Status: New => Incomplete

** Changed in: yade
     Assignee: (unassigned) => Chareyre (bruno-chareyre)

-- 
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/1002524

Title:
  erasing/inserting body in the same place will (?) break collider

Status in Yet Another Dynamic Engine:
  Incomplete

Bug description:
  If body ID is deleted then replaced by a new one, the bound dispatcher
  will create a new bound, but the collider will still have a copy of
  values from the old one.
  Fortunately it is harmless, since the collider will update the values
  based on current body->bound before doing the sort.
  It will be seen by the collider as if body ID was not deleted but,
  instead, moved to a different place.

  Now the bug: if a new body is
  created in the same place (approximately) as the old one, then the
  collider will not detect any move in the sort phase and no interactions
  will be created.

  A secondary bug that can be fixed ion the same move: 
  https://github.com/yade/trunk/blob/master/pkg/common/InsertionSortCollider.cpp#L125
  If 2*nBodies-BBsize is more than 0, then we are pushing to a a vector that has not
  been cleared.

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1002524/+subscriptions


Follow ups

References