OBJParser
OBJ File Parser Powered by Boost Spirit
 All Classes Functions Variables Enumerations Enumerator Pages
OBJFreeFormAttributeState.hpp
1 /*
2  * Copyright 2016 Steven T Sell (ssell@vertexfragment.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __H__OBJ_PARSER_FREE_FORM_ATTRIBUTE_STATE__H__
18 #define __H__OBJ_PARSER_FREE_FORM_ATTRIBUTE_STATE__H__
19 
20 #include <boost/fusion/adapted.hpp>
21 #include <cstdint>
22 #include <vector>
23 
24 //------------------------------------------------------------------------------------------
25 
26 enum class OBJFreeFormType
27 {
28  None = 0,
29  BasisMatrix,
30  Bezier,
31  BSpline,
32  Cardinal,
33  Taylor
34 };
35 
40 {
42  : type(OBJFreeFormType::None),
43  rational(false),
44  degreeU(0),
45  degreeV(0),
46  stepU(0),
47  stepV(0),
50  {
51 
52  }
53 
54  //--------------------------------------------------------------------
55 
56  OBJFreeFormType type;
57  bool rational;
58 
59  int32_t degreeU;
60  int32_t degreeV;
61 
62  int32_t stepU;
63  int32_t stepV;
64 
65  int32_t mergeGroupNumber;
67 
68  std::vector<float> basisMatrixU;
69  std::vector<float> basisMatrixV;
70 };
71 
72 //------------------------------------------------------------------------------------------
73 
74 #endif
int32_t mergeGroupNumber
Merging group number. A value of 0 indicates no adjacency detection.
Definition: OBJFreeFormAttributeState.hpp:65
float mergeGroupResolution
Maximum distance between two merged surfaces. Must be greater than 0.0 if merging is on...
Definition: OBJFreeFormAttributeState.hpp:66
Definition: OBJFreeFormAttributeState.hpp:39