Hope everybody is having a great time using Sketchup.
I am trying to get the line defined by the intersection of two faces. Please, see uploaded picture
Using the intersect_plane_plane method does not produce the whole intersection line, but just a fragment. For brevity I am including the code in the text, since it is short.
mycircle1 = Sketchup.active_model.entities.add_circle [1, 2, 3], [8, 2, 1], 7 myface1= Sketchup.active_model.entities.add_face mycircle1 mycircle2 = Sketchup.active_model.entities.add_circle [1, 2, 3], [2, 8, 1], 7 myface2= Sketchup.active_model.entities.add_face mycircle2 # Definition: The intersect_plane_plane method is used to compute the intersection of two planes. # Turns out the line it produces is not the whole intersection line, but just a fragment. # The following line produces: [Point3d(1.3, 2.3, 0), Vector3d(-0.0990148, -0.0990148, 0.990148)] mylinedef = Geom.intersect_plane_plane(myface1.plane, myface2.plane) myline2ndpoint = mylinedef + mylinedef myline = Sketchup.active_model.entities.add_line mylinedef, myline2ndpoint
Why is it that the intersect_plane_plane method is not producing the entire line defined by the intersection of two faces? Isn’t that what it is supposed to do? How can I get the entire line?
Thanks in advance for your help.