![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Face structure: information on each face of a piece. More...
#include <jsondef.h>
Public Member Functions | |
| json11::Json | to_json () const |
| Convert class contents to JSON object. More... | |
| void | from_json (const string &s) |
| Set class contents from JSON string. More... | |
Public Attributes | |
| uint16_t | vertex_cnt = 0 |
| vector< uint16_t > | vertex_idx |
| Vector | com |
| Vector | normal |
| double | area =0. |
Face structure: information on each face of a piece.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
| s | JSON-formatted string to set class contents to |
| uint16_t facestruc::vertex_cnt = 0 |
| vector<uint16_t> facestruc::vertex_idx |
| Vector facestruc::com |
| Vector facestruc::normal |
| double facestruc::area =0. |