Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
af3f051a
Commit
af3f051a
authored
Oct 09, 2015
by
Christopher Tenter
Browse files
fix detection of isolated vertices in meshcompiler
parent
4f9506f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ACG/GL/MeshCompiler.cc
View file @
af3f051a
...
...
@@ -1058,7 +1058,7 @@ MeshCompiler::VertexSplitter::VertexSplitter(int _numAttribs,
int
_numVerts
,
int
_numWorstCase
,
float
_estBufferIncrease
)
:
numAttribs
(
_numAttribs
),
numVerts
(
_numVerts
)
:
numAttribs
(
_numAttribs
),
numVerts
(
_numVerts
)
,
numBaseVerts
(
_numVerts
)
{
if
(
_numWorstCase
<=
0
)
_numWorstCase
=
int
(
float
(
_numVerts
)
*
(
_estBufferIncrease
+
1.0
f
));
...
...
@@ -1192,7 +1192,7 @@ void MeshCompiler::VertexSplitter::setAttribs( const int id, int* attr )
bool
MeshCompiler
::
VertexSplitter
::
isIsolated
(
const
int
vertexPosID
)
{
return
getNext
(
vertexPosID
)
<
0
;
return
(
vertexPosID
<
numBaseVerts
)
&&
(
getNext
(
vertexPosID
)
<
0
)
;
}
...
...
ACG/GL/MeshCompiler.hh
View file @
af3f051a
...
...
@@ -911,6 +911,9 @@ private:
/// number of vertex combinations currently in use
int
numVerts
;
/// number of input vertex positions
const
int
numBaseVerts
;
/** split list format:
for each vertex: [next split, attribute ids]
next split: -1 -> not split yet
...
...
@@ -1020,6 +1023,8 @@ private:
// create face mapping: input id <-> final tri id
void
createFaceMap
();
public:
/** \brief Multi-threaded version of getIndexAdjBuffer
*
* Uses a multi-threaded method based on the vertex-triangle adjacency list to compute the index buffer with adjacency.
...
...
@@ -1029,7 +1034,6 @@ private:
*/
void
getIndexAdjBuffer_MT
(
void
*
_dst
,
const
int
_borderIndex
=
-
1
);
public:
// debugging tools
/// dump mesh info to text file
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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