diff options
Diffstat (limited to 'src/Codec/Wavefront/Lexer.hs')
-rw-r--r-- | src/Codec/Wavefront/Lexer.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Codec/Wavefront/Lexer.hs b/src/Codec/Wavefront/Lexer.hs index 77ecb35..ea32e2a 100644 --- a/src/Codec/Wavefront/Lexer.hs +++ b/src/Codec/Wavefront/Lexer.hs | |||
@@ -14,6 +14,7 @@ module Codec.Wavefront.Lexer where | |||
14 | 14 | ||
15 | import Codec.Wavefront.Element | 15 | import Codec.Wavefront.Element |
16 | import Codec.Wavefront.Face | 16 | import Codec.Wavefront.Face |
17 | import Codec.Wavefront.FreeForm | ||
17 | import Codec.Wavefront.Line | 18 | import Codec.Wavefront.Line |
18 | import Codec.Wavefront.Location | 19 | import Codec.Wavefront.Location |
19 | import Codec.Wavefront.Normal | 20 | import Codec.Wavefront.Normal |
@@ -42,6 +43,12 @@ data Ctxt = Ctxt { | |||
42 | , ctxtLines :: DList (Element Line) | 43 | , ctxtLines :: DList (Element Line) |
43 | -- |Faces. | 44 | -- |Faces. |
44 | , ctxtFaces :: DList (Element Face) | 45 | , ctxtFaces :: DList (Element Face) |
46 | -- |Curves. | ||
47 | , ctxtCurves :: DList (Element Curve) | ||
48 | -- |Curves on surfaces. | ||
49 | , ctxtEmbeddedCurves :: DList (Element EmbeddedCurve) | ||
50 | -- |Surfaces. | ||
51 | , ctxtSurfaces :: DList (Element Surface) | ||
45 | -- |Current object. | 52 | -- |Current object. |
46 | , ctxtCurrentObject :: Maybe Text | 53 | , ctxtCurrentObject :: Maybe Text |
47 | -- |Current groups. | 54 | -- |Current groups. |
@@ -65,6 +72,9 @@ emptyCtxt = Ctxt { | |||
65 | , ctxtPoints = empty | 72 | , ctxtPoints = empty |
66 | , ctxtLines = empty | 73 | , ctxtLines = empty |
67 | , ctxtFaces = empty | 74 | , ctxtFaces = empty |
75 | , ctxtCurves = empty | ||
76 | , ctxtEmbeddedCurves = empty | ||
77 | , ctxtSurfaces = empty | ||
68 | , ctxtCurrentObject = Nothing | 78 | , ctxtCurrentObject = Nothing |
69 | , ctxtCurrentGroups = ["default"] | 79 | , ctxtCurrentGroups = ["default"] |
70 | , ctxtCurrentMtl = Nothing | 80 | , ctxtCurrentMtl = Nothing |