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

Function is_non_uniform

src/ifcgeom/kernels/opencascade/base_utils.cpp:305–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304namespace {
305 bool is_non_uniform(const Eigen::Matrix4d& M, double eps = 1e-6)
306 {
307 Eigen::Matrix3d L = M.block<3, 3>(0, 0);
308 double sx = L.col(0).norm();
309 double sy = L.col(1).norm();
310 double sz = L.col(2).norm();
311 return !(
312 std::abs(sx - sy) < eps &&
313 std::abs(sx - sz) < eps &&
314 std::abs(sy - sz) < eps
315 );
316 }
317}
318
319TopoDS_Shape IfcGeom::util::apply_transformation(const TopoDS_Shape& s, const ifcopenshell::geometry::taxonomy::matrix4& t) {

Callers 1

apply_transformationMethod · 0.85

Calls 1

normMethod · 0.80

Tested by

no test coverage detected