Connection points

Hi is there any sample project related to this .It would be helpful for me

Your help would be highly appreciated

/*Imagine that orange and green points are vector3d */
// orange_cube is Mesh
//example code:
let o = new THREE.Vector3().copy(orange);
let g = new THREE.Vector3().copy(green);
let vect_move = g.add(o.multiply(-1, -1, -1));
for(let i =0; i<8; i++){
orange_cube.geometry.vertices[i].add(vect_move);
}