I’ve been tracking down an issue, that I should write up about sometime, because the initial symptoms are wild and confusing. I did finally figure out what the real issue was, and I’m trying to find an extension that could take care of the underlying issue. I’m avoiding telling what the original symptoms were, it might send you off into the hours I spent before I saw what was the important part!
So, SketchUp considers something to be coplanar if all of the internal points are on the same plane, but there is a tolerance to that, and imported geometry may have a smaller tolerance. This comes up with importing CAD, and there are extensions such as Eneroth Flatten to Plane to help with that. For the problem I’m solving the selected face may not be on any axis, so the flattening direction is the normal of the face I suppose. That might be as little as a one line change in the flatten to plane code.
But, I think it flattens back to zero, and not just back to the edges of the selected face. Here are manual steps that achieve exactly what I want to do:
- Double click down to the geometry.
- Use the Axes tool to set the axes so that red is inferred from whatever direction the face goes left, green from the direction it goes down, leaving blue to be coming straight out of the face.
- Use Eneroth Flatten to Plane.
- Right-click, Reset the axes.
One extension that comes close to that is Move to Plane (TT, inside Architect Tools). It does show up the internal difficult triangles, but in my test case there isn’t a target plane, all possible planes are not really flat.
If Move to Plane could be told to consider what SketchUp sees as one face to be the plane to move to, that might do what I need.
A perfect extension would take the entire model and go down to every face that SketchUp sees, and does a move to plane of the internal geometry that was imported, based on the plane that is the single face SketchUp is seeing.
Is there already an extension, or are any of you intrigued enough to modify existing code?