A method is provided for simulating a flexible tube in an environment. The method comprises determining a model of the flexible tube according to a plurality of internal constraints of the flexible tube and a plurality of external constraints of the flexible tube, determining a workspace of the flexible tube according to a model of the flexible tube, and determining a model of an active bending behavior of a tip of the flexible tube.
展开▼