Skip to content

Commit

Permalink
warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rms80 committed May 25, 2018
1 parent 64fd259 commit 16ae958
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion comp_geom/GraphCells2d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void FindCells()

int start_vid = idx.a;
int wid = idx.b;
int e0 = wedges[start_vid][wid].a;
int e0 = wedges[start_vid][wid].a; e0 = e0+1-1; // get rid of unused variable warning, want to keep this for debugging
int e1 = wedges[start_vid][wid].b;

loopv.Clear();
Expand Down
1 change: 0 additions & 1 deletion curve/PolyLine2d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ public PolyLine2d Transform(ITransform2 xform)

static public PolyLine2d MakeBoxSpiral(Vector2d center, double len, double spacing)
{
double d = spacing / 2;
PolyLine2d pline = new PolyLine2d();
pline.AppendVertex(center);

Expand Down
2 changes: 1 addition & 1 deletion distance/DistRay3Segment3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static public double MinDistance(Ray3d r, Segment3d s) {
}
static public double MinDistanceSegmentParam(Ray3d r, Segment3d s) {
double rayt, segt;
double dsqr = SquaredDistance(ref r, ref s, out rayt, out segt);
/*double dsqr = */SquaredDistance(ref r, ref s, out rayt, out segt);
return segt;
}

Expand Down
8 changes: 3 additions & 5 deletions io/StandardMeshReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,9 @@ public IOReadResult ReadFile(string sFilename, IMeshBuilder builder, ReadOptions
public IOReadResult ReadFile(Stream stream, IMeshBuilder builder, ReadOptions options, ParsingMessagesHandler messages)
{
// detect binary STL
BinaryReader binReader = new BinaryReader(stream);
byte[] header = binReader.ReadBytes(80);
bool bIsBinary = false;

bIsBinary = Util.IsBinaryStream(stream, 500);
//BinaryReader binReader = new BinaryReader(stream);
//byte[] header = binReader.ReadBytes(80);
bool bIsBinary = Util.IsBinaryStream(stream, 500);

// [RMS] Thingi10k includes some files w/ unicode string in ascii header...
// How can we detect this? can we check that each character is a character?
Expand Down
2 changes: 1 addition & 1 deletion mesh/MeshUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static bool CheckIfEdgeFlipCreatesFlip(DMesh3 mesh, int eID, double flip_
Index2i ov = mesh.GetEdgeOpposingV(eID);

int a = einfo.a, b = einfo.b, c = ov.a, d = ov.b;
int t0 = einfo.c, t1 = einfo.d;
int t0 = einfo.c;

Vector3d vC = mesh.GetVertex(c), vD = mesh.GetVertex(d);
Index3i tri_v = mesh.GetTriangle(t0);
Expand Down
2 changes: 1 addition & 1 deletion mesh/NTMesh3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ public bool CheckValidity(FailMode eFailMode = FailMode.Throw)
CheckOrFailF(IsEdge(edge));
}

List<int> vTris = new List<int>(), vTris2 = new List<int>();
List<int> vTris = new List<int>();
GetVtxTriangles(vID, vTris);

CheckOrFailF(vertices_refcount.refCount(vID) == vTris.Count + 1);
Expand Down
4 changes: 4 additions & 0 deletions spatial/TriangleBinsGrid2d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public TriangleBinsGrid2d(AxisAlignedBox2d bounds, int numCells)
}


public AxisAlignedBox2d Bounds {
get { return bounds; }
}

/// <summary>
/// Insert triangle. This function is thread-safe, uses a SpinLock internally
/// </summary>
Expand Down

0 comments on commit 16ae958

Please sign in to comment.