aboutsummaryrefslogtreecommitdiff
path: root/tool_src/QvLib/QvCylinder.h
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
commitc068f22329d5cc722622a2183bbb22eef2093df7 (patch)
tree12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/QvLib/QvCylinder.h
downloadopenparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz
openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip
initial importHEADmain
Diffstat (limited to 'tool_src/QvLib/QvCylinder.h')
-rw-r--r--tool_src/QvLib/QvCylinder.h27
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_ */