UV Tool: add patch support

patch controls move modifiers: shift = only move along the axis with the biggest move, ctrl = snap hard to grid and povit lines
fix a couple of Patch::Calculate_AvgNormal() and Patch::NaturalTexture() problems
This commit is contained in:
Garux
2019-06-10 15:17:57 +03:00
parent 684187c4ec
commit 2426697f65
6 changed files with 784 additions and 314 deletions

View File

@@ -59,6 +59,12 @@ BasicVector3( const BasicVector3<OtherElement>& other ){
y() = static_cast<Element>( other.y() );
z() = static_cast<Element>( other.z() );
}
template<typename OtherElement>
explicit BasicVector3( const BasicVector2<OtherElement>& vec2 ){
x() = static_cast<Element>( vec2.x() );
y() = static_cast<Element>( vec2.y() );
z() = 0;
}
BasicVector3( const Element& x_, const Element& y_, const Element& z_ ){
x() = x_;
y() = y_;