I’m programmatically adding facets to the active model and noticed that adding small facets result in an exception.
Example in the Ruby console:
Sketchup.active_model.active_entities.add_face [[-0.0923144, 0.132364, 0.0182222], [-0.0921802, 0.132348, 0.0172238], [-0.0927674, 0.130992, 0.0172311]] Error: #<ArgumentError: Points are not planar> <main>:in `add_face' <main>:in `<main>' SketchUp:1:in `eval'
The three points are coplanar and are non-linear i.e. they define a proper plane. The only problem seems to be the fact that they are relatively close to each other because the exception goes away when I multiply all the coordinates by 1000 and add the facet.
In this case the exception is misinforming the actual cause.
Has anyone come across this before and found some form of workaround?