OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::TextureBake::anonymous_namespace{TextureBakeRelocate.cpp} Namespace Reference

Functions

void tangent_basis (const Vec3f &n, Vec3f &t1, Vec3f &t2)

Function Documentation

◆ tangent_basis()

void Slic3r::TextureBake::anonymous_namespace{TextureBakeRelocate.cpp}::tangent_basis ( const Vec3f & n,
Vec3f & t1,
Vec3f & t2 )
24{
25 const Vec3f a = (std::abs(n.x()) < 0.9f) ? Vec3f(1.f, 0.f, 0.f) : Vec3f(0.f, 1.f, 0.f);
26 t1 = n.cross(a).normalized();
27 t2 = n.cross(t1).normalized();
28}
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65

References tangent_basis().

Referenced by tangent_basis().

Here is the call graph for this function:
Here is the caller graph for this function: