[cgma-dev] r5567 - cgm/trunk/geom
jvporter at wisc.edu
jvporter at wisc.edu
Tue Jun 12 14:34:03 CDT 2012
Author: jvporter
Date: 2012-06-12 14:34:03 -0500 (Tue, 12 Jun 2012)
New Revision: 5567
Modified:
cgm/trunk/geom/CAEntityId.cpp
cgm/trunk/geom/GeomMeasureTool.cpp
cgm/trunk/geom/GeometryQueryTool.cpp
Log:
Remove some more warnings
Modified: cgm/trunk/geom/CAEntityId.cpp
===================================================================
--- cgm/trunk/geom/CAEntityId.cpp 2012-06-12 18:48:25 UTC (rev 5566)
+++ cgm/trunk/geom/CAEntityId.cpp 2012-06-12 19:34:03 UTC (rev 5567)
@@ -63,9 +63,11 @@
DLIList<double*> *d_list = csa_ptr->double_data_list();
if (d_list && d_list->size() > 0) {
+#ifndef NDEBUG
RefEdge *edge = CAST_TO(new_attrib_owner, RefEdge);
assert(d_list->size() == 3 &&
edge && edge->start_vertex() == edge->end_vertex());
+#endif
d_list->reset();
boundingXYZ = new CubitVector(*d_list->get_and_step(),
*d_list->get_and_step(),
Modified: cgm/trunk/geom/GeomMeasureTool.cpp
===================================================================
--- cgm/trunk/geom/GeomMeasureTool.cpp 2012-06-12 18:48:25 UTC (rev 5566)
+++ cgm/trunk/geom/GeomMeasureTool.cpp 2012-06-12 19:34:03 UTC (rev 5567)
@@ -1899,7 +1899,6 @@
DLIList <RefFace*> &surfs_with_narrow_regions)
{
int j;
- double tol_sq = tol*tol;
int ii, jj;
DLIList <RefFace*> ref_faces, temp_faces;
@@ -1991,7 +1990,6 @@
int num_incs = (int)(edge_length/small_curve_size) + 1;
double start, end;
cur_edge->get_param_range(start, end);
- double dt = small_curve_size*((end-start)/edge_length);
double t = start;
bool one_bad = false;
for(j=0; j<num_incs && ret == true; j++)
@@ -2268,8 +2266,6 @@
{
int ret = 0;
double tol_sq = tol*tol;
- double small_step = 5.0*tol;
- double small_step_sq = small_step*small_step;
double max_dist_sq = 0.0;
RefVertex *e1_start_vert = e1->start_vertex();
RefVertex *e1_end_vert = e1->end_vertex();
@@ -2474,8 +2470,6 @@
e2_vert_list.reset();
for(i=e1_pos_list.size(); i--;)
{
- CubitVector *e1_pos = e1_pos_list.get_and_step();
More information about the cgma-dev
mailing list