Once Origami traced out all the paths in the dieline, but before it starts folding the shape, it converts the paths into the 3D mesh of flat, unfolded dieline.
Origami uses quite a smart algorithm to do so and in most cases everything works just fine. However, there is a chance that something goes wrong and Origami will not be able to convert paths to a 3D mesh. That’s when you get the “triangulation failed” error.
A Possible Reason
Once of the possible scenarios looks like this:
This is a folding engine problem which is yet to be fixed, and you can get a better understanding if you zoom it closer:
The red line is an edge generated while triangulating the dieline polygons. Instead of stopping at the crease line it goes further down to the curved cut below. The problem is caused by converting the curves into segmented lines performed by Origami. Origami converts curves to lines and then tries to merge the points that are way too close to each other. The curved cut makes many points and Origami moves some of them closer to avoid small gaps. This ends up with misaligned elements and triangulation errors.
We are yet to fix the problem, meanwhile the solution is to make sure the curved cut goes away from the crease line as soon as possible, so you can do something like this:
for all the locations highlighted by Origami. This usually happens to very small elements, where the exact shape of the curve doesn’t really matter. This should do the job until we fix the problem on our side.
If The Above Doesn’t Help
Please contact us directly. As said above, this is most likely the problem of the folding engine and we’d like to see the dieline that caused it. Please share your Illustrator project or saved Origami scene, so we can reproduce it here and suggest the further steps.
Want More Hints?
- Empty Layout — why there is no dieline visible?
- Path Is Not Closed — the dieline needs a solid, continuous outline path;
- Intersecting Holes — holes must not overlap;
- Overlapping Lines — cut and crease lines must not overlap, as well;
- Outside Hole — all holes must be inside the outline path;
- Invalid Crease — crease lines have limitations;
- Impossible Shape — some shapes simply don’t exist;
- Misaligned Elements — ends must meet, perfectly;
- Elements Are Too Small — keep dieline paths simple;
- Interesting Curved Cuts — it might not be easy;
- Triangulation Failed — Origami fails to make a 3D mesh of a dieline;
- Z–Fighting — what to do with overlapping polygons.
Adobe and Adobe Illustrator are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.