Problem with API or my plugin?
-
My Dovetail plugin as always had this problem and I have worked around it but I finally started to investigate to see what was actually happening. I have reduced the tail board plugin to its min so it requires no data input and only draws the edges on the board face that when pp for the thickness should create tails.
Now here is the problem:
The program asks the user to select in this order Comp, thickness edge, width edge, and length edge. On one end of the board the tails will be formed correctly on the other end there will be extra faces and edges remaining. If you select the width edge and then the length edge in a clockwise rotation the tails will be correct. However if width to length is in a counter clockwise rotation the tails are not completed.I have found the cause which is in the cc direction the faces that will be pushed pulled to create the tails are duplicated.
Will you look at this to see if it is something the program is doing or a problem with forming faces that intersect edges in the API. I have included the rb file and a simple board file for testing. Or you can make your own board comp ( all corners 90 deg ).
The 2 push pull lines are commented out if you make these functional then the program will attempt to complete the tails.
-
This is the first time I didn't get a response on a code question. However by making this test plugin I did find out what was wrong with the results on the counter clockwise edge selection and this has led to a much simpler work around to clean up the push pull results. I am running a code that looks for edges with 0 or 1 face attached and removing them then loop thru again as the first loop exposes additional edges with 0 or 1 face only. I still think the code is correct and there is a bug in SketchUp API when a pus pull face intersects the outside edge. I have seen this in other code I have written.
Keith
Advertisement