This article describes a volumetric approach for procedural shape modeling and a new Procedural Shape Modeling Language (PSML) that facilitates the specification of these models. PSML provides programmers the ability to describe shapes in terms of their 3D elements where each element may be a semantic group of 3D objects, e.g., a brick wall, or an indivisible object, e.g., an individual brick. Modeling shapes in this manner facilitates the creation of models that more closely approximate the organization and structure of their real-world counterparts. As such, users may query these models for volumetric information such as the number, position, orientation and volume of 3D elements which cannot be provided using surface based model-building techniques. PSML also provides a number of new language-specific capabilities that allow for a rich variety of context-sensitive behaviors and post-processing functions. These capabilities include an object-oriented approach for model design, methods for querying the model for component-based information and the ability to access model elements and components to perform Boolean operations on the model parts. PSML is open-source and includes freely available tutorial videos, demonstration code and an integrated development environment to support writing PSML programs.
翻译:本条描述程序形状建模的体积法和新的程序形状建模语言(PSML),这有利于这些模型的规格。PSML为程序员提供了按其3D元素描述形状的能力,其中每个元素可能是由3D对象组成的语义组,例如砖墙,或一个不可分割的物体,例如单个砖块。以这种方式建模的形状有利于创建更加接近其真实世界对应方的组织和结构的模型。因此,用户可以对这些模型进行查询,以了解3D元素的数量、位置、方向和体积等量信息,而3D元素不能使用基于表面的建模技术提供。PSML还提供了一系列新的语言特定能力,这些能力可以允许丰富各种环境敏感的行为和后处理功能。这些能力包括一个面向对象的模型设计方法,查询基于组件的信息模型的模型的方法,以及获取模型部件上Boolean的模型要素和组件的能力。PSML是开放源码,包括可自由获取的开发环境的配置视频、演示代码和综合的开发程序。