86 // Grid stuff |
86 // Grid stuff |
87 // |
87 // |
88 ConfigOption (int Grid = 1) |
88 ConfigOption (int Grid = 1) |
89 ConfigOption (float GridCoarseCoordinateSnap = 5.0f) |
89 ConfigOption (float GridCoarseCoordinateSnap = 5.0f) |
90 ConfigOption (float GridCoarseAngleSnap = 45.0f) |
90 ConfigOption (float GridCoarseAngleSnap = 45.0f) |
|
91 ConfigOption (float GridCoarseBezierCurveSegments = 8) |
91 ConfigOption (float GridMediumCoordinateSnap = 1.0f) |
92 ConfigOption (float GridMediumCoordinateSnap = 1.0f) |
92 ConfigOption (float GridMediumAngleSnap = 22.5f) |
93 ConfigOption (float GridMediumAngleSnap = 22.5f) |
|
94 ConfigOption (float GridMediumBezierCurveSegments = 16) |
93 ConfigOption (float GridFineCoordinateSnap = 0.1f) |
95 ConfigOption (float GridFineCoordinateSnap = 0.1f) |
94 ConfigOption (float GridFineAngleSnap = 7.5f) |
96 ConfigOption (float GridFineAngleSnap = 7.5f) |
|
97 ConfigOption (float GridFineBezierCurveSegments = 32) |
95 ConfigOption (int RotationPointType = 0) |
98 ConfigOption (int RotationPointType = 0) |
96 ConfigOption (Vertex CustomRotationPoint = Origin) |
99 ConfigOption (Vertex CustomRotationPoint = Origin) |
97 |
100 |
98 float gridCoordinateSnap() |
101 float gridCoordinateSnap() |
99 { |
102 { |
119 case Grid::Medium: return config->gridMediumAngleSnap(); |
122 case Grid::Medium: return config->gridMediumAngleSnap(); |
120 case Grid::Fine: return config->gridFineAngleSnap(); |
123 case Grid::Fine: return config->gridFineAngleSnap(); |
121 } |
124 } |
122 |
125 |
123 return 45.0f; |
126 return 45.0f; |
|
127 } |
|
128 |
|
129 float gridBezierCurveSegments() |
|
130 { |
|
131 ConfigurationValueBag* config = g_win->configBag(); |
|
132 |
|
133 switch (config->grid()) |
|
134 { |
|
135 default: |
|
136 case Grid::Coarse: return config->gridCoarseBezierCurveSegments(); |
|
137 case Grid::Medium: return config->gridMediumBezierCurveSegments(); |
|
138 case Grid::Fine: return config->gridFineBezierCurveSegments(); |
|
139 } |
124 } |
140 } |
125 |
141 |
126 // ============================================================================= |
142 // ============================================================================= |
127 // |
143 // |
128 // Snap the given coordinate value on the current grid's given axis. |
144 // Snap the given coordinate value on the current grid's given axis. |