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

Method setNormal

source/MRMesh/MRPlaneObject.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void PlaneObject::setNormal( const Vector3f& normal, ViewportId id /*= {}*/ )
32{
33 auto currentXf = xf( id );
34 currentXf.A = Matrix3f::rotation( Vector3f::plusZ(), normal ) * s_.get( id );
35 setXf( currentXf, id );
36 orientateFollowMainAxis_( id );
37
38}
39
40void PlaneObject::setCenter( const Vector3f& center, ViewportId id /*= {}*/ )
41{

Callers 1

primitiveToObjectFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected