




技术领域technical field
本申请涉及建筑信息技术领域,尤其涉及一种建筑信息模型BIM的加载方法及装置。The present application relates to the technical field of building information, and in particular, to a method and device for loading a building information model (BIM).
背景技术Background technique
建筑信息模型(building information modeling,BIM)为近年来建筑信息化领域核心的理念之一,其数据的基础即为建筑的三维信息模型。相比于传统的二维设计、绘图,BIM技术全面利用三维图形技术,以建筑物(建筑构件、建筑整体)的三维图形为载体进一步挂接各种建筑信息参数,形成BIM模型,然后进行建筑物、甚至构件的全生命周期管理。Building information modeling (BIM) is one of the core concepts in the field of building informatization in recent years, and the basis of its data is the three-dimensional information model of the building. Compared with traditional two-dimensional design and drawing, BIM technology makes full use of three-dimensional graphics technology, and uses the three-dimensional graphics of buildings (building components, building as a whole) as a carrier to further connect various building information parameters to form a BIM model, and then carry out construction. Full life cycle management of objects and even components.
针对三维信息模型的显示,目前的技术方案都是将BIM模型的每个构件单独作为一个图元进行显示,然后按照场景树进行组织,在加载该BIM模型时,对于每个图元独立进行渲染。当BIM模型中的构件数量较多时,加载该BIM模型时,渲染效果差,并且由于该BIM模型文件体积较大,加载速度较慢,BIM模型的渲染效率较低。For the display of the 3D information model, the current technical solution is to display each component of the BIM model as a single element, and then organize it according to the scene tree. When the BIM model is loaded, each element is independently rendered. . When the number of components in the BIM model is large, the rendering effect is poor when the BIM model is loaded, and because the BIM model file is large in size, the loading speed is slow, and the rendering efficiency of the BIM model is low.
发明内容SUMMARY OF THE INVENTION
本申请提供一种建筑信息模型BIM的加载方法及装置,能够提高BIM模型的渲染效率。The present application provides a method and device for loading a building information model BIM, which can improve the rendering efficiency of the BIM model.
本申请第一方面提供一种建筑信息模型BIM的加载方法,包括:A first aspect of the present application provides a method for loading a building information model (BIM), including:
获取待加载BIM模型;Get the BIM model to be loaded;
确定所述待加载BIM模型中相同材质的图元;Determine the primitives of the same material in the BIM model to be loaded;
将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型;Merging the primitives of the same material in the BIM model to be loaded to obtain the target BIM model;
根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值;According to the distance from the scene center of the target BIM model to the viewpoint, at least one BIM model is generated, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold ;
当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型;When receiving a front-end loading request carrying a zoom distance, determining a first BIM model in the at least one BIM model according to the zoom distance;
将所述第一BIM模型加载到前端显示。The first BIM model is loaded into the front-end display.
结合第一方面,在第一方面的一种可能的实施方式中,在所述根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型之后,所述方法还包括:With reference to the first aspect, in a possible implementation manner of the first aspect, after generating at least one BIM model according to the distance from the scene center of the target BIM model to the viewpoint, the method further includes:
将所述至少一个BIM模型中每个BIM模型的文件格式封装成web图形库的二进制格式。The file format of each BIM model in the at least one BIM model is encapsulated into a binary format of a web graphics library.
结合第一方面,在第一方面的一种可能的实施方式中,所述根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,包括:With reference to the first aspect, in a possible implementation manner of the first aspect, generating at least one BIM model according to the distance from the scene center of the target BIM model to the viewpoint includes:
确定所述目标BIM模型的场景中心;determining the scene center of the target BIM model;
传入至少一个视点;Pass in at least one viewpoint;
确定所述目标BIM模型的场景中心到所述至少一个视点中每个视点的距离;determining the distance from the scene center of the target BIM model to each of the at least one viewpoint;
将所述目标BIM模型的场景中心到所述每个视点的距离与预设的至少一个距离阈值进行对比,以生成所述至少一个BIM模型。The distance from the scene center of the target BIM model to each viewpoint is compared with at least one preset distance threshold to generate the at least one BIM model.
结合第一方面,在第一方面的一种可能的实施方式中,在所述获取待加载BIM模型之后,所述方法还包括:With reference to the first aspect, in a possible implementation manner of the first aspect, after the acquiring the BIM model to be loaded, the method further includes:
获取所述待加载BIM模型的规模;obtaining the scale of the BIM model to be loaded;
当所述待加载BIM模型的规模到达预设规模阈值时,将所述待加载BIM模型划分为背景辅助模型和业务交互模型,所述背景辅助模型用于渲染效果的辅助,所述业务交互模型用于与业务产生交互;When the scale of the BIM model to be loaded reaches a preset scale threshold, the BIM model to be loaded is divided into a background auxiliary model and a business interaction model, where the background auxiliary model is used to assist rendering effects, and the business interaction model Used to interact with the business;
分别对所述背景辅助模型和所述业务交互模型进行加载。The background assistant model and the business interaction model are loaded respectively.
结合第一方面,在第一方面的一种可能的实施方式中,所述分别对所述背景辅助模型和所述业务交互模型进行加载包括:With reference to the first aspect, in a possible implementation manner of the first aspect, the loading the context assistant model and the business interaction model respectively includes:
将所述背景辅助模型进行效果烘焙,以烘焙贴图的方式将所述背景辅助模型加载到前端显示;Perform effect baking on the background auxiliary model, and load the background auxiliary model to the front-end display in a way of baking a map;
对所述业务交互模型进行轻量化处理,将轻量化后的所述业务交互模型加载到前端显示。Lightweight processing is performed on the business interaction model, and the lightened business interaction model is loaded into the front-end display.
本申请第二方面提供了一种建筑信息模型BIM的加载装置,包括:A second aspect of the present application provides a device for loading a building information model (BIM), including:
获取模块,用于获取待加载BIM模型;The acquisition module is used to acquire the BIM model to be loaded;
第一确定模块,用于确定所述待加载BIM模型中相同材质的图元;a first determination module, configured to determine the primitives of the same material in the BIM model to be loaded;
合并模块,用于将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型;a merging module, used for merging the primitives of the same material in the BIM model to be loaded to obtain the target BIM model;
生成模块,用于根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值;The generating module is configured to generate at least one BIM model according to the distance from the scene center of the target BIM model to the viewpoint, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is different. greater than the preset size threshold;
第二确定模块,用于当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型;a second determining module, configured to determine a first BIM model in the at least one BIM model according to the zooming distance when a front-end loading request carrying the zooming distance is received;
第一加载模块,用于将所述第一BIM模型加载到前端显示。The first loading module is used for loading the first BIM model to the front-end display.
结合第二方面,在第二方面的一种可能的实施方式中,所述装置还包括封装模块,所述封装模块用于:With reference to the second aspect, in a possible implementation manner of the second aspect, the device further includes an encapsulation module, and the encapsulation module is used for:
将所述至少一个BIM模型中每个BIM模型的文件格式封装成web图形库的二进制格式。The file format of each BIM model in the at least one BIM model is encapsulated into a binary format of a web graphics library.
结合第二方面,在第二方面的一种可能的实施方式中,所述生成模块具体用于:With reference to the second aspect, in a possible implementation manner of the second aspect, the generating module is specifically configured to:
确定所述目标BIM模型的场景中心;determining the scene center of the target BIM model;
传入至少一个视点;Pass in at least one viewpoint;
确定所述目标BIM模型的场景中心到所述至少一个视点中每个视点的距离;determining the distance from the scene center of the target BIM model to each of the at least one viewpoint;
将所述目标BIM模型的场景中心到所述每个视点的距离与预设的至少一个距离阈值进行对比,以生成所述至少一个BIM模型。The distance from the scene center of the target BIM model to each viewpoint is compared with at least one preset distance threshold to generate the at least one BIM model.
结合第二方面,在第二方面的一种可能的实施方式中,所述装置还包括第二加载模块,所述第二加载模块用于:With reference to the second aspect, in a possible implementation manner of the second aspect, the apparatus further includes a second loading module, and the second loading module is configured to:
获取所述待加载BIM模型的规模;obtaining the scale of the BIM model to be loaded;
当所述待加载BIM模型的规模到达预设规模阈值时,将所述待加载BIM模型划分为背景辅助模型和业务交互模型,所述背景辅助模型用于渲染效果的辅助,所述业务交互模型用于与业务产生交互;When the scale of the BIM model to be loaded reaches a preset scale threshold, the BIM model to be loaded is divided into a background auxiliary model and a business interaction model, where the background auxiliary model is used to assist rendering effects, and the business interaction model Used to interact with the business;
分别对所述背景辅助模型和所述业务交互模型进行加载。The background assistant model and the business interaction model are loaded respectively.
结合第二方面,在第二方面的一种可能的实施方式中,所述第二加载模块具体用于:With reference to the second aspect, in a possible implementation manner of the second aspect, the second loading module is specifically used for:
将所述背景辅助模型进行效果烘焙,以烘焙贴图的方式将所述背景辅助模型加载到前端显示;Perform effect baking on the background auxiliary model, and load the background auxiliary model to the front-end display in a way of baking a map;
对所述业务交互模型进行轻量化处理,将轻量化后的所述业务交互模型加载到前端显示。Lightweight processing is performed on the business interaction model, and the lightened business interaction model is loaded into the front-end display.
可以看出,通过本申请提出的建筑信息模型BIM的加载方法及装置,首先,获取待加载BIM模型,其次,确定所述待加载BIM模型中相同材质的图元,其次,将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型,其次,根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值,其次,当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型,最后,将所述第一BIM模型加载到前端显示。这样,当需要加载BIM模型时,首先将BIM模型中相同材质的图元进行合并,这样当BIM模型中构件数量较多时,不需要单独对每个图元进行渲染,可以提高渲染效率。并且,根据BIM模型的场景中心到视点的距离生成不同精度的模型,然后根据用户选择的缩放距离加载对应精度的模型,这样也可以针对不同精度进行模型渲染,提高了BIM模型的渲染效率。It can be seen that, through the method and device for loading a building information model (BIM) proposed in this application, first, the BIM model to be loaded is obtained, secondly, the primitives of the same material in the BIM model to be loaded are determined, and secondly, the to-be-loaded BIM model is determined. The primitives of the same material in the BIM model are merged to obtain the target BIM model, and secondly, according to the distance from the scene center of the target BIM model to the viewpoint, at least one BIM model is generated, and the precision of the at least one BIM model is different, and The scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold, and secondly, when a front-end loading request carrying a zoom distance is received, determine the first one of the at least one BIM model according to the zoom distance. BIM model, and finally, the first BIM model is loaded into the front-end display. In this way, when the BIM model needs to be loaded, the primitives of the same material in the BIM model are first merged, so that when there are a large number of components in the BIM model, each primitive does not need to be rendered separately, which can improve rendering efficiency. In addition, models with different precisions are generated according to the distance from the scene center of the BIM model to the viewpoint, and then models with corresponding precisions are loaded according to the zoom distance selected by the user, so that models can also be rendered for different precisions, which improves the rendering efficiency of the BIM model.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的一种建筑信息模型BIM的加载方法的流程示意图;1 is a schematic flowchart of a method for loading a building information model (BIM) according to an embodiment of the present application;
图2为本申请实施例提供的另一种建筑信息模型BIM的加载方法的流程示意图;2 is a schematic flowchart of another method for loading a building information model BIM provided by an embodiment of the present application;
图3为本申请实施例提供的另一种建筑信息模型BIM的加载方法的流程示意图;3 is a schematic flowchart of another method for loading a building information model BIM provided by an embodiment of the present application;
图4为本申请实施例提供的一种建筑信息模型BIM的加载装置的示意图;4 is a schematic diagram of a device for loading a building information model (BIM) provided by an embodiment of the present application;
图5为本申请的实施例涉及的硬件运行环境的电子设备结构示意图。FIG. 5 is a schematic structural diagram of an electronic device of a hardware operating environment involved in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供的建筑信息模型BIM的加载方法及装置,能够提高BIM模型的渲染效率。The method and device for loading a building information model BIM provided by the embodiments of the present application can improve the rendering efficiency of the BIM model.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
为了理解本申请,首先对本申请涉及的概念进行解释。In order to understand the present application, the concepts involved in the present application are first explained.
建筑信息模型(building information modeling,BIM)技术是一种应用于工程设计、建造、管理的数据化工具,BIM的核心是通过建立虚拟的建筑工程三维模型,利用数字化技术,为这个模型提供完整的、与实际情况一致的建筑工程信息库。该信息库不仅包含描述建筑物构件的几何信息、专业属性及状态信息,还包含了非构件对象(如空间、运动行为)的状态信息。借助这个包含建筑工程信息的三维模型,大大提高了建筑工程的信息集成化程度,从而为建筑工程项目的相关利益方提供了一个工程信息交换和共享的平台。Building information modeling (BIM) technology is a digital tool used in engineering design, construction, and management. The core of BIM is to create a virtual three-dimensional model of construction engineering and use digital technology to provide a complete model for this model. , Consistent with the actual situation of construction engineering information database. The information base not only contains the geometric information, professional attributes and state information describing building components, but also contains the state information of non-component objects (such as space and motion behavior). With the help of this three-dimensional model containing construction engineering information, the information integration degree of construction engineering is greatly improved, thereby providing a platform for the exchange and sharing of engineering information for the stakeholders of the construction engineering project.
对于三维图形渲染系统来说,所要渲染的对象一般称为图元,而图元的集合称为场景。在构造场景的同时,一般也会给场景图元建立空间索引,常见的空间索引有八叉树等。空间索引会依据某种规则把场景图元所占的三维空间范围划分成相应的空间索引单元,然后将场景图元依次填入其空间位置相应的空间索引单元中,其后续的遍历即依据空间索引的划分特点和遍历规则来进行,从而加快场景图元查询访问的速度。For a three-dimensional graphics rendering system, the objects to be rendered are generally called primitives, and the collection of primitives is called a scene. When constructing a scene, a spatial index is generally established for the scene primitives. Common spatial indexes include octrees. The spatial index divides the three-dimensional space range occupied by the scene primitives into corresponding spatial index units according to certain rules, and then fills the scene primitives into the spatial index units corresponding to their spatial positions in turn, and the subsequent traversal is based on the space. The index division characteristics and traversal rules are used to speed up the query and access of scene primitives.
效果烘焙:针对场景图元规模比较大的建筑场景,在某些使用情境下,还有对高级渲染效果的要求,但是这些效果的加入会严重拖慢渲染效率,甚至无法使用。为了规避这一问题,在第一次渲染场景的时候,花费比较多的时间进行效果烘焙,采用耗时但是效果好的渲染方式将场景渲染完毕,并将结果渲染到图元的表面纹理(图片),如光照效果、阴影效果等等。如果场景没有发生变更,在第二次渲染场景的时候,就无需再次渲染这些效果,而是直接渲染烘焙之后的纹理即可,类似于照片替代实景。Effect baking: For architectural scenes with large scene primitives, in some usage scenarios, there are requirements for advanced rendering effects, but the addition of these effects will seriously slow down the rendering efficiency, or even unusable. In order to avoid this problem, when rendering the scene for the first time, it takes a lot of time to bake the effect, and the scene is rendered in a time-consuming but effective rendering method, and the result is rendered to the surface texture of the primitive (picture ), such as lighting effects, shadow effects, etc. If the scene has not changed, when the scene is rendered for the second time, there is no need to render these effects again, but the baked texture can be directly rendered, similar to a photo instead of a real scene.
下面对本申请实施例的技术特征进行详细说明。The technical features of the embodiments of the present application will be described in detail below.
首先参见图1,图1为本申请实施例提供的一种建筑信息模型BIM的加载方法的流程示意图。其中,如图1所示,本申请实施例提供的一种建筑信息模型BIM的加载方法可以包括:Referring first to FIG. 1 , FIG. 1 is a schematic flowchart of a method for loading a building information model BIM according to an embodiment of the present application. Wherein, as shown in FIG. 1 , a method for loading a building information model (BIM) provided by an embodiment of the present application may include:
101、获取待加载BIM模型。101. Obtain the BIM model to be loaded.
当需要在前端加载显示BIM模型时,后台先获取待加载BIM模型。具体的,用户可以在前端的BIM模型选择界面上选择待加载BIM模型,后台根据用户选择获取该待加载BIM模型。When the BIM model needs to be loaded and displayed on the front end, the BIM model to be loaded is obtained first in the background. Specifically, the user can select the BIM model to be loaded on the front-end BIM model selection interface, and the background obtains the BIM model to be loaded according to the user's selection.
102、确定所述待加载BIM模型中相同材质的图元。102. Determine the primitives of the same material in the BIM model to be loaded.
具体的,建筑物构件在BIM模型中通过图元进行显示。待加载BIM模型中包括了多个建筑物构件,以及包括了描述该多个建筑物构件的几何信息、专业属性及状态信息,还包含了非构件对象(如空间、运动行为)的状态信息。也就是说,后台获取该待加载BIM模型后,也可以获取建筑物构件的材质信息,然后确定该待加载BIM模型中相同材质的建筑物构件,也即确定了相同材质的图元。Specifically, building components are displayed in the BIM model through primitives. The BIM model to be loaded includes multiple building components, as well as geometric information, professional attributes and state information describing the multiple building components, as well as state information of non-component objects (such as space and motion behavior). That is to say, after acquiring the BIM model to be loaded in the background, the material information of the building components can also be obtained, and then the building components of the same material in the BIM model to be loaded are determined, that is, the primitives of the same material are determined.
103、将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型。103. Combine the primitives of the same material in the to-be-loaded BIM model to obtain a target BIM model.
确定了该待加载BIM模型中相同材质的图元后,将相同材质的图元进行合并,得到目标BIM模型。这样,该目标BIM模型中的图元数量相较于原始的待加载BIM模型而言较少。After the elements of the same material in the BIM model to be loaded are determined, the elements of the same material are merged to obtain the target BIM model. In this way, the number of primitives in the target BIM model is less than the original BIM model to be loaded.
104、根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型。104. Generate at least one BIM model according to the distance from the scene center of the target BIM model to the viewpoint.
具体的,该至少一个BIM模型的精度不同,并且该至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值。对于不同精度的BIM模型,在加载时,渲染速度也不同。Specifically, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold. For BIM models of different precisions, when loading, the rendering speed is also different.
可选的,根据目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型的方法可以是:确定所述目标BIM模型的场景中心;传入至少一个视点;确定所述目标BIM模型的场景中心到所述至少一个视点中每个视点的距离;将所述目标BIM模型的场景中心到所述每个视点的距离与预设的至少一个距离阈值进行对比,以生成所述至少一个BIM模型。Optionally, according to the distance from the scene center of the target BIM model to the viewpoint, the method for generating at least one BIM model may be: determining the scene center of the target BIM model; inputting at least one viewpoint; determining the scene of the target BIM model the distance from the center to each of the at least one viewpoint; comparing the distance from the scene center of the target BIM model to each viewpoint with a preset at least one distance threshold to generate the at least one BIM model .
具体的,首先确定目标BIM模型的场景中心,然后传入至少一个视点,然后确定场景中心到每个视点的距离。在渲染的时候根据场景中心到视点的距离远近来动态的选择相应层次细节的渲染数据,比如距离较近的时候,采用高精细度的渲染数据,保持视觉的真实度。而当距离较远的时候,采用低精细度的渲染数据,节省渲染开销,提高渲染效率。进一步的,如果距离非常远,一些非常小的场景图元可以判定为不可见,直接跳过。采用距离阈值进行对比,可以对场景中心到视点的距离进行判断,当场景中心到视点的距离满足一个距离阈值时,可以确定与该距离阈值对应的精度,从而生成该精度的BIM模型。Specifically, the scene center of the target BIM model is first determined, then at least one viewpoint is passed in, and then the distance from the scene center to each viewpoint is determined. During rendering, the rendering data of the corresponding level of detail is dynamically selected according to the distance from the center of the scene to the viewpoint. For example, when the distance is relatively short, high-precision rendering data is used to maintain the visual authenticity. When the distance is long, low-precision rendering data is used to save rendering overhead and improve rendering efficiency. Further, if the distance is very far, some very small scene primitives can be judged to be invisible and skipped directly. Using the distance threshold for comparison, the distance from the scene center to the viewpoint can be judged. When the distance from the scene center to the viewpoint meets a distance threshold, the accuracy corresponding to the distance threshold can be determined, thereby generating a BIM model with this accuracy.
可选的,在生成至少一个BIM模型之后,还可以将该至少一个BIM模型中每个BIM模型的文件格式封装成web图形库的二进制格式。这样,在将BIM模型加载到web图形库时,可以直接加载,而不用转换格式,这样可以提高渲染效率。Optionally, after the at least one BIM model is generated, the file format of each BIM model in the at least one BIM model may also be encapsulated into a binary format of a web graphics library. In this way, when loading the BIM model into the web graphics library, it can be directly loaded without converting the format, which can improve rendering efficiency.
105、当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型。105. When a front-end loading request carrying a zoom distance is received, determine a first BIM model in the at least one BIM model according to the zoom distance.
具体的,用户在前端显示界面上选择缩放距离,然后提交前端加载请求,该前端加载请求携带该缩放距离。由于该至少一个BIM模型中每个BIM模型的精度与距离对应,后台可以根据该缩放距离确定对应的精度,从而确定该至少一个BIM模型中的第一BIM模型。Specifically, the user selects the zoom distance on the front-end display interface, and then submits a front-end loading request, where the front-end loading request carries the zoom distance. Since the precision of each BIM model in the at least one BIM model corresponds to the distance, the background may determine the corresponding precision according to the zoomed distance, thereby determining the first BIM model in the at least one BIM model.
106、将所述第一BIM模型加载到前端显示。106. Load the first BIM model to the front-end display.
具体的,确定第一BIM模型后,将该第一BIM模型加载到前端显示。在显示时,根据用户选择的缩放距离,前端显示的模型的渲染效果不同,比如缩放距离较近的时候,显示时采用高精细度的渲染数据,这样用户视觉上的真实度较高。而当缩放距离较远的时候,显示时采用低精细度的渲染数据,这样可以节省渲染开销,提高渲染效率,但是渲染效果相较于高精细度的渲染效果差。进一步的,如果缩放距离非常远,那么一些非常小的场景图元对用户而言不可见。Specifically, after the first BIM model is determined, the first BIM model is loaded into the front-end display. During display, according to the zoom distance selected by the user, the rendering effect of the model displayed on the front end is different. For example, when the zoom distance is short, high-precision rendering data is used for display, so that the user's visual reality is higher. When the zoom distance is long, low-precision rendering data is used for display, which can save rendering overhead and improve rendering efficiency, but the rendering effect is worse than that of high-precision rendering. Further, if the zoom distance is very far, then some very small scene primitives are not visible to the user.
可选的,在获取待加载BIM模型后,后台获取该待加载BIM模型的规模。当该待加载BIM模型的规模到达预设规模阈值时,将该待加载BIM模型划分为背景辅助模型和业务交互模型,其中,该背景辅助模型用于渲染效果的辅助,该业务交互模型用于与业务产生交互;分别对该背景辅助模型和该业务交互模型进行加载。Optionally, after obtaining the BIM model to be loaded, the background obtains the scale of the BIM model to be loaded. When the scale of the BIM model to be loaded reaches a preset scale threshold, the BIM model to be loaded is divided into a background auxiliary model and a business interaction model, wherein the background auxiliary model is used for rendering effect assistance, and the business interaction model is used for Interact with the business; load the background auxiliary model and the business interaction model respectively.
具体的,当待加载BIM模型的规模较大时,因为该待加载模型包括的图元较多,并且细节较多,所以将该待加载BIM模型加载到前端进行显示时,加载速度较慢,渲染效率较低。所以可以将该待加载BIM模型进行划分,可以划分为背景辅助模型和业务交互模型,其中,背景辅助模型用于渲染效果的辅助,不参与业务的交互,而业务交互模型用于与业务产生交互。Specifically, when the scale of the to-be-loaded BIM model is large, because the to-be-loaded model includes more primitives and more details, when the to-be-loaded BIM model is loaded to the front end for display, the loading speed is slow. Rendering efficiency is low. Therefore, the BIM model to be loaded can be divided into a background auxiliary model and a business interaction model. The background auxiliary model is used to assist the rendering effect and does not participate in the interaction of the business, while the business interaction model is used to interact with the business. .
可选的,分别对该背景辅助模型和该业务交互模型进行加载的方法可以是:将该背景辅助模型进行效果烘焙,以烘焙贴图的方式将该背景辅助模型加载到前端显示;对该业务交互模型进行轻量化处理,将轻量化后的该业务交互模型加载到前端显示。在对背景辅助模型进行加载时,可以以烘焙贴图的方式进行显示,减少了大量细节的加载,从而提高了渲染效率。在对业务交互模型进行加载时,对该业务交互模型进行轻量化处理,从而提高了渲染效率。也就是说,分别对这两种模型采用不同方式进行加载,可以避免加载BIM模型中包括的所有细节,提升加载速度,提高了渲染效率。Optionally, the method for loading the background auxiliary model and the business interaction model respectively may be: effect baking of the background auxiliary model, and loading the background auxiliary model to the front-end display in a way of baking a texture; The model is lightweight, and the lightweight business interaction model is loaded into the front-end display. When loading the background auxiliary model, it can be displayed in the form of baked maps, which reduces the loading of a large number of details, thereby improving the rendering efficiency. When the business interaction model is loaded, the business interaction model is light-weighted, thereby improving rendering efficiency. That is to say, loading the two models in different ways can avoid loading all the details included in the BIM model, improve the loading speed, and improve the rendering efficiency.
可以看出,通过本申请实施例提出的建筑信息模型BIM的加载方法,首先,获取待加载BIM模型,其次,确定所述待加载BIM模型中相同材质的图元,其次,将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型,其次,根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值,其次,当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型,最后,将所述第一BIM模型加载到前端显示。这样,当需要加载BIM模型时,首先将BIM模型中相同材质的图元进行合并,这样当BIM模型中构件数量较多时,不需要单独对每个图元进行渲染,可以提高渲染效率。并且,根据BIM模型的场景中心到视点的距离生成不同精度的模型,然后根据用户选择的缩放距离加载对应精度的模型,这样也可以针对不同精度进行模型渲染,提高了BIM模型的渲染效率。It can be seen that, through the method for loading the building information model BIM proposed in the embodiment of the present application, first, the BIM model to be loaded is obtained, secondly, the primitives of the same material in the BIM model to be loaded are determined, and secondly, the to-be-loaded BIM model is determined The primitives of the same material in the BIM model are merged to obtain the target BIM model, and secondly, according to the distance from the scene center of the target BIM model to the viewpoint, at least one BIM model is generated, and the precision of the at least one BIM model is different, and The scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold, and secondly, when a front-end loading request carrying a zoom distance is received, determine the first one of the at least one BIM model according to the zoom distance. BIM model, and finally, the first BIM model is loaded into the front-end display. In this way, when the BIM model needs to be loaded, the primitives of the same material in the BIM model are first merged, so that when there are a large number of components in the BIM model, each primitive does not need to be rendered separately, which can improve rendering efficiency. In addition, models with different precisions are generated according to the distance from the scene center of the BIM model to the viewpoint, and then models with corresponding precisions are loaded according to the zoom distance selected by the user, so that models can also be rendered for different precisions, which improves the rendering efficiency of the BIM model.
参见图2,图2为本申请实施例提供的另一种建筑信息模型BIM的加载方法的流程示意图。其中,如图2所示,本申请实施例提供的另一种建筑信息模型BIM的加载方法可以包括:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of another method for loading a building information model BIM provided by an embodiment of the present application. Wherein, as shown in FIG. 2 , another method for loading a building information model (BIM) provided by an embodiment of the present application may include:
201、获取待加载BIM模型。201. Obtain the BIM model to be loaded.
当需要在前端加载显示BIM模型时,后台先获取待加载BIM模型。具体的,用户可以在前端的BIM模型选择界面上选择待加载BIM模型,后台根据用户选择获取该待加载BIM模型。When the BIM model needs to be loaded and displayed on the front end, the BIM model to be loaded is obtained first in the background. Specifically, the user can select the BIM model to be loaded on the front-end BIM model selection interface, and the background obtains the BIM model to be loaded according to the user's selection.
202、确定所述待加载BIM模型中相同材质的图元。202. Determine the primitives of the same material in the BIM model to be loaded.
具体的,建筑物构件在BIM模型中通过图元进行显示。待加载BIM模型中包括了多个建筑物构件,以及包括了描述该多个建筑物构件的几何信息、专业属性及状态信息,还包含了非构件对象(如空间、运动行为)的状态信息。也就是说,后台获取该待加载BIM模型后,也可以获取建筑物构件的材质信息,然后确定该待加载BIM模型中相同材质的建筑物构件,也即确定了相同材质的图元。Specifically, building components are displayed in the BIM model through primitives. The BIM model to be loaded includes multiple building components, as well as geometric information, professional attributes and state information describing the multiple building components, as well as state information of non-component objects (such as space and motion behavior). That is to say, after acquiring the BIM model to be loaded in the background, the material information of the building components can also be obtained, and then the building components of the same material in the BIM model to be loaded are determined, that is, the primitives of the same material are determined.
203、将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型。203. Combine the primitives of the same material in the to-be-loaded BIM model to obtain a target BIM model.
确定了该待加载BIM模型中相同材质的图元后,将相同材质的图元进行合并,得到目标BIM模型。这样,该目标BIM模型中的图元数量相较于原始的待加载BIM模型而言较少。After the elements of the same material in the BIM model to be loaded are determined, the elements of the same material are merged to obtain the target BIM model. In this way, the number of primitives in the target BIM model is less than the original BIM model to be loaded.
204、确定所述目标BIM模型的场景中心。204. Determine the scene center of the target BIM model.
205、传入至少一个视点。205. Input at least one viewpoint.
206、确定所述目标BIM模型的场景中心到所述至少一个视点中每个视点的距离。206. Determine a distance from the scene center of the target BIM model to each of the at least one viewpoint.
207、将所述目标BIM模型的场景中心到所述每个视点的距离与预设的至少一个距离阈值进行对比,以生成至少一个BIM模型。207. Compare the distance from the scene center of the target BIM model to each viewpoint with at least one preset distance threshold to generate at least one BIM model.
具体的,该至少一个BIM模型的精度不同,并且该至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值。对于不同精度的BIM模型,在加载时,渲染速度也不同。Specifically, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold. For BIM models of different precisions, when loading, the rendering speed is also different.
在渲染的时候根据场景中心到视点的距离远近来动态的选择相应层次细节的渲染数据,比如距离较近的时候,采用高精细度的渲染数据,保持视觉的真实度。而当距离较远的时候,采用低精细度的渲染数据,节省渲染开销,提高渲染效率。进一步的,如果距离非常远,一些非常小的场景图元可以判定为不可见,直接跳过。采用距离阈值进行对比,可以对场景中心到视点的距离进行判断,当场景中心到视点的距离满足一个距离阈值时,可以确定与该距离阈值对应的精度,从而生成该精度的BIM模型。During rendering, the rendering data of the corresponding level of detail is dynamically selected according to the distance from the center of the scene to the viewpoint. For example, when the distance is relatively short, high-precision rendering data is used to maintain the visual authenticity. When the distance is long, low-precision rendering data is used to save rendering overhead and improve rendering efficiency. Further, if the distance is very far, some very small scene primitives can be judged to be invisible and skipped directly. Using the distance threshold for comparison, the distance from the scene center to the viewpoint can be judged. When the distance from the scene center to the viewpoint meets a distance threshold, the accuracy corresponding to the distance threshold can be determined, thereby generating a BIM model with this accuracy.
举例来说,预先设置了三个距离阈值,分别为第一距离阈值、第二距离阈值和第三距离阈值。将目标BIM模型的场景中心到每个视点的距离与这三个距离阈值进行比较,如果距离小于第一距离阈值,则生成第一精度的BIM模型,如果距离位于第一距离阈值和第二距离阈值之间,则生成第二精度的BIM模型,如果距离位于第二距离阈值和第三距离阈值之间,则生成第三精度的BIM模型,如果距离大于第三距离阈值,则生成第四精度的BIM模型。第一精度、第二精度、第三精度、第四精度的精度值依次降低。For example, three distance thresholds are preset, which are a first distance threshold, a second distance threshold, and a third distance threshold, respectively. Compare the distance from the scene center of the target BIM model to each viewpoint with these three distance thresholds, if the distance is less than the first distance threshold, generate a BIM model of the first precision, if the distance is between the first distance threshold and the second distance If the distance is between the second distance threshold and the third distance threshold, then generate the BIM model of the third precision, if the distance is greater than the third distance threshold, then generate the fourth precision BIM model. The precision values of the first precision, the second precision, the third precision, and the fourth precision decrease in sequence.
208、将所述至少一个BIM模型中每个BIM模型的文件格式封装成web图形库的二进制格式。208. Encapsulate the file format of each BIM model in the at least one BIM model into a binary format of a web graphics library.
这样,在将BIM模型加载到web图形库时,可以直接加载,而不用转换格式,这样可以提高渲染效率。In this way, when loading the BIM model into the web graphics library, it can be directly loaded without converting the format, which can improve rendering efficiency.
209、当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型。209. When a front-end loading request carrying a zoom distance is received, determine a first BIM model in the at least one BIM model according to the zoom distance.
具体的,用户在前端显示界面上选择缩放距离,然后提交前端加载请求,该前端加载请求携带该缩放距离。由于该至少一个BIM模型中每个BIM模型的精度与距离对应,后台可以根据该缩放距离确定对应的精度,从而确定该至少一个BIM模型中的第一BIM模型。Specifically, the user selects the zoom distance on the front-end display interface, and then submits a front-end loading request, where the front-end loading request carries the zoom distance. Since the precision of each BIM model in the at least one BIM model corresponds to the distance, the background may determine the corresponding precision according to the zoomed distance, thereby determining the first BIM model in the at least one BIM model.
210、将所述第一BIM模型加载到前端显示。210. Load the first BIM model to the front-end display.
具体的,确定第一BIM模型后,将该第一BIM模型加载到前端显示。在显示时,根据用户选择的缩放距离,前端显示的模型的渲染效果不同,比如缩放距离较近的时候,显示时采用高精细度的渲染数据,这样用户视觉上的真实度较高。而当缩放距离较远的时候,显示时采用低精细度的渲染数据,这样可以节省渲染开销,提高渲染效率,但是渲染效果相较于高精细度的渲染效果差。进一步的,如果缩放距离非常远,那么一些非常小的场景图元对用户而言不可见。Specifically, after the first BIM model is determined, the first BIM model is loaded into the front-end display. During display, according to the zoom distance selected by the user, the rendering effect of the model displayed on the front end is different. For example, when the zoom distance is short, high-precision rendering data is used for display, so that the user's visual reality is higher. When the zoom distance is long, low-precision rendering data is used for display, which can save rendering overhead and improve rendering efficiency, but the rendering effect is worse than that of high-precision rendering. Further, if the zoom distance is very far, then some very small scene primitives are not visible to the user.
可以看出,通过本申请实施例提出的建筑信息模型BIM的加载方法,当需要加载BIM模型时,首先将BIM模型中相同材质的图元进行合并,这样当BIM模型中构件数量较多时,不需要单独对每个图元进行渲染,可以提高渲染效率。并且,根据BIM模型的场景中心到视点的距离生成不同精度的模型,然后根据用户选择的缩放距离加载对应精度的模型,这样也可以针对不同精度进行模型渲染,提高了BIM模型的渲染效率。It can be seen that, through the method for loading the building information model BIM proposed in the embodiment of the present application, when the BIM model needs to be loaded, the primitives of the same material in the BIM model are first merged, so that when the number of components in the BIM model is large, the Each primitive needs to be rendered separately, which can improve rendering efficiency. In addition, models with different precisions are generated according to the distance from the scene center of the BIM model to the viewpoint, and then models with corresponding precisions are loaded according to the zoom distance selected by the user, so that models can also be rendered for different precisions, which improves the rendering efficiency of the BIM model.
参见图3,图3为本申请实施例提供的另一种建筑信息模型BIM的加载方法的流程示意图。其中,如图3所示,本申请实施例提供的另一种建筑信息模型BIM的加载方法可以包括:Referring to FIG. 3 , FIG. 3 is a schematic flowchart of another method for loading a building information model BIM provided by an embodiment of the present application. Wherein, as shown in FIG. 3 , another method for loading a building information model (BIM) provided by this embodiment of the present application may include:
301、获取待加载BIM模型。301. Obtain the BIM model to be loaded.
当需要在前端加载显示BIM模型时,后台先获取待加载BIM模型。具体的,用户可以在前端的BIM模型选择界面上选择待加载BIM模型,后台根据用户选择获取该待加载BIM模型。When the BIM model needs to be loaded and displayed on the front end, the BIM model to be loaded is obtained first in the background. Specifically, the user can select the BIM model to be loaded on the front-end BIM model selection interface, and the background obtains the BIM model to be loaded according to the user's selection.
302、获取所述待加载BIM模型的规模。302. Obtain the scale of the BIM model to be loaded.
303、当所述待加载BIM模型的规模到达预设规模阈值时,将所述待加载BIM模型划分为背景辅助模型和业务交互模型。303. When the scale of the BIM model to be loaded reaches a preset scale threshold, divide the BIM model to be loaded into a background auxiliary model and a business interaction model.
其中,所述背景辅助模型用于渲染效果的辅助,所述业务交互模型用于与业务产生交互。Wherein, the background auxiliary model is used for rendering effects, and the service interaction model is used for interacting with the service.
具体的,当待加载BIM模型的规模较大时,因为该待加载模型包括的图元较多,并且细节较多,所以将该待加载BIM模型加载到前端进行显示时,加载速度较慢,渲染效率较低。所以可以将该待加载BIM模型进行划分,可以划分为背景辅助模型和业务交互模型,其中,背景辅助模型用于渲染效果的辅助,不参与业务的交互,而业务交互模型用于与业务产生交互。Specifically, when the scale of the to-be-loaded BIM model is large, because the to-be-loaded model includes more primitives and more details, when the to-be-loaded BIM model is loaded to the front end for display, the loading speed is slow. Rendering efficiency is low. Therefore, the BIM model to be loaded can be divided into a background auxiliary model and a business interaction model. The background auxiliary model is used to assist the rendering effect and does not participate in the interaction of the business, while the business interaction model is used to interact with the business. .
304、将所述背景辅助模型进行效果烘焙,以烘焙贴图的方式将所述背景辅助模型加载到前端显示。304. Perform effect baking on the background auxiliary model, and load the background auxiliary model to the front-end display in a way of baking a texture.
在对背景辅助模型进行加载时,可以以烘焙贴图的方式进行显示,减少了大量细节的加载,从而提高了渲染效率。When loading the background auxiliary model, it can be displayed in the form of baked maps, which reduces the loading of a large number of details, thereby improving the rendering efficiency.
305、对所述业务交互模型进行轻量化处理,将轻量化后的所述业务交互模型加载到前端显示。305. Perform lightweight processing on the business interaction model, and load the lightweight business interaction model into a front-end display.
在对业务交互模型进行加载时,对该业务交互模型进行轻量化处理,从而提高了渲染效率。When the business interaction model is loaded, the business interaction model is light-weighted, thereby improving rendering efficiency.
在一种可能的实施方式中,对该业务交互模型进行轻量化处理的步骤可以参考图1或图2所示的方法,不做赘述。In a possible implementation manner, for the steps of performing lightweight processing on the service interaction model, reference may be made to the method shown in FIG. 1 or FIG. 2 , which will not be repeated.
可以看出,通过本申请实施例提出的建筑信息模型BIM的加载方法,当待加载BIM模型的规模较大时,将该模型划分为背景辅助模型和业务交互模型,然后分别对这两种模型采用不同方式进行加载,可以避免加载BIM模型中包括的所有细节,提升加载速度,提高了渲染效率。It can be seen that, through the method for loading the building information model BIM proposed in the embodiment of the present application, when the scale of the BIM model to be loaded is relatively large, the model is divided into a background auxiliary model and a business interaction model, and then the two models are respectively Loading in different ways can avoid loading all the details included in the BIM model, improve the loading speed, and improve the rendering efficiency.
参见图4,图4为本申请实施例提供的一种建筑信息模型BIM的加载装置的示意图。其中,如图4所示,本申请实施例提供的一种建筑信息模型BIM的加载装置可以包括:Referring to FIG. 4 , FIG. 4 is a schematic diagram of a device for loading a building information model BIM according to an embodiment of the present application. Wherein, as shown in FIG. 4 , a device for loading a building information model (BIM) provided by an embodiment of the present application may include:
获取模块401,用于获取待加载BIM模型;an obtaining
第一确定模块402,用于确定所述待加载BIM模型中相同材质的图元;A first determining
合并模块403,用于将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型;The merging
生成模块404,用于根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值;The
第二确定模块405,用于当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型;A second determining
第一加载模块406,用于将所述第一BIM模型加载到前端显示。The
本申请实施例中建筑信息模型BIM的加载装置的具体实施可参见上述建筑信息模型BIM的加载方法的各实施例,在此不做赘述。For the specific implementation of the device for loading the building information model BIM in the embodiment of the present application, reference may be made to the above embodiments of the method for loading the building information model BIM, which will not be repeated here.
参见图5,图5为本申请的实施例涉及的硬件运行环境的电子设备结构示意图。其中,如图5所示,本申请的实施例涉及的硬件运行环境的电子设备可以包括:Referring to FIG. 5 , FIG. 5 is a schematic structural diagram of an electronic device of a hardware operating environment involved in an embodiment of the present application. Wherein, as shown in FIG. 5 , the electronic devices of the hardware operating environment involved in the embodiments of the present application may include:
处理器501,例如CPU。
存储器502,可选的,存储器可以为高速RAM存储器,也可以是稳定的存储器,例如磁盘存储器。The
通信接口503,用于实现处理器501和存储器502之间的连接通信。The
本领域技术人员可以理解,图5中示出的电子设备的结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components .
如图5所示,存储器502中可以包括操作系统、网络通信模块以及加载程序。操作系统是管理和控制电子设备硬件和软件资源的程序,支持加载程序以及其他软件或程序的运行。网络通信模块用于实现存储器502内部各组件之间的通信,以及与电子设备中其他硬件和软件之间通信。As shown in FIG. 5 , the
在图5所示的电子设备中,处理器501用于执行存储器502中存储的加载程序,实现以下步骤:In the electronic device shown in FIG. 5, the
获取待加载BIM模型;Get the BIM model to be loaded;
确定所述待加载BIM模型中相同材质的图元;Determine the primitives of the same material in the BIM model to be loaded;
将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型;Merging the primitives of the same material in the BIM model to be loaded to obtain the target BIM model;
根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值;According to the distance from the scene center of the target BIM model to the viewpoint, at least one BIM model is generated, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold ;
当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型;When receiving a front-end loading request carrying a zoom distance, determining a first BIM model in the at least one BIM model according to the zoom distance;
将所述第一BIM模型加载到前端显示。The first BIM model is loaded into the front-end display.
本申请实施例中电子设备的具体实施可参见上述建筑信息模型BIM的加载方法的各实施例,在此不做赘述。For the specific implementation of the electronic device in the embodiment of the present application, reference may be made to the foregoing embodiments of the method for loading the building information model BIM, which will not be repeated here.
本申请的另一个实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行以实现以下步骤:Another embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
获取待加载BIM模型;Get the BIM model to be loaded;
确定所述待加载BIM模型中相同材质的图元;Determine the primitives of the same material in the BIM model to be loaded;
将所述待加载BIM模型中相同材质的图元进行合并,以得到目标BIM模型;Merging the primitives of the same material in the BIM model to be loaded to obtain the target BIM model;
根据所述目标BIM模型的场景中心到视点的距离,生成至少一个BIM模型,所述至少一个BIM模型的精度不同,并且所述至少一个BIM模型中每个BIM模型的规模不大于预设规模阈值;According to the distance from the scene center of the target BIM model to the viewpoint, at least one BIM model is generated, the precision of the at least one BIM model is different, and the scale of each BIM model in the at least one BIM model is not greater than a preset scale threshold ;
当接收到携带缩放距离的前端加载请求时,根据所述缩放距离确定所述至少一个BIM模型中的第一BIM模型;When receiving a front-end loading request carrying a zoom distance, determining a first BIM model in the at least one BIM model according to the zoom distance;
将所述第一BIM模型加载到前端显示。The first BIM model is loaded into the front-end display.
本申请实施例中计算机可读存储介质的具体实施可参见上述建筑信息模型BIM的加载方法的各实施例,在此不做赘述。For the specific implementation of the computer-readable storage medium in the embodiment of the present application, reference may be made to the foregoing embodiments of the method for loading a building information model BIM, which will not be repeated here.
还需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。It should also be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence , because certain steps may be performed in other orders or simultaneously in accordance with the present application. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010783774.1ACN111950057A (en) | 2020-08-06 | 2020-08-06 | A method and device for loading building information model BIM |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010783774.1ACN111950057A (en) | 2020-08-06 | 2020-08-06 | A method and device for loading building information model BIM |
| Publication Number | Publication Date |
|---|---|
| CN111950057Atrue CN111950057A (en) | 2020-11-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010783774.1APendingCN111950057A (en) | 2020-08-06 | 2020-08-06 | A method and device for loading building information model BIM |
| Country | Link |
|---|---|
| CN (1) | CN111950057A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113901062A (en)* | 2021-12-07 | 2022-01-07 | 浙江高信技术股份有限公司 | Pre-loading system based on BIM and GIS |
| CN113901571A (en)* | 2021-12-06 | 2022-01-07 | 深圳市斯维尔科技股份有限公司 | Method, system, device and storage medium for accelerating model data rendering |
| CN114020390A (en)* | 2021-11-08 | 2022-02-08 | 深圳供电局有限公司 | BIM model display method, device, computer equipment and storage medium |
| CN114791986A (en)* | 2021-01-25 | 2022-07-26 | 广东博智林机器人有限公司 | Three-dimensional information model processing method and device |
| CN115908715A (en)* | 2022-12-12 | 2023-04-04 | 深圳市城市公共安全技术研究院有限公司 | Loading method and device of building information model, equipment and storage medium |
| CN117851704A (en)* | 2024-01-12 | 2024-04-09 | 上海秉匠信息科技有限公司 | A method, device, equipment and medium for loading large-volume models |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101546703B1 (en)* | 2014-12-04 | 2015-08-24 | 한국건설기술연구원 | System for processing massive bim data of building |
| CN106204745A (en)* | 2016-08-31 | 2016-12-07 | 中国电建集团昆明勘测设计研究院有限公司 | Monitoring BIM model rapid loading interaction method and system based on standard atlas management |
| CN107481311A (en)* | 2017-08-24 | 2017-12-15 | 中煤航测遥感集团有限公司 | D Urban model rendering intent and device |
| CN108984832A (en)* | 2018-06-07 | 2018-12-11 | 武汉虹信技术服务有限责任公司 | The method and system of Unity3D load BIM model are utilized in a kind of intelligent building O&M |
| CN109978981A (en)* | 2019-03-15 | 2019-07-05 | 广联达科技股份有限公司 | A kind of batch rendering method improving buildings model display efficiency |
| CN110443893A (en)* | 2019-08-02 | 2019-11-12 | 广联达科技股份有限公司 | Extensive building scene rendering accelerated method, system, device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101546703B1 (en)* | 2014-12-04 | 2015-08-24 | 한국건설기술연구원 | System for processing massive bim data of building |
| CN106204745A (en)* | 2016-08-31 | 2016-12-07 | 中国电建集团昆明勘测设计研究院有限公司 | Monitoring BIM model rapid loading interaction method and system based on standard atlas management |
| CN107481311A (en)* | 2017-08-24 | 2017-12-15 | 中煤航测遥感集团有限公司 | D Urban model rendering intent and device |
| CN108984832A (en)* | 2018-06-07 | 2018-12-11 | 武汉虹信技术服务有限责任公司 | The method and system of Unity3D load BIM model are utilized in a kind of intelligent building O&M |
| CN109978981A (en)* | 2019-03-15 | 2019-07-05 | 广联达科技股份有限公司 | A kind of batch rendering method improving buildings model display efficiency |
| CN110443893A (en)* | 2019-08-02 | 2019-11-12 | 广联达科技股份有限公司 | Extensive building scene rendering accelerated method, system, device and storage medium |
| Title |
|---|
| 刘小军;贾金原;: "面向手机网页的大规模WebBIM场景轻量级实时漫游算法", 中国科学:信息科学, no. 03, pages 274 - 292* |
| 金广龙;秦庆鹏;: "基于BS架构的BIM模型轻量化技术", 中国高新科技, no. 12, pages 61 - 62* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114791986A (en)* | 2021-01-25 | 2022-07-26 | 广东博智林机器人有限公司 | Three-dimensional information model processing method and device |
| CN114020390A (en)* | 2021-11-08 | 2022-02-08 | 深圳供电局有限公司 | BIM model display method, device, computer equipment and storage medium |
| CN113901571A (en)* | 2021-12-06 | 2022-01-07 | 深圳市斯维尔科技股份有限公司 | Method, system, device and storage medium for accelerating model data rendering |
| CN113901571B (en)* | 2021-12-06 | 2023-03-17 | 深圳市斯维尔科技股份有限公司 | Method, system, device and storage medium for accelerating model data rendering |
| CN113901062A (en)* | 2021-12-07 | 2022-01-07 | 浙江高信技术股份有限公司 | Pre-loading system based on BIM and GIS |
| CN113901062B (en)* | 2021-12-07 | 2022-03-18 | 浙江高信技术股份有限公司 | Pre-loading system based on BIM and GIS |
| CN115908715A (en)* | 2022-12-12 | 2023-04-04 | 深圳市城市公共安全技术研究院有限公司 | Loading method and device of building information model, equipment and storage medium |
| CN117851704A (en)* | 2024-01-12 | 2024-04-09 | 上海秉匠信息科技有限公司 | A method, device, equipment and medium for loading large-volume models |
| Publication | Publication Date | Title |
|---|---|---|
| CN111950057A (en) | A method and device for loading building information model BIM | |
| CN111008422B (en) | A method and system for making a real-world map of a building | |
| CN110706341B (en) | A high-performance rendering method, device and storage medium for urban information model | |
| JP2021520579A (en) | Object loading methods and devices, storage media, electronic devices, and computer programs | |
| CN113538706B (en) | Digital sand table-based house scene display method, device, equipment and storage medium | |
| CN111870949A (en) | Object processing method and device in game scene and electronic equipment | |
| CN116843807B (en) | Virtual image generation method, virtual image model training method, virtual image generation device, virtual image model training device and electronic equipment | |
| CN112711783B (en) | Jewelry design method and system based on three-dimensional software and illusion engine | |
| CN111583378B (en) | Virtual asset processing method and device, electronic equipment and storage medium | |
| KR20250075554A (en) | Method and system for generating polygon meshes approximating surfaces using root-finding and iteration for mesh vertex positions | |
| CN112070901A (en) | A garden AR scene construction method, device, storage medium and terminal | |
| CN111259567A (en) | Layout generating method and device and storage medium | |
| CN117392301B (en) | Graphics rendering methods, systems, devices, electronic equipment and computer storage media | |
| CN119091024A (en) | Texture generation method for 3D models and training method for deep learning models | |
| Dong et al. | A time-critical adaptive approach for visualizing natural scenes on different devices | |
| CN113076631A (en) | Robot simulator generation method, robot model simulation method and device | |
| CN114307158B (en) | Three-dimensional virtual scene data generation method and device, storage medium and terminal | |
| CN119169165A (en) | Model rendering method, device, terminal device and readable storage medium | |
| CN114299202B (en) | Processing method and device, storage medium and terminal for virtual scene production | |
| CN117710552A (en) | Model processing method, device, electronic equipment and computer readable storage medium | |
| CN116863428A (en) | Lane line detection method, device, electronic equipment and storage medium | |
| CN110379005B (en) | Three-dimensional reconstruction method based on virtual resource management | |
| CN118172482A (en) | Three-dimensional model generation method, three-dimensional model generation device, electronic equipment and readable storage medium | |
| CN117576283A (en) | Image rendering method, device and electronic equipment | |
| CN120472098A (en) | Three-dimensional grid rendering method, device, equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right | Effective date of registration:20230710 Address after:A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518051 Applicant after:Shenzhen Wanyi Digital Technology Co.,Ltd. Address before:519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area) Applicant before:WANYI TECHNOLOGY Co.,Ltd. | |
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20201117 |