- Molecule left_edge =
- Lookup::beam (corrected_slope, thickness, height, 0.0);
- molecule.add_molecule(left_edge);
-
- Molecule right_edge =
- Lookup::beam (corrected_slope, thickness, height, 0.0);
- right_edge.translate_axis (width-thickness, X_AXIS);
- right_edge.translate_axis (corrected_slope * (width-thickness), Y_AXIS);
- molecule.add_molecule(right_edge);
-
- Molecule bottom_edge =
- Lookup::beam (corrected_slope, width, thickness, 0.0);
- bottom_edge.translate_axis (-0.5*height, Y_AXIS);
- molecule.add_molecule (bottom_edge);
-
- Molecule top_edge =
- Lookup::beam (corrected_slope, width, thickness, 0.0);
- top_edge.translate_axis (+0.5*height, Y_AXIS);
- molecule.add_molecule (top_edge);
+ stencil = Lookup::beam (corrected_slope, thickness, height, blotdiameter);
+ if (!begin)
+ {
+ stencil.translate_axis (width * 0.5 - thickness, X_AXIS);
+ stencil.translate_axis (corrected_slope * (width * 0.5 - thickness),
+ Y_AXIS);
+ }
+
+ Stencil bottom_edge
+ = Lookup::beam (corrected_slope, width * 0.5, horizontal_line_thickness,
+ blotdiameter);
+ bottom_edge.translate_axis (-0.5 * height, Y_AXIS);
+ stencil.add_stencil (bottom_edge);
+
+ Stencil top_edge
+ = Lookup::beam (corrected_slope, width * 0.5, horizontal_line_thickness,
+ blotdiameter);
+ top_edge.translate_axis (+0.5 * height, Y_AXIS);
+ stencil.add_stencil (top_edge);