Free2CAD: Parsing Freehand Drawings into CAD Commands
ACM Transactions on Graphics (SIGGRAPH Conference Proceedings), Volume 41, Number 4, page 16 - July 2022
CAD modeling, despite being the industry-standard, remains restricted to usage by skilled practitioners due to two key barriers. First, the user must be able to mentally parse a final shape into a valid sequence of supported CAD commands; and second, the user must be sufficiently conversant with CAD software packages to be able to execute the corresponding CAD commands. As a step towards addressing both these challenges, we present Free2CAD wherein the user can simply sketch the final shape and our system parses the input strokes into a sequence of commands expressed in a simplified CAD language. When executed, these commands reproduce the sketched object. Technically, we cast sketch-based CAD modeling as a sequence-to-sequence translation problem, for which we leverage the powerful Transformers neural network architecture. Given the sequence of pen strokes as input, we introduce the new task of grouping strokes that correspond to individual CAD operations. We combine stroke grouping with geometric fitting of the operation parameters, such that intermediate groups are geometrically corrected before being reused, as context, for subsequent steps in the sequence inference. Although trained on synthetically-generated data, we demonstrate that Free2CAD generalizes to sketches created from real-world CAD models as well as to sketches drawn by novice users.
Images and movies
See also
Project page (paper, video, code, supplemental materials)
Acknowledgements
Adrien Bousseau was supported by ERC Starting Grant D3 (ERC-2016-STG 714221); Changjian and Niloy were supported by European Union's Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 956585, ERC Grant (SmartGeometry 335373), and gifts from Autodesk and Adobe.
BibTex references
@Article{LPBM22, author = "Li, Changjian and Pan, Hao and Bousseau, Adrien and Mitra, Niloy J.", title = "Free2CAD: Parsing Freehand Drawings into CAD Commands", journal = "ACM Transactions on Graphics (SIGGRAPH Conference Proceedings)", number = "4", volume = "41", pages = "16", month = "July", year = "2022", keywords = "Computing methodologies -> Shape modeling, CAD modeling, procedural modeling, Transformer", url = "http://www-sop.inria.fr/reves/Basilic/2022/LPBM22" }