diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/QvLib/QvCylinder.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'tool_src/QvLib/QvCylinder.h')
| -rw-r--r-- | tool_src/QvLib/QvCylinder.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvCylinder.h b/tool_src/QvLib/QvCylinder.h new file mode 100644 index 0000000..9a762df --- /dev/null +++ b/tool_src/QvLib/QvCylinder.h @@ -0,0 +1,27 @@ +#ifndef _QV_CYLINDER_ +#define _QV_CYLINDER_ + +#include <QvSFBitMask.h> +#include <QvSFFloat.h> +#include <QvSubNode.h> + +class QvCylinder : public QvNode { + + QV_NODE_HEADER(QvCylinder); + + public: + + enum Part { // Cylinder parts + SIDES = 0x01, // The tubular part + TOP = 0x02, // The top circular face + BOTTOM = 0x04, // The bottom circular face + ALL = 0x07, // All parts + }; + + // Fields + QvSFBitMask parts; // Visible parts of cylinder + QvSFFloat radius; // Radius in x and z dimensions + QvSFFloat height; // Size in y dimension +}; + +#endif /* _QV_CYLINDER_ */ |
