Jiaming Zhu , Yang Lu , Ruicheng Xiong , Cong Chen , Ligang Liu
{"title":"Projection-driven grid-BSP tree for real-time trimming on GPU","authors":"Jiaming Zhu , Yang Lu , Ruicheng Xiong , Cong Chen , Ligang Liu","doi":"10.1016/j.cagd.2025.102451","DOIUrl":null,"url":null,"abstract":"<div><div>In Computer Aided Design (CAD), trimmed non-uniform rational B-spline (NURBS) is the industrial standard to represent the shapes of models. Trimming, the process of removing unnecessary portions of a surface, remains a major performance bottleneck in the recent CAD model rendering methods based on real-time surface tessellation. In this paper, we identify the core reasons for the inefficiency in existing real-time trimming methods, and present a new trimming method that incurs nearly no cost in the state-of-the-art NURBS surface rendering pipeline. Our approach begins with building a projection-driven grid-bsp-tree with a fixed depth of two and leaf nodes containing only one single curve segment, effectively minimizing the overall cost of tree traversal and ray-curve intersections. Additionally, we reduce the cost of trimming tests by approximating trimming curves into poly-lines while keeping the storage consumption at a minimum, where the quality of the approximation is measured by a novel on-surface error metric. Compared with existing works, our method achieves consistent error control for across the entire model using a more reasonable error metric while requiring less memory. Compared to the previous kd-tree-based method, our method achieves a 70% speedup, reducing the trimming process to just 5% of the total rendering time, effectively eliminating it as a major performance bottleneck. Due to its superior performance, our method provides significant advantages for rendering large-scale CAD models.</div></div>","PeriodicalId":55226,"journal":{"name":"Computer Aided Geometric Design","volume":"119 ","pages":"Article 102451"},"PeriodicalIF":1.3000,"publicationDate":"2025-04-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Aided Geometric Design","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0167839625000408","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
In Computer Aided Design (CAD), trimmed non-uniform rational B-spline (NURBS) is the industrial standard to represent the shapes of models. Trimming, the process of removing unnecessary portions of a surface, remains a major performance bottleneck in the recent CAD model rendering methods based on real-time surface tessellation. In this paper, we identify the core reasons for the inefficiency in existing real-time trimming methods, and present a new trimming method that incurs nearly no cost in the state-of-the-art NURBS surface rendering pipeline. Our approach begins with building a projection-driven grid-bsp-tree with a fixed depth of two and leaf nodes containing only one single curve segment, effectively minimizing the overall cost of tree traversal and ray-curve intersections. Additionally, we reduce the cost of trimming tests by approximating trimming curves into poly-lines while keeping the storage consumption at a minimum, where the quality of the approximation is measured by a novel on-surface error metric. Compared with existing works, our method achieves consistent error control for across the entire model using a more reasonable error metric while requiring less memory. Compared to the previous kd-tree-based method, our method achieves a 70% speedup, reducing the trimming process to just 5% of the total rendering time, effectively eliminating it as a major performance bottleneck. Due to its superior performance, our method provides significant advantages for rendering large-scale CAD models.
期刊介绍:
The journal Computer Aided Geometric Design is for researchers, scholars, and software developers dealing with mathematical and computational methods for the description of geometric objects as they arise in areas ranging from CAD/CAM to robotics and scientific visualization. The journal publishes original research papers, survey papers and with quick editorial decisions short communications of at most 3 pages. The primary objects of interest are curves, surfaces, and volumes such as splines (NURBS), meshes, subdivision surfaces as well as algorithms to generate, analyze, and manipulate them. This journal will report on new developments in CAGD and its applications, including but not restricted to the following:
-Mathematical and Geometric Foundations-
Curve, Surface, and Volume generation-
CAGD applications in Numerical Analysis, Computational Geometry, Computer Graphics, or Computer Vision-
Industrial, medical, and scientific applications.
The aim is to collect and disseminate information on computer aided design in one journal. To provide the user community with methods and algorithms for representing curves and surfaces. To illustrate computer aided geometric design by means of interesting applications. To combine curve and surface methods with computer graphics. To explain scientific phenomena by means of computer graphics. To concentrate on the interaction between theory and application. To expose unsolved problems of the practice. To develop new methods in computer aided geometry.