[Paper Review] Pointer-CAD: Unifying B-Rep and Command Sequences via Pointer-based Edges & Faces Selection
Pointer-CAD introduces a pointer-based command sequence that directly references B-rep edges and faces, enabling complex edits (e.g., chamfer, fillet) and reducing quantization errors, with an LLM-based, multi-step CAD generation framework conditioned on prior B-rep geometry.
Constructing computer-aided design (CAD) models is labor-intensive but essential for engineering and manufacturing. Recent advances in Large Language Models (LLMs) have inspired the LLM-based CAD generation by representing CAD as command sequences. But these methods struggle in practical scenarios because command sequence representation does not support entity selection (e.g. faces or edges), limiting its ability to support complex editing operations such as chamfer or fillet. Further, the discretization of a continuous variable during sketch and extrude operations may result in topological errors. To address these limitations, we present Pointer-CAD, a novel LLM-based CAD generation framework that leverages a pointer-based command sequence representation to explicitly incorporate the geometric information of B-rep models into sequential modeling. In particular, Pointer-CAD decomposes CAD model generation into steps, conditioning the generation of each subsequent step on both the textual description and the B-rep generated from previous steps. Whenever an operation requires the selection of a specific geometric entity, the LLM predicts a Pointer that selects the most feature-consistent candidate from the available set. Such a selection operation also reduces the quantization error in the command sequence-based representation. To support the training of Pointer-CAD, we develop a data annotation pipeline that produces expert-level natural language descriptions and apply it to build a dataset of approximately 575K CAD models. Extensive experimental results demonstrate that Pointer-CAD effectively supports the generation of complex geometric structures and reduces segmentation error to an extremely low level, achieving a significant improvement over prior command sequence methods, thereby significantly mitigating the topological inaccuracies introduced by quantization error.
Motivation & Objective
- Motivate how command-sequence CAD generation struggles with entity selection and topological errors in prior work.
- Propose a pointer-based representation to explicitly reference B-rep elements during generation.
- Develop Pointer-CAD as a multi-step, text-to-CAD framework conditioned on accumulated B-rep geometry.
- Build an expert-annotated dataset (≈575K models) to train and evaluate the approach.
- Demonstrate improvements in geometric fidelity and topology over prior command-sequence methods.
Proposed method
- Introduce three token types in the pointer-based representation: Label Tokens, Value Tokens, and Pointers to B-rep elements.
- Decompose CAD model construction into sequential steps (sketch-extrude, chamfer, fillet) conditioned on text and prior B-rep.
- Construct a face-adjacency graph from B-rep and use a Graph Neural Network to propagate local features for LLM input.
- Use a Qwen2.5-based LLM with LoRA fine-tuning to predict per-step tokens and pointers, followed by translation to executable CAD commands.
- Implement a pointer mechanism that selects target faces/edges by cosine similarity between predicted and candidate embeddings.
- Train with a joint objective combining Label/Value Token prediction (cross-entropy with label smoothing) and Pointer prediction (contrastive-like loss).

Experimental results
Research questions
- RQ1Can a pointer-based command representation enable explicit entity selection for complex CAD edits?
- RQ2Does conditioning on the evolving B-rep in a multi-step generation framework improve topological fidelity and geometric accuracy?
- RQ3How does integrating a graph-based B-rep encoding with an LLM affect command-sequence quality and downstream CAD validity?
- RQ4What gains in chamfer/fillet support and overall topology quality emerge compared with traditional command sequences?
- RQ5How does the approach perform against existing text-to-CAD baselines and general-purpose LLMs when generating executable CAD scripts?
Key findings
- Pointer-CAD improves command accuracy and geometric fidelity over prior command-sequence methods.
- The pointer mechanism enables explicit selection of faces/edges, supporting chamfer and fillet operations.
- A multi-step generation process conditioned on accumulated B-rep reduces quantization and topological errors.
- GNN-augmented B-rep representations substantially boost arc-related geometry reconstruction.
- The framework achieves superior topology quality and watertightness metrics compared with baselines.
- Experiments show Pointer-CAD performs well with smaller LLM backbones relative to some baselines.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.