Pleochroma GitHub

User manual › Solve and improve

Chapter 21

Angle Sweeps

Try one tier's angle over a range, or crown against pavilion on a heat map.

All chapters

21.1 What You Will Do

This chapter covers Edit → Angle Sweep...: a way to try one tier's angle over a range, one angle after another, and read how the stone's figures change. Use it when you wonder "what does 40.5° do to this pavilion compared with 41.5°?" and would rather see the whole row of answers at once than type each angle, solve and look.

A sweep gives you three things from the same run: a table with a row for every angle, a chart of the figures against the angle, and the same rows as CSV text for a spreadsheet. When you find an angle you like, one button makes it the tier's real angle.

A sweep never changes your design while it runs. Every angle is tried on a private copy of the design. Only the button Use This Angle (see below) edits the design, and it is one undo step.

21.2 Opening the Dialog

Open a design in the editor, then choose Edit → Angle Sweep.... You can also press Ctrl+K and type sweep to run Angle Sweep... (Chapter 19). The menu item and the palette entry are dim while no design is open, and while the guided walkthrough (Help → Guide: New Design Walkthrough) has the advanced tools locked.

The dialog is a window of its own over the main one. Esc closes it; while a sweep is running, Esc stops the sweep first.

21.3 Choosing the Tier, the Range, and the Step

The top of the dialog is the form.

Some tiers are not in the list:

Angles are plain positive numbers, here as everywhere in the editor. The tier decides which side of the girdle they are on, so a pavilion tier is swept from 36 to 46 and a crown tier from 30 to 40 in the same way. A minus sign typed in front of an end is ignored (-40 means 40). A range has to stay between 0.1° and 89.9° from flat. The rows come flattest first.

A sweep tries at most 200 angles. The design's own angle is always among them, even when it falls between two steps of your grid, so the table always has the design as it is to compare against; it is marked Current.

The line under the fields says what the sweep will do, or what is wrong with the form and how to put it right. For example, "21 angles from 36.00 to 46.00 degrees. This takes about 10 seconds." The time is a rough guess from the size of the design and the number of processor cores; it is a guide, not a promise.

Averaging the Tilt Performance#

The check box Also Average the Tilt Performance (Slower) adds three more figures to every angle: the brilliance, windowing and extinction of the Tilt Performance graph (Chapter 2), averaged over all four tilt axes and all tilts to ±90°. They answer a different question from the quick figures: how the stone behaves as it is tilted, not only straight down on the table. The Tilt Average Range preference (Chapter 17) does not change them: the sweep always rates all tilts to ±90°. They cost about a second and a half of work for every angle, so a long sweep takes much longer with this on, and the time estimate says so.

21.4 Running a Sweep

Press Run Sweep. The dialog shows a progress bar and "3 of 21 angles done". The program keeps working while the sweep runs, and a sweep uses all the processor cores but one, so the rest of the program may feel slower until it is over.

Cancel (the same button while a sweep runs) stops it. The rows already finished stay in the table, and the chart is drawn from them. Closing the dialog also stops a running sweep, and then the rows are dropped.

Each angle is solved and checked on its own. An angle at which the design cannot be cut, for example because a facet vanishes, a relation cannot be kept, or the solver finds no closed stone, still gets its row. The row is marked Not valid, its figures are dashes, and the Notes column says why.

Video tutorial · all videos

Angle Sweep · 1:20

21.5 Reading the Table

The Angle Sweep dialog after a sweep: the table, the chart and the Use This Angle button.
Fig. 21.1 — The Angle Sweep dialog after a sweep: the table, the chart and the Use This Angle button.

Each row is one angle. The columns are:

In every column the best figure is bold and green. Windowing and extinction are best when lowest, the rest when highest. Figures that agree to the two decimals shown are marked together, and when every row agrees nothing is marked. Only valid rows are compared.

Click a row to select it. The chart marks it, and Use This Angle (below) names it.

21.6 Reading the Chart

The chart draws one line per figure over the swept angles, the flattest angle at the left and the steepest at the right. Because the figures have different sizes, each line is scaled to its own lowest and highest value: the top of a line is that figure's highest value in this sweep and its bottom the lowest, so two lines can only be compared by their shapes, not by their heights. Read the legend under the chart ("Brilliance 77.10 to 79.60 %") for the real numbers behind the top and the bottom of each line. A gap in a line is an angle that is not valid.

21.7 Using an Angle

Select a valid row other than the current one. The button at the bottom then names the angle, for example Use 42.00°. Press it and the tier takes that angle, on the same side of the girdle as before. It is one undo step (Chapter 4): Ctrl+Z puts the old angle back. Tiers that follow a relation to the tier follow in the same step. The toast says what was set.

As after any change of an angle, the solved values in the tier table are out of date until the design is solved again (Chapter 5); the Solid view solves it in the background.

The dialog stays open, with the Current mark moved to the angle you used, so you can try another row. Every row stays true: each is the design with only that tier's angle changed.

Use This Angle is refused when the design has changed since the sweep ran (for example after an Undo from the menu, or after another design was opened), because the rows no longer describe the design. Run the sweep again. It is also dim for the current angle, for a row that is not valid, and while a sweep runs.

21.8 Two Tiers: Crown Against Pavilion

Two tiers often depend on each other: the best pavilion angle for one crown angle is not the best for another. The dialog's One Tier | Two Tiers pills, at its top, switch to a mode that sweeps two tiers together and draws the answer as a map. Everything in this chapter above is One Tier; the rest of this section is Two Tiers.

The form. It has two rows, one for each tier, each with its own range:

The two lists hold the same tiers as in One Tier mode, and the same rules apply: angles are positive numbers from flat, a tier that follows a relation cannot be swept, and one tier cannot drive the other. The dialog opens with the tier selected in the tier table across, and with a tier on the other side of the girdle down (for a round brilliant, the main pavilion against the main crown), each at two degrees either side of its angle in steps of half a degree. The design's own pair is always one of the cells. The line under the form says how many angle pairs the grid has and how long it takes.

A grid holds at most 900 angle pairs (30 by 30). Over that, the line says so and Run stays off; widen the step or narrow a range. Try Refine Around This (below) to look closely at a small area.

Tilt averages. The same check box as in One Tier mode, Also Average the Tilt Performance (Slower), adds the tilt figures for every pair, again over all tilts to ±90°. They cost about a second and a half of work per pair, so above 100 pairs the form asks once: "This sweep takes about 3 minutes with Tilt Averages. Run it?" with Run Anyway and Cancel.

The map. Press Run. The map fills with one colored cell per angle pair while the sweep runs; Cancel stops it and keeps the finished cells. Above the map the across angles run left to right and the down angles top to bottom, flattest first, as the table of One Tier mode does.

Reading a pair. Move the pointer over the map, or click a pair to select it. The readout under the map names the two angles ("Selected: Crown Main 35.00°, Pavilion Main 41.00°") with the figures of that pair and their change from the design's own pair, colored as in the Baseline strip (green better, red worse, gray within the noise threshold; Chapter 5), and any notes. With the keyboard, Tab to the map, then the arrow keys choose the neighboring pair and Enter uses it.

Use These Angles makes the selected pair the angles of both tiers, as one change: one Ctrl+Z puts both back. Tiers that follow a relation follow. It is refused when the design has changed since the sweep, and it is dim for the design's own pair and for a pair that gives no stone. Like Use This Angle, it adds a trial to the History tab's Trials view (Chapter 18).

Refine Around This starts a finer grid around the selected pair, with about the same number of pairs, ready to run.

CSV. Copy CSV and Save CSV... write one line per angle pair: the two angles, the figures and the notes.

The Tune view of the Optimize tab (Chapter 8) opens this mode already filled in for two tiers with Pair With....

Two Tiers mode: crown against pavilion on a heat map, the best pair starred.
Fig. 21.2 — Two Tiers mode: crown against pavilion on a heat map, the best pair starred.

Video tutorial · all videos

Sweep Two Tiers · 1:09

21.9 CSV

Copy CSV puts the table on the clipboard, and Save CSV... asks for a file and writes it. The file name starts as the design's title, the tier and "angle sweep". Both buttons are dim until a sweep has rows.

The first line holds the column names: tier, angle_deg, current, valid, then one column per figure (brilliance_pct, windowing_pct, extinction_pct, fire_index, scintillation_pct, yield_pct, and the three tilt_ columns when you asked for them), then problem_facets (how many facets vanish or come out very small at that angle) and notes, and after the notes contrast and the six zone columns aset_red_pct, aset_green_pct, aset_blue_pct, aset_dark_pct, aset_leak_pct and aset_lost_pct (the Zones (ASET-style) shares of Chapter 2; they are in the CSV only, not in the table). The columns after notes come last so that a spreadsheet or script that reads the earlier columns by position keeps working. Numbers are written with a point and four decimals, the angle as a plain positive number, and an angle that is not valid has empty figure cells. A spreadsheet opens it directly; if yours expects a decimal comma, import it as comma-separated text with a point as the decimal mark.

21.10 Limitations