/* * Copyright 2007-2013 IMP Inventors. All rights reserved. */ #include #include #include #include using namespace IMP; int main(){ set_log_level(VERBOSE); WeakPointer m(new Model()); Particle* p0= new Particle(m); core::XYZ d0= core::XYZ::setup_particle(p0); Particle* p1= new Particle(m); core::XYZ d1= core::XYZ::setup_particle(p1); example::ExampleRestraint *r0= new example::ExampleRestraint(p0, 1); example::ExampleRestraint *r1= new example::ExampleRestraint(p1, 1); d0.set_coordinates(algebra::Vector3D(0,0,2)); d1.set_coordinates(algebra::Vector3D(0,0,3)); m->add_restraint(r0); m->add_restraint(r1); return 0; }