1 #include "geometrybuilder.h"
2 #include "meshbuilder.h"
7 GeometryBuilder::GeometryBuilder():
12 GeometryBuilder &GeometryBuilder::tbn(bool t)
18 GeometryBuilder &GeometryBuilder::texture_fit(TextureFit tf)
24 void GeometryBuilder::adjust_texture_scale(float &u_scale, float &v_scale, float width, float height) const
28 if((width<height)==(tex_fit==CROP))
29 u_scale *= width/height;
31 v_scale *= height/width;
35 void GeometryBuilder::build(Mesh &mesh) const
37 MeshBuilder builder(mesh);
38 builder.auto_offset();