mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
fix side indices & update test model
This commit is contained in:
parent
ec85260ec4
commit
edb12a32b0
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
<model>
|
<model>
|
||||||
<box from="0,0,0" to="1,0.5,1" delete="top"/>
|
<box from="0,0,0" to="1,0.5,1" delete="top,north"/>
|
||||||
<box from="0,0.5,0.5" to="1,1,1" delete="bottom"/>
|
<box from="0,0.5,0.5" to="1,1,1" delete="bottom,north"/>
|
||||||
<rect from="0,0.5,0" right="1,0,0" up="0,0,0.5"/>
|
<rect from="0,0.5,0" right="1,0,0" up="0,0,0.5"/>
|
||||||
|
<rect from="1,0,1" right="-1,0,0" up="0,1,0"/>
|
||||||
</model>
|
</model>
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,12 @@ using namespace vcm;
|
||||||
using namespace xml;
|
using namespace xml;
|
||||||
|
|
||||||
static const std::unordered_map<std::string, int> side_indices {
|
static const std::unordered_map<std::string, int> side_indices {
|
||||||
{"east", 0},
|
{"north", 0},
|
||||||
{"west", 1},
|
{"south", 1},
|
||||||
{"top", 2},
|
{"top", 2},
|
||||||
{"bottom", 3},
|
{"bottom", 3},
|
||||||
{"back", 4},
|
{"east", 4},
|
||||||
{"front", 5},
|
{"west", 5},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void perform_rect(const xmlelement& root, model::Model& model) {
|
static void perform_rect(const xmlelement& root, model::Model& model) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue