hbr: fix a few more warnings

This commit is contained in:
Andrew Wong 2013-02-09 23:02:37 -05:00
parent 08ca7af0c9
commit 329a9a7b40
3 changed files with 4 additions and 3 deletions

View File

@ -94,7 +94,7 @@ public:
if (HbrHierarchicalEdit<T>::GetNSubfaces() == face->GetDepth()) {
// Modify vertex sharpness. Note that we could actually do
// this in ApplyEditToVertex as well!
float sharp;
float sharp = 0.0f;
if (op == HbrHierarchicalEdit<T>::Set) {
sharp = sharpness;
} else if (op == HbrHierarchicalEdit<T>::Add) {

View File

@ -489,7 +489,7 @@ HbrFace<T>::Initialize(HbrMesh<T>* m, HbrFace<T>* _parent, int childindex, int f
stitchEdges = 0;
#endif
editOffset = -1;
depth = _depth;
depth = static_cast<unsigned char>(_depth);
hole = 0;
coarse = 0;
protect = 0;

View File

@ -547,7 +547,8 @@ HbrVertex<T>::AddIncidentEdge(HbrHalfedge<T>* edge) {
// will always be a boundary edge if possible. If any of the
// incident edges are no longer boundaries at this point then they
// can be immediately removed.
int i, newEdgeCount = 0;
int i;
unsigned short newEdgeCount = 0;
bool edgeFound = false;
HbrHalfedge<T>** incidentEdges =
(nIncidentEdges > 1) ? incident.edges : &incident.edge;