summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-15 16:25:42 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-15 16:25:42 -0400
commitdf27a0fc92b4a26c92a1befd2fba21585fccc44a (patch)
treecbae5234ed0adec619067ea1162cbd20eca0518b /dimension/common.rules
parent9563ecb2efb2eec6d83fa4f73b75dfb4dccbc34c (diff)
downloaddimension-df27a0fc92b4a26c92a1befd2fba21585fccc44a.tar.xz
Support planes in dimension.
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index c5f9eea..7a6dba1 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -111,6 +111,7 @@ CAMERA_MODIFIER: "angle" FLOAT {
/* Objects */
OBJECT: FINITE_SOLID_OBJECT
+ | INFINITE_SOLID_OBJECT
| CSG_OBJECT
| LIGHT_SOURCE
| "object" "{"
@@ -194,6 +195,18 @@ SPHERE: "sphere" "{"
}
;
+INFINITE_SOLID_OBJECT: PLANE
+;
+
+PLANE: "plane" "{"
+ VECTOR "," FLOAT
+ OBJECT_MODIFIERS
+ "}"
+ {
+ $$ = dmnsn_new_astnode3(DMNSN_AST_PLANE, @$, $3, $5, $6);
+ }
+;
+
CSG_OBJECT: UNION
| INTERSECTION
| DIFFERENCE