3D Relief Roughing at exactly 0° raster gouges below the model (1° and 90° are fine)

I’ve found what looks like a bug in MillMage Pro’s 3D Relief Roughing operation. With the raster angle set to exactly 0°, the roughing toolpath cuts into the model, below Depth to Leave, on some features. Changing only the raster angle to 1° or 90° removes the gouges. The finishing pass can’t restore the removed wood, so the finished parts come out with flattened areas.

Setup

MillMage Pro version: [your version, from Help → About]
Operating system: Windows 11
Heightmap: 16-bit grayscale PNG, 1651 × 2707 px, imported at 165.1 × 270.7 mm (0.1 mm per pixel). White is the top surface and black is full depth.
Job: one side of a two-sided chess set carve, Start Depth 0, Final Depth 19.5 mm.
Roughing operation (“Top 3D Relief Roughing”)

Setting Value
Tool 1/4" 2-flute end mill, 25 mm tool length
Clearing pattern Raster, climb
Raster angle 0.00 (problem); 1.00 or 90.00 (correct)
Depth to Leave 0.40 mm
Start / Final Depth 0.00 / 19.50 mm
Depth per pass 3.81 mm
Entry type ZigZagRamp, 22.5° ramp
Stepover 1.59 mm (25%)
Feed / ramp / plunge 50.3 / 25.0 / 27.36 mm/s, 18,000 RPM
Steps to reproduce

Import the attached PNG as a heightmap at 165.1 × 270.7 mm, Final Depth 19.5 mm.
Add 3D Relief Roughing with the settings above, Raster Angle 0.00.
Preview the roughing operation on its own.
Expected: roughing leaves at least 0.40 mm of stock everywhere on the model.

Actual: in the second row, the second piece (a rook) has notches cut down into its crown, and the third piece (a pawn) has its head cut down. After finishing, both come out flattened. Both spots are where a long horizontal flat strip (a holding tab at a constant height) crosses the pieces.

Why I’m confident the heightmap isn’t the cause

The image contains identical copies of each piece. The gouged rook and gouged pawn each have an identical twin in the same row that roughs correctly.
Comparing the twins pixel by pixel, the highest gray in the damaged heads matches the good twins exactly (rook 71.75% vs 71.75%, pawn 53.22% vs 53.22%). GIMP readings agree (71.5% vs 71.6%, 53.0% vs 53.1%).
A finishing pass previewed on its own, from uncut stock, shapes both heads correctly.
Changing nothing but the roughing raster angle from 0.00 to 1.00 removes the gouges. Setting it back to 0.00 brings them back.
My guess is an edge case when raster lines run exactly parallel to the image’s pixel rows, and to the long flat strips in this file. That’s only a guess.

Workaround: a raster angle of 90° (or anything other than exactly 0°).

Attached

The heightmap PNG (Flip_Hound_Set_top.png)


It’s the same file with every row except the affected one removed and a “sample” label added; the affected row is unchanged, pixel for pixel. It reproduces the gouges at 0° and not at 1°.

A screenshot of the roughing operation settings

The roughing preview at 0° (gouges circled)

The roughing preview at 1° or 90° (no gouges)

The final preview showing the flattened rook and pawn
Thanks, Joe Spaulding

Hi Joe! This does indeed look like a bug - we actually had something similar surfaced over the weekend that may be related. Could you email us a copy of your .mmage file to Support@millmagesoftware.com along with a link to this thread so we can triage it properly? We need the file to replicate the issue on our side, this way you don’t have to share it publicly.

Not sure if you’ve tried the new beta that’s been posted, but it contains a fix for this, along with a bunch of other improvements.

Perfect. I will download it now. Thank you