Menu

#62 Rotate of a large model causes problems

open-accepted
None
5
2010-01-29
2009-06-10
Peter Ellis
No

Rotating all of the zones in a large model at the same time using SketchUp's Rotate tool can create errors in the input file that are found when the rotated model is saved and opened again.

One error is:

ERROR:
ArgumentError
Points are not planar

BACKTRACE:
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/Surface.rb:130:in `add_face'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/Surface.rb:130:in `create_entity'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/DrawingInterface.rb:82:in `draw_entity'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:201:in `update_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each_with_index'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each_with_index'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `update_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:113:in `draw_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/ModelManager.rb:175:in `open_input_file'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/CommandManager.rb:70:in `open_input_file'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/MenuManager.rb:69:in `create_commands'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/MenuManager.rb:69:in `call'

Another error is:

ERROR:
NoMethodError
undefined method `drawing_interface' for nil:NilClass

BACKTRACE:
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/Surface.rb:137:in `create_entity'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/DrawingInterface.rb:82:in `draw_entity'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:201:in `update_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each_with_index'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `each_with_index'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:196:in `update_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/interfaces/ModelInterface.rb:113:in `draw_model'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/ModelManager.rb:175:in `open_input_file'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/CommandManager.rb:70:in `open_input_file'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/MenuManager.rb:69:in `create_commands'
E:/Projects/Development/OpenStudio/application-SU7m1/Plugins/OpenStudio/lib/MenuManager.rb:69:in `call'

The different errors seem to be a result of the choice of anchoring points that are used for the Rotate tool. Certain anchor points actually succeed in rotating the model without any Ruby errors, but possibly a few OpenStudio warnings such as:

Error: BuildingSurface:Detailed, EAA474
Not all the vertices for this surface are in the same plane.
It has been automatically fixed.

These errors may be an issue with the precision of the rotation calculation in OpenStudio. Or it may be a general problem with scalability in OpenStudio.

Thanks to Roger Hedrick for reporting.

Discussion

  • Peter Ellis

    Peter Ellis - 2009-06-10

    Original unrotated file and rotated file with error

     
  • Dan Macumber

    Dan Macumber - 2010-01-29
    • labels: 722614 -->
    • milestone: 897346 -->
    • assigned_to: peter3443 --> macumber
    • status: open --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB