Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

With Ruby, the constructors would go something like:

points = OpenStudio::Point3dVector.new
points << OpenStudio::Point3d.new(0,1,0)
points << OpenStudio::Point3d.new(1,1,0)
points << OpenStudio::Point3d.new(1,0,0)
points << OpenStudio::Point3d.new(0,0,0)
shadingSurface = OpenStudio::Model::ShadingSurface.new(points, model)