Reading smoothed normals from a component definition
-
We have a routine which loads a .SKP file into the model definitions and then reads the faces from the component. However, it does not read the normal properly the first time.
After we do something else in SketchUp, between loading the component and trying to read it, then we can read the normals properly.
I seem to remember that there is a commend to tell SketchUp to "clean up the drawing" after you have changed if (for instance adding a component or instance) which will cause SketchUp to calculate the smoothed normals and report them properly. But I cannot remember for find the command.
Does anyone remember how to tell SketchUp to report the normals properly.
(I do not want to re-smooth the faces, the smoothed faces are already stored in the component .SKP file properly)
(I can provide a sample RUBY file to demonstrate this if necessary.)
Advertisement