TIG,
I didn't need the parallel code. I wanted to return the original pts and the flattened one
pt1 = @ip1.position
pt2 = @ip2.position
p1 = Geom;;Point3d.new(pt1.x, pt1.y, [pt1.z, pt2.z].min)
p2 = Geom;;Point3d.new(pt2.x, pt2.y, [pt1.z, pt2.z].min)
eye = Sketchup.active_model.active_view.camera.eye
ve1 = eye.vector_to(p1)
ve2 = eye.vector_to(p2)
return [pt2,pt1,p2] if( ve1.cross(ve2).z > 0 )
[pt1,pt2,p1]
[image: KvVy_doorsaroundcircle.JPG]