1 #include "geometrybuilder.h"
2 #include "meshbuilder.h"
7 GeometryBuilder::GeometryBuilder():
13 GeometryBuilder &GeometryBuilder::tangent(unsigned t)
19 GeometryBuilder &GeometryBuilder::binormal(unsigned b)
25 GeometryBuilder &GeometryBuilder::texture_fit(TextureFit tf)
31 void GeometryBuilder::adjust_texture_scale(float &u_scale, float &v_scale, float width, float height) const
35 if((width<height)==(tex_fit==CROP))
36 u_scale *= width/height;
38 v_scale *= height/width;
42 void GeometryBuilder::build(Mesh &mesh) const
44 MeshBuilder builder(mesh);
45 builder.auto_offset();