Lines Matching refs:Segment
1193 struct Segment
1197 Segment (void) : index(-1), length(-1.0f) {}
1198 Segment (int index_, float length_) : index(index_), length(length_) {}
1200 static vector<float> lengths (const vector<Segment>& segments) { return members(segments, &Segment::length); }
1213 * (specifically, that the additional segment decreases monotonically
1220 * no additional segments are present, i.e. there's just one segment.
1254 vector<Segment> segments(finalLevel);
1256 segments[i] = Segment(i, sortedCoords[i+1] - sortedCoords[i]);
1258 failNote += "\nNote: segment lengths are, from left to right:\n " + containerStr(Segment::lengths(segments));
1263 vector<Segment> segmentsA;
1264 vector<Segment> segmentsB;
1270 const Segment& seg = segments[segNdx];
1279 << "e.g. segment of length " << seg.length << " isn't approximately equal to either "
1311 // For convenience, arrange so that the 2-segment group is segmentsB.
1315 // \note For 4-segment lines both segmentsA and segmentsB have 2 segments each.
1424 continue; // Unknown segment lengths, skip.
1440 log << TestLog::Message << "Failure: additional segment length isn't monotonically decreasing with the fraction <n> - <f>, among edges with same final tessellation level" << TestLog::EndMessage
1445 << ", but resulted in segment lengths " << prevData.additionalSegmentLength << " and " << curData.additionalSegmentLength << TestLog::EndMessage;