44 aResult.
push_back(transformableRect.center().to_vec3());
45 aResult.
push_back(transformableRect.top_left().to_vec3());
46 aResult.
push_back(transformableRect.top_right().to_vec3());
47 aResult.
push_back(transformableRect.bottom_right().to_vec3());
48 aResult.
push_back(transformableRect.bottom_left().to_vec3());
49 aResult.
push_back(transformableRect.top_left().to_vec3());
52 aResult.
push_back(transformableRect.top_left().to_vec3());
53 aResult.
push_back(transformableRect.top_right().to_vec3());
54 aResult.
push_back(transformableRect.bottom_left().to_vec3());
55 aResult.
push_back(transformableRect.top_right().to_vec3());
56 aResult.
push_back(transformableRect.bottom_right().to_vec3());
57 aResult.
push_back(transformableRect.bottom_left().to_vec3());
60 aResult.
push_back(transformableRect.top_left().to_vec3());
61 aResult.
push_back(transformableRect.top_right().to_vec3());
62 aResult.
push_back(transformableRect.top_right().to_vec3());
63 aResult.
push_back(transformableRect.bottom_right().to_vec3());
64 aResult.
push_back(transformableRect.bottom_right().to_vec3());
65 aResult.
push_back(transformableRect.bottom_left().to_vec3());
66 aResult.
push_back(transformableRect.bottom_left().to_vec3());
67 aResult.
push_back(transformableRect.top_left().to_vec3());
71 for (
auto& v : aResult)
72 v = *aTransformation * v + aRect.center().to_vec3();
void calc_rect_vertices(vec3_array< VertexCount > &aResult, const basic_rect< CoordinateType, CoordinateSystem > &aRect, mesh_type aType, const optional_mat44 &aTransformation={})
vertices arc_vertices(const point &aCenter, dimension aRadius, angle aStartAngle, angle aEndAngle, const point &aOrigin, mesh_type aType, uint32_t aArcSegments=0)
vertices circle_vertices(const point &aCenter, dimension aRadius, angle aStartAngle, mesh_type aType, uint32_t aArcSegments=0)