| 499 | |
| 500 | template <typename Schema> |
| 501 | typename Schema::IfcPresentationStyleAssignment* addStyleAssignment_2x3(IfcHierarchyHelper<Schema>& file, double r, double g, double b, double a = 1.0) { |
| 502 | auto surface_style = getSurfaceStyle<Schema>(file, r, g, b, a); |
| 503 | typename Schema::IfcPresentationStyleSelect::list::ptr surface_styles(new typename Schema::IfcPresentationStyleSelect::list); |
| 504 | surface_styles->push(surface_style); |
| 505 | typename Schema::IfcPresentationStyleAssignment* style_assignment = |
| 506 | new typename Schema::IfcPresentationStyleAssignment(surface_styles); |
| 507 | file.addEntity(style_assignment); |
| 508 | return style_assignment; |
| 509 | } |
| 510 | |
| 511 | template <typename Schema> |
| 512 | typename Schema::IfcPresentationStyle* addStyleAssignment_4x3(IfcHierarchyHelper<Schema>& file, double r, double g, double b, double a = 1.0) { |
no test coverage detected