Go to the documentation of this file.
4 #ifndef tools_sg_gstos_add
5 #define tools_sg_gstos_add
10 #include "../lina/mat4f"
28 void add_lines(
size_t a_floatn,
const float* a_xyzs) {
32 size_t num = a_floatn/3;
34 size_t nxyzs = (num-1)*2*3;
35 size_t offset =
m_xyzs.size();
36 m_xyzs.resize(offset+nxyzs);
37 float* pxyzs = vec_data<float>(
m_xyzs)+offset;
41 size_t num = a_floatn/3;
43 size_t nxyzs = num*2*3;
44 size_t offset =
m_xyzs.size();
45 m_xyzs.resize(offset+nxyzs);
46 float* pxyzs = vec_data<float>(
m_xyzs)+offset;
54 size_t num = a_floatn/3;
56 size_t nxyzs = (num-2)*3*3;
57 size_t offset =
m_xyzs.size();
58 m_xyzs.resize(offset+nxyzs);
59 float* pxyzs = vec_data<float>(
m_xyzs)+offset;
60 offset =
m_nms.size();
61 m_nms.resize(offset+nxyzs);
62 float* pnms = vec_data<float>(
m_nms)+offset;
66 size_t num = a_floatn/3;
68 size_t nxyzs = (num-2)*3*3;
69 size_t offset =
m_xyzs.size();
70 m_xyzs.resize(offset+nxyzs);
71 float* pxyzs = vec_data<float>(
m_xyzs)+offset;
72 offset =
m_nms.size();
73 m_nms.resize(offset+nxyzs);
74 float* pnms = vec_data<float>(
m_nms)+offset;