14 float ax =
A.GetX(), ay =
A.GetY(), az =
A.GetZ();
15 float bx =
B.GetX(), by =
B.GetY(), bz =
B.GetZ();
19 Vertices.push_back(
vertex({ ax, by, az }, { 0, 0, -1 }, { ax, by }));
20 Vertices.push_back(
vertex({ bx, ay, az }, { 0, 0, -1 }, { bx, ay }));
21 Vertices.push_back(
vertex({ bx, by, az }, { 0, 0, -1 }, { bx, by }));
31 Vertices.push_back(
vertex({ bx, ay, az}, { 1, 0, 0 }, { ay, az }));
32 Vertices.push_back(
vertex({ bx, by, az}, { 1, 0, 0 }, { by, az }));
33 Vertices.push_back(
vertex({ bx, ay, bz}, { 1, 0, 0 }, { ay, bz }));
44 Vertices.push_back(
vertex({ bx, ay, bz }, { 0, 0, 1 }, { bx, ay }));
46 Vertices.push_back(
vertex({ ax, ay, bz }, { 0, 0, 1 }, { ax, ay }));
47 Vertices.push_back(
vertex({ ax, by, bz }, { 0, 0, 1 }, { ax, by }));
57 Vertices.push_back(
vertex({ ax, ay, bz }, { -1, 0, 0 }, { ay, bz }));
58 Vertices.push_back(
vertex({ ax, by, bz }, { -1, 0, 0 }, { by, bz }));
60 Vertices.push_back(
vertex({ ax, by, az }, { -1, 0, 0 }, { by, az }));
70 Vertices.push_back(
vertex({ ax, by, az }, { 0, 1, 0 }, { ax, az }));
71 Vertices.push_back(
vertex({ ax, by, bz }, { 0, 1, 0 }, { ax, bz }));
72 Vertices.push_back(
vertex({ bx, by, az }, { 0, 1, 0 }, { bx, az }));
84 Vertices.push_back(
vertex({ ax, ay, bz }, { 0, -1, 0 }, { ax, bz }));
85 Vertices.push_back(
vertex({ bx, ay, az }, { 0, -1, 0 }, { bx, az }));
86 Vertices.push_back(
vertex({ bx, ay, bz }, { 0, -1, 0 }, { bx, bz }));
static vec3 Max(const vec3 &A, const vec3 &B)
static vec3 Min(const vec3 &A, const vec3 &B)
std::vector< vertex > Vertices
std::vector< u32 > Indices
cube(const vec3 &A, const vec3 &B)
virtual void EvaluateTangentSpace()
Topology cube object class declaration function.
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.