Custom constraints ?

Let's say I would like to mix Box2D with a custom engine, for example a physics engine based on bitmap/pixels. Let's say this engine is just a position constraint (not working on velocities).

Do you think this would be possible and where would I check my custom constraints ?

After looking around, maybe b2Island.Solve() would be the right place to insert this custom constraint ?

Code:
// Iterate over constraints.
for (m_positionIterationCount = 0; m_positionIterationCount < step.maxIterations; ++m_positionIterationCount) {

      // MY CUSTOM POSITION CONSTRAINT HERE ????

      var contactsOkay:Boolean = contactSolver.SolvePositionConstraints(b2Settings.b2_contactBaumgarte);

Original thread: https://box2d.org/forum/viewtopic.php?t=1542