Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3fd81c0c
Commit
3fd81c0c
authored
Oct 08, 2010
by
schurade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHANGE] vertex order in triangles
parent
bdd5c49f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/graphicsEngine/algorithms/WMarchingLegoAlgorithm.cpp
src/graphicsEngine/algorithms/WMarchingLegoAlgorithm.cpp
+12
-12
No files found.
src/graphicsEngine/algorithms/WMarchingLegoAlgorithm.cpp
View file @
3fd81c0c
...
...
@@ -94,8 +94,8 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id1
,
pt1
)
);
pt2
.
x
=
x
+
1
;
pt2
.
y
=
y
+
1
;
pt2
.
z
=
z
;
pt2
.
y
=
y
;
pt2
.
z
=
z
+
1
;
unsigned
int
id2
=
getVertexID
(
pt2
.
x
,
pt2
.
y
,
pt2
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id2
,
pt2
)
);
...
...
@@ -106,8 +106,8 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id3
,
pt3
)
);
pt4
.
x
=
x
+
1
;
pt4
.
y
=
y
;
pt4
.
z
=
z
+
1
;
pt4
.
y
=
y
+
1
;
pt4
.
z
=
z
;
unsigned
int
id4
=
getVertexID
(
pt4
.
x
,
pt4
.
y
,
pt4
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id4
,
pt4
)
);
...
...
@@ -169,9 +169,9 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
unsigned
int
id1
=
getVertexID
(
pt1
.
x
,
pt1
.
y
,
pt1
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id1
,
pt1
)
);
pt2
.
x
=
x
;
pt2
.
x
=
x
+
1
;
pt2
.
y
=
y
+
1
;
pt2
.
z
=
z
+
1
;
pt2
.
z
=
z
;
unsigned
int
id2
=
getVertexID
(
pt2
.
x
,
pt2
.
y
,
pt2
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id2
,
pt2
)
);
...
...
@@ -181,9 +181,9 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
unsigned
int
id3
=
getVertexID
(
pt3
.
x
,
pt3
.
y
,
pt3
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id3
,
pt3
)
);
pt4
.
x
=
x
+
1
;
pt4
.
x
=
x
;
pt4
.
y
=
y
+
1
;
pt4
.
z
=
z
;
pt4
.
z
=
z
+
1
;
unsigned
int
id4
=
getVertexID
(
pt4
.
x
,
pt4
.
y
,
pt4
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id4
,
pt4
)
);
...
...
@@ -207,8 +207,8 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
unsigned
int
id1
=
getVertexID
(
pt1
.
x
,
pt1
.
y
,
pt1
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id1
,
pt1
)
);
pt2
.
x
=
x
;
pt2
.
y
=
y
+
1
;
pt2
.
x
=
x
+
1
;
pt2
.
y
=
y
;
pt2
.
z
=
z
;
unsigned
int
id2
=
getVertexID
(
pt2
.
x
,
pt2
.
y
,
pt2
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id2
,
pt2
)
);
...
...
@@ -219,8 +219,8 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
unsigned
int
id3
=
getVertexID
(
pt3
.
x
,
pt3
.
y
,
pt3
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id3
,
pt3
)
);
pt4
.
x
=
x
+
1
;
pt4
.
y
=
y
;
pt4
.
x
=
x
;
pt4
.
y
=
y
+
1
;
pt4
.
z
=
z
;
unsigned
int
id4
=
getVertexID
(
pt4
.
x
,
pt4
.
y
,
pt4
.
z
);
m_idToVertices
.
insert
(
ID2WMLPointXYZId
::
value_type
(
id4
,
pt4
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment