Point containment algorithms for constructive solid geometry with unbounded primitives

IF 3 3区 计算机科学 Q2 COMPUTER SCIENCE, SOFTWARE ENGINEERING Computer-Aided Design Pub Date : 2024-09-11 DOI:10.1016/j.cad.2024.103803
Paul K. Romano , Patrick A. Myers , Seth R. Johnson , Aljaz̆ Kols̆ek , Patrick C. Shriwise
{"title":"Point containment algorithms for constructive solid geometry with unbounded primitives","authors":"Paul K. Romano ,&nbsp;Patrick A. Myers ,&nbsp;Seth R. Johnson ,&nbsp;Aljaz̆ Kols̆ek ,&nbsp;Patrick C. Shriwise","doi":"10.1016/j.cad.2024.103803","DOIUrl":null,"url":null,"abstract":"<div><p>We present several algorithms for evaluating point containment in constructive solid geometry (CSG) trees with unbounded primitives. Three algorithms are presented based on postfix, prefix, and infix notations of the CSG binary expression tree. We show that prefix and infix notations enable short-circuiting logic, which reduces the number of primitives that must be checked during point containment. To evaluate the performance of the algorithms, each algorithm was implemented in the OpenMC Monte Carlo particle transport code, which relies on CSG to represent solid bodies through which subatomic particles travel. Two sets of tests were carried out. First, the execution time to generate a rasterized image of a 2D slice of three CSG models of varying complexity was measured. Use of both prefix and infix notations offered significant speedup over the postfix notation that has traditionally been used in particle transport codes, with infix resulting in a 6<span><math><mo>×</mo></math></span> reduction in execution time relative to postfix for a model of a tokamak fusion device. We then measured the execution time of neutron transport simulations of the same three models using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 5.52<span><math><mo>×</mo></math></span> overall speedup using the infix notation relative to the original postfix notation in OpenMC for the tokamak model.</p></div>","PeriodicalId":50632,"journal":{"name":"Computer-Aided Design","volume":"178 ","pages":"Article 103803"},"PeriodicalIF":3.0000,"publicationDate":"2024-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0010448524001301/pdfft?md5=8fddc42a59401cae480fb7d7905061a3&pid=1-s2.0-S0010448524001301-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer-Aided Design","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010448524001301","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

We present several algorithms for evaluating point containment in constructive solid geometry (CSG) trees with unbounded primitives. Three algorithms are presented based on postfix, prefix, and infix notations of the CSG binary expression tree. We show that prefix and infix notations enable short-circuiting logic, which reduces the number of primitives that must be checked during point containment. To evaluate the performance of the algorithms, each algorithm was implemented in the OpenMC Monte Carlo particle transport code, which relies on CSG to represent solid bodies through which subatomic particles travel. Two sets of tests were carried out. First, the execution time to generate a rasterized image of a 2D slice of three CSG models of varying complexity was measured. Use of both prefix and infix notations offered significant speedup over the postfix notation that has traditionally been used in particle transport codes, with infix resulting in a 6× reduction in execution time relative to postfix for a model of a tokamak fusion device. We then measured the execution time of neutron transport simulations of the same three models using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 5.52× overall speedup using the infix notation relative to the original postfix notation in OpenMC for the tokamak model.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
无界基元构造实体几何的点包含算法
我们提出了几种算法,用于评估具有无界基元的构造实体几何(CSG)树中的点包含情况。我们介绍了基于 CSG 二进制表达式树的后缀、前缀和后缀符号的三种算法。我们表明,前缀和后缀符号可以实现短路逻辑,从而减少在点包含过程中必须检查的基元数量。为了评估这些算法的性能,我们在 OpenMC 蒙特卡洛粒子传输代码中实现了每种算法,该代码依赖 CSG 来表示亚原子粒子穿过的固体。我们进行了两组测试。首先,测量了三个不同复杂度的 CSG 模型生成二维切片光栅化图像的执行时间。与粒子传输代码传统上使用的后缀符号相比,前缀和后缀符号的使用都大大加快了速度,其中后缀符号使托卡马克核聚变装置模型的执行时间比后缀符号缩短了 6 倍。然后,我们使用每种算法测量了同样三个模型的中子输运模拟的执行时间。结果和性能改进显示了与光栅化测试相同的趋势,在托卡马克模型中,使用 infix 符号比 OpenMC 中的原始 postfix 符号总体速度提高了 5.52 倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Computer-Aided Design
Computer-Aided Design 工程技术-计算机:软件工程
CiteScore
5.50
自引率
4.70%
发文量
117
审稿时长
4.2 months
期刊介绍: Computer-Aided Design is a leading international journal that provides academia and industry with key papers on research and developments in the application of computers to design. Computer-Aided Design invites papers reporting new research, as well as novel or particularly significant applications, within a wide range of topics, spanning all stages of design process from concept creation to manufacture and beyond.
期刊最新文献
Extracting fiber paths from the optimized lamination parameters of variable-stiffness laminated shells based on physic-informed neural network A Hybrid Recognition Framework for Highly Interacting Machining Features Based on Primitive Decomposition, Learning and Reconstruction Editorial Board SITF: A Self-Supervised Iterative Training Framework for Point Cloud Denoising Two-Level High-Resolution Structural Topology Optimization with Equilibrated Cells
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1