MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / tryPlacementFromMatrix

Method tryPlacementFromMatrix

src/Mod/Import/App/ImportOCAF.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void ImportOCAF::tryPlacementFromMatrix(App::GeoFeature* part, const Base::Matrix4D& mat)
97{
98 try {
99 Base::Placement pl;
100 pl.fromMatrix(mat);
101 part->Placement.setValue(pl);
102 }
103 catch (const Base::ValueError& e) {
104 e.reportException();
105 }
106}
107
108void ImportOCAF::loadShapes()
109{

Callers

nothing calls this directly

Calls 3

fromMatrixMethod · 0.80
setValueMethod · 0.45
reportExceptionMethod · 0.45

Tested by

no test coverage detected