Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 6ae72a4f authored by kraus's avatar kraus
Browse files

increase size of coarsest level

parent ef5637d0
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,14 @@ void FlexibleCollimator::setDescription(const std::string &desc) {
urc[1] = std::max(urc[1], bb.center_m[1] + 0.5 * bb.height_m);
}
double width = urc[0] - llc[0];
double height = urc[1] - llc[1];
llc[0] -= 1e-3 * width;
urc[0] += 1e-3 * width;
llc[1] -= 1e-3 * height;
urc[1] += 1e-3 * height;
bb_m = mslang::BoundingBox(llc, urc);
tree_m.bb_m = bb_m;
......
......@@ -193,6 +193,12 @@ namespace mslang {
void writeGnuplot(std::ofstream &out) const {
out << "# level: " << level_m << ", size: " << objects_m.size() << std::endl;
bb_m.writeGnuplot(out);
out << "# num holes: " << objects_m.size() << std::endl;
for (const Base *obj: objects_m) {
obj->writeGnuplot(out);
}
out << std::endl;
if (nodes_m != 0) {
for (unsigned int i = 0; i < 4u; ++ i) {
nodes_m[i].writeGnuplot(out);
......
......@@ -71,6 +71,13 @@ int main(int argc, char *argv[])
urc[1] = std::max(urc[1], bb.center_m[1] + 0.5 * bb.height_m);
}
double width = urc[0] - llc[0];
double height = urc[1] - llc[1];
llc[0] -= 1e-3 * width;
urc[0] += 1e-3 * width;
llc[1] -= 1e-3 * height;
urc[1] += 1e-3 * width;
mslang::QuadTree tree;
tree.bb_m = mslang::BoundingBox(llc, urc);
tree.objects_m.insert(tree.objects_m.end(), baseBlocks.begin(), baseBlocks.end());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment