Story Details

  • Teaching LLMs how to solid model

    Posted: 2025-04-23 18:13:43

    The author explores the potential of Large Language Models (LLMs) to generate solid models, focusing on OpenSCAD as a text-based target language. They detail an approach using few-shot prompting with GPT-4, providing example OpenSCAD code and descriptive prompts to generate desired 3D shapes. While the results are promising, showing GPT-4 can grasp basic geometric concepts and generate functional code, limitations exist in handling complex shapes and ensuring robust, error-free outputs. Further research explores refining prompts, leveraging external libraries, and integrating visual feedback to improve accuracy and expand the capabilities of LLMs for generative CAD design.

    Summary of Comments ( 95 )
    https://news.ycombinator.com/item?id=43774990

    HN commenters generally expressed skepticism about the approach outlined in the article, questioning the value of generating OpenSCAD code compared to directly generating mesh data. Several pointed out the limitations of OpenSCAD itself, such as difficulty debugging complex models and performance issues. A common theme was that existing parametric modeling software and techniques are already sophisticated and well-integrated into CAD workflows, making the LLM approach seem redundant or less efficient. Some suggested exploring alternative methods like generating NURBS or other representations more suitable for downstream tasks. A few commenters offered constructive criticism, suggesting improvements like using a more robust language than OpenSCAD or focusing on specific niches where LLMs might offer an advantage. Overall, the sentiment was one of cautious interest, but with a strong emphasis on the need to demonstrate practical benefits over existing solutions.