| #pragma once |
| |
| #ifndef PLASTICHANDLE_H |
| #define PLASTICHANDLE_H |
| |
| |
| #include "tgeometry.h" |
| |
| |
| |
| |
| |
| class TTextureMesh; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| struct PlasticHandle { |
| TPointD m_pos; |
| |
| |
| |
| |
| bool m_interpolate; |
| |
| |
| |
| double m_so; |
| |
| public: |
| PlasticHandle() : m_interpolate(true), m_so(0.0) {} |
| explicit PlasticHandle(const TPointD &pos) |
| : m_pos(pos), m_interpolate(true), m_so(0.0) {} |
| ~PlasticHandle() {} |
| }; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| bool buildDistances(float *distances, const TTextureMesh &mesh, |
| const TPointD &pos, int *faceHint = 0); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void buildSO(double *so, const TTextureMesh &mesh, |
| const std::vector<PlasticHandle> &handles, int *faceHints = 0); |
| |
| #endif // PLASTICHANDLE_H |