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

Function convert_placement

src/ifcgeom/kernels/cgal/CgalKernel.cpp:846–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844
845namespace {
846 bool convert_placement(const Eigen::Matrix4d& m, cgal_placement_t& trsf) {
847 // @todo check
848 trsf = cgal_placement_t(
849 m(0, 0), m(0, 1), m(0, 2), m(0, 3),
850 m(1, 0), m(1, 1), m(1, 2), m(1, 3),
851 m(2, 0), m(2, 1), m(2, 2), m(2, 3));
852
853 return true;
854 }
855 bool convert_placement(ifcopenshell::geometry::taxonomy::matrix4::ptr place, cgal_placement_t& trsf) {
856 return convert_placement(place->ccomponents(), trsf);
857 }

Callers 3

convert_openingsMethod · 0.85
process_as_2d_polygonMethod · 0.85
convert_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected