Revision: 65382
http://sourceforge.net/p/brlcad/code/65382
Author: ejno
Date: 2015-06-18 14:25:46 +0000 (Thu, 18 Jun 2015)
Log Message:
-----------
in Section::write_line(), set a thickness of zero in volume mode only if
thickness passes NEAR_ZERO
Modified Paths:
--------------
brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp
Modified: brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp
===================================================================
--- brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp 2015-06-18
13:48:36 UTC (rev 65381)
+++ brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp 2015-06-18
14:25:46 UTC (rev 65382)
@@ -621,15 +621,13 @@
temp.at(0) = m_next_grid_id;
std::pair<std::map<Point, std::vector<std::size_t>,
PointComparator>::iterator, bool>
found = m_grids.insert(std::make_pair(points.at(i), temp));
+ results.at(i) = found.first->second.at(0);
if (found.second) {
++m_next_grid_id;
- results.at(i) = found.first->second.at(0);
continue;
}
- results.at(i) = found.first->second.at(0);
-
for (std::size_t j = 0, n = 0; j < i; ++j)
if (results.at(j) == results.at(i)) {
if (++n < found.first->second.size()) {
@@ -818,7 +816,7 @@
record << "CLINE" << m_next_element_id << m_material_id << grids.at(
0) << grids.at(1) << "" << "";
- if (m_volume_mode)
+ if (m_volume_mode && NEAR_ZERO(thickness, RT_LEN_TOL))
record << thickness;
else
record.non_zero(thickness);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits