MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / transformPrimitive

Function transformPrimitive

source/MRMesh/MRFeatures.cpp:345–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345Primitives::Sphere transformPrimitive( const AffineXf3f& xf, const Primitives::Sphere& primitive )
346{
347 Primitives::Sphere ret;
348 ret.center = xf( primitive.center );
349 ret.radius = getUniformScale( xf.A ) * primitive.radius;
350 return ret;
351}
352
353Primitives::Plane transformPrimitive( const AffineXf3f& xf, const Primitives::Plane& primitive )
354{

Callers 1

Calls 5

getUniformScaleFunction · 0.85
normalizedMethod · 0.45
transposedMethod · 0.45
inverseMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected