MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / apply_transform

Function apply_transform

src/ifcgeom/ConversionResult.h:334–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 void setStyle(ifcopenshell::geometry::taxonomy::style::ptr newStyle) { style_ = newStyle; }
333 int ItemId() const { return id; }
334 ConversionResultShape* apply_transform(double unit_scale = 1.) const {
335 if (unit_scale != 1.) {
336 auto m = ifcopenshell::geometry::taxonomy::matrix4::ptr(placement_->clone_());
337 m->pre_multiply_scale(unit_scale);
338 return shape_->moved(m);
339 } else {
340 return shape_->moved(placement_);
341 }
342 }
343 };
344
345 typedef std::vector<ConversionResult> ConversionResults;

Callers

nothing calls this directly

Calls 1

movedMethod · 0.45

Tested by

no test coverage detected