| 385 | |
| 386 | template <typename Schema> |
| 387 | void IfcHierarchyHelper<Schema>::addAxis(typename Schema::IfcShapeRepresentation* rep, double l, typename Schema::IfcRepresentationContext* /*context*/) { |
| 388 | typename Schema::IfcCartesianPoint* p1 = addDoublet<typename Schema::IfcCartesianPoint>(-l / 2., 0.); |
| 389 | typename Schema::IfcCartesianPoint* p2 = addDoublet<typename Schema::IfcCartesianPoint>(+l / 2., 0.); |
| 390 | typename Schema::IfcCartesianPoint::list::ptr pts(new typename Schema::IfcCartesianPoint::list); |
| 391 | pts->push(p1); |
| 392 | pts->push(p2); |
| 393 | typename Schema::IfcPolyline* poly = new typename Schema::IfcPolyline(pts); |
| 394 | addEntity(poly); |
| 395 | |
| 396 | typename Schema::IfcRepresentationItem::list::ptr items = rep->Items(); |
| 397 | items->push(poly); |
| 398 | rep->setItems(items); |
| 399 | } |
| 400 | |
| 401 | template <typename Schema> |
| 402 | typename Schema::IfcProductDefinitionShape* IfcHierarchyHelper<Schema>::addBox(double w, |