CN113076040B - Curtain wall preview method, system and storage medium - Google Patents
Curtain wall preview method, system and storage medium Download PDFInfo
- Publication number
- CN113076040B CN113076040B CN202110476651.8A CN202110476651A CN113076040B CN 113076040 B CN113076040 B CN 113076040B CN 202110476651 A CN202110476651 A CN 202110476651A CN 113076040 B CN113076040 B CN 113076040B
- Authority
- CN
- China
- Prior art keywords
- curtain wall
- target
- model
- input device
- initial grid
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
- G06T17/205—Re-meshing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像显示领域,尤其涉及一种幕墙的预览方法、系统及存储介质。The present application relates to the field of image display, and in particular, to a preview method, system and storage medium of a curtain wall.
背景技术Background technique
在施工队建设幕墙时,出于建设难度与建设成本的考虑,通常是将一个幕墙划分为多个子幕墙,通过拼接子幕墙的方式得到成品幕墙。在通过软件将幕墙分割为子幕墙时,由于内部的分割模型需要运算时间,且三维渲染也需要一定时间,故用户通过软件划分幕墙的耗时会很长。在用户选取分割模型时,若用户不清楚具体选择何种分割模型,且无法预览,于是造成用户需要对幕墙按照不同的分割模型多次执行划分操作,才能确定最终用于实际建设的分割模型,如此会大大降低了用户选取分割模型的效率。When the construction team builds the curtain wall, for the consideration of construction difficulty and construction cost, a curtain wall is usually divided into multiple sub-curtain walls, and the finished curtain wall is obtained by splicing the sub-curtain walls. When dividing a curtain wall into sub-curtain walls by software, it will take a long time for users to divide a curtain wall by software because the internal segmentation model requires computation time and 3D rendering also requires a certain amount of time. When the user selects a segmentation model, if the user does not know which segmentation model to choose and cannot preview it, the user needs to perform the segmentation operation on the curtain wall according to different segmentation models multiple times before determining the final segmentation model for actual construction. This will greatly reduce the efficiency of the user selecting the segmentation model.
因此,亟需一种幕墙的预览方法,以解决上述问题。Therefore, there is an urgent need for a preview method of a curtain wall to solve the above problems.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于,提供一种幕墙的预览方法、系统及存储介质,以解决用户选取分割模型效率低下的技术问题。The purpose of the present invention is to provide a preview method, system and storage medium for a curtain wall, so as to solve the technical problem that the user selects the segmentation model inefficiently.
为实现上述目的,本发明实施例提供了一种幕墙的预览方法,应用于计算机设备,所述预览方法包括:生成计算机设备的可视化窗口;获取目标幕墙以及初始轴网线;根据预设的分割模型,生成幕墙的子幕墙轮廓线;根据目标幕墙、初始轴网线以及子幕墙轮廓线构建目标模型;以及在所述可视化窗口显示所述目标模型。To achieve the above object, an embodiment of the present invention provides a method for previewing a curtain wall, which is applied to a computer device. The preview method includes: generating a visualization window of the computer device; acquiring a target curtain wall and an initial grid line; according to a preset segmentation model , generating the sub-curtain wall contour line of the curtain wall; constructing a target model according to the target curtain wall, the initial grid line and the sub-curtain wall contour line; and displaying the target model in the visualization window.
进一步地,所述预览方法还包括:实时获取显示参数,并根据所述显示参数,实时调整所述目标模型的角度、体积、位置中的至少一个参数。Further, the preview method further includes: acquiring display parameters in real time, and adjusting at least one parameter of the angle, volume and position of the target model in real time according to the display parameters.
进一步地,所述实时获取显示参数,并根据所述显示参数,实时调整所述目标模型的角度、体积、位置中的至少一个参数的步骤,包括:实时监听计算机设备的输入设备的移动操作,以获取所述输入设备在所述可视化窗口内的当前坐标;通过所述输入设备获取目标模型的体积调节参数的值,其中所述体积调节参数用以调整所述目标模型的体积;根据所述当前坐标以及所述体积调节参数,调整所述目标模型在所述可视化窗口中的大小,其中所述体积调节参数的值与所述目标模型的体积之间成比例关系;以及重新执行所述实时监听计算机设备的输入设备的移动操作,以获取所述输入设备在所述可视化窗口内的当前坐标的步骤。Further, the step of acquiring display parameters in real time, and adjusting at least one parameter of the angle, volume and position of the target model in real time according to the display parameters, includes: monitoring the movement operation of the input device of the computer device in real time, to obtain the current coordinates of the input device in the visualization window; obtain the value of the volume adjustment parameter of the target model through the input device, wherein the volume adjustment parameter is used to adjust the volume of the target model; according to the current coordinates and the volume adjustment parameter, adjusting the size of the target model in the visualization window, wherein the value of the volume adjustment parameter is proportional to the volume of the target model; and re-executing the real-time The step of monitoring the movement operation of the input device of the computer device to obtain the current coordinates of the input device in the visualization window.
进一步地,所述实时获取显示参数,并根据所述显示参数,实时调整所述目标模型的角度、体积、位置中的至少一个参数的步骤包括:实时监听计算机设备的输入设备的点击操作,以获取所述输入设备在所述可视化窗口内的当前坐标,并作为起点坐标;判断所述输入设备是否执行拖动操作;当判定所述输入设备执行拖动操作时,根据拖动后的当前坐标,更新所述输入设备的终点坐标,并获取起点坐标;当判定所述输入设备未执行拖动操作时,获取所述输入设备执行拖动操作时的起点坐标与终点坐标;根据所述起点坐标与所述终点坐标的相对位置,调整所述目标模型在所述可视化窗口中的位置;以及重新执行所述实时监听计算机设备的输入设备的点击操作,以获取所述输入设备在所述可视化窗口内的当前坐标的步骤。Further, the step of acquiring display parameters in real time, and adjusting at least one parameter of the angle, volume, and position of the target model in real time according to the display parameters includes: monitoring the click operation of the input device of the computer device in real time, to Acquire the current coordinates of the input device in the visualization window and use it as the starting point coordinates; determine whether the input device performs a drag operation; when it is determined that the input device performs a drag operation, according to the current coordinates after dragging , update the coordinates of the end point of the input device, and obtain the coordinates of the start point; when it is determined that the input device does not perform a drag operation, obtain the coordinates of the start point and the end point when the input device performs a drag operation; according to the coordinates of the start point Adjust the position of the target model in the visualization window relative to the coordinates of the end point; and re-execute the click operation of the input device of the real-time monitoring computer device to obtain the input device in the visualization window. The current coordinates within the step.
进一步地,所述实时获取显示参数,并根据所述显示参数,实时调整所述目标模型的角度、体积、位置中的至少一个参数的步骤包括:实时监听计算机设备的输入设备的点击操作,以获取所述输入设备在所述可视化窗口内的当前坐标,并作为起点坐标;判断所述输入设备是否执行拖动操作;当判定所述输入设备执行拖动操作时,则根据拖动后的当前坐标,更新所述输入设备的终点坐标;若判定所述输入设备未处于拖动操作,则获取所述输入设备处于拖动操作时的起点坐标与终点坐标;根据所述起点坐标与所述终点坐标的相对位置,调整所述目标模型在所述可视化窗口中的角度;以及重新执行所述实时监听计算机设备的输入设备的点击操作,以获取所述输入设备在所述可视化窗口内的当前坐标的步骤。Further, the step of acquiring display parameters in real time, and adjusting at least one parameter of the angle, volume, and position of the target model in real time according to the display parameters includes: monitoring the click operation of the input device of the computer device in real time, to Obtain the current coordinates of the input device in the visualization window, and use them as the starting point coordinates; determine whether the input device performs a drag operation; when it is determined that the input device performs a drag operation, according to the current coordinates, and update the coordinates of the end point of the input device; if it is determined that the input device is not in a drag operation, obtain the coordinates of the start point and the end point when the input device is in a drag operation; according to the coordinates of the start point and the end point the relative position of the coordinates, adjust the angle of the target model in the visualization window; and re-execute the click operation of the input device of the real-time monitoring computer device to obtain the current coordinates of the input device in the visualization window A step of.
进一步地,所述根据所述起点坐标与所述终点坐标的相对位置,调整所述目标模型在所述可视化窗口中的位置的步骤中,通过根据所述起点坐标与所述终点坐标的向量差调整观测相机坐标的方式,调整所述目标模型在所述可视化窗口中的位置,其中所述观测相机为计算机设备的虚拟相机,用以将获得的图像显示到所述可视化窗口。Further, in the step of adjusting the position of the target model in the visualization window according to the relative position of the coordinates of the starting point and the coordinates of the ending point, the step of adjusting the position of the target model according to the relative position of the coordinates of the starting point and the coordinates of the ending point is based on the vector difference between the coordinates of the starting point and the ending point The way of adjusting the coordinates of the observation camera is to adjust the position of the target model in the visualization window, wherein the observation camera is a virtual camera of a computer device, and is used to display the obtained image in the visualization window.
进一步地,所述根据所述起点坐标与所述终点坐标的相对位置调整所述目标模型在所述可视化窗口中的角度的步骤中,通过根据所述起点坐标与所述终点坐标的向量差调整观测相机坐标的方式,调整所述目标模型在所述可视化窗口中的角度,其中所述观测相机为计算机设备的虚拟相机,用以将获得的图像显示到所述可视化窗口。Further, in the step of adjusting the angle of the target model in the visualization window according to the relative position of the coordinates of the starting point and the coordinates of the ending point, the adjustment is performed according to the vector difference between the coordinates of the starting point and the coordinates of the ending point. In the way of observing the coordinates of the camera, the angle of the target model in the visualization window is adjusted, wherein the observation camera is a virtual camera of a computer device, and is used to display the obtained image in the visualization window.
进一步地,所述获取目标幕墙以及初始轴网线的步骤,包括:获取目标幕墙的轮廓线;获取初始轴网线;判断初始轴网线的数量是否大于或等于预设数量;以及当判定初始轴网线的数量小于预设数量时,重新执行所述获取初始轴网线的步骤。Further, the step of obtaining the target curtain wall and the initial grid lines includes: obtaining the outline of the target curtain wall; obtaining the initial grid lines; judging whether the number of the initial grid lines is greater than or equal to the preset number; When the number is less than the preset number, the step of obtaining the initial grid lines is performed again.
进一步地,所述获取目标幕墙以及初始轴网线的步骤,包括:获取目标幕墙的轮廓线;根据所述目标幕墙的轮廓线,生成第一图层;获取初始轴网线;根据所述初始轴网线,生成第二图层。Further, the step of obtaining the target curtain wall and the initial grid line includes: obtaining the contour line of the target curtain wall; generating a first layer according to the contour line of the target curtain wall; obtaining the initial grid line; according to the initial grid line , to generate the second layer.
进一步地,所述根据预设的分割模型,生成幕墙的子幕墙轮廓线的步骤,包括:根据预设的分割模型,获取目标幕墙的子幕墙轮廓线;根据所述子幕墙轮廓线,生成第三图层。Further, the step of generating the sub-curtain wall contour line of the curtain wall according to the preset segmentation model includes: obtaining the sub-curtain wall contour line of the target curtain wall according to the preset segmentation model; generating the first sub-curtain wall contour line according to the sub-curtain wall contour line. Three layers.
进一步地,所述根据目标幕墙、初始轴网线以及子幕墙轮廓线构建目标模型的步骤包括:获取每一图层的显示状态;以及显示所有显示状态为可视状态的图层,并重新执行所述获取每一图层的显示状态的步骤。Further, the step of constructing the target model according to the target curtain wall, the initial grid line and the outline of the sub-curtain wall includes: acquiring the display state of each layer; and displaying all layers whose display states are visible states, and re-executing all the layers. Describe the steps to obtain the display state of each layer.
本发明实施例还提供了一种幕墙的预览系统,包括:窗口生成单元,用以生成计算机设备的可视化窗口;参照物获取单元,用以获取目标幕墙以及初始轴网线;幕墙分割单元,用以根据预设的分割模型,生成幕墙的子幕墙轮廓线;模型生成单元,用以根据目标幕墙、初始轴网线以及子幕墙轮廓线构建目标模型;以及模型显示单元,用以在所述可视化窗口显示所述目标模型。An embodiment of the present invention further provides a curtain wall preview system, including: a window generating unit for generating a visual window of a computer device; a reference object acquiring unit for acquiring a target curtain wall and an initial grid line; a curtain wall dividing unit for According to the preset segmentation model, the sub-curtain wall contour line of the curtain wall is generated; the model generation unit is used to construct the target model according to the target curtain wall, the initial grid line and the sub-curtain wall contour line; and the model display unit is used for displaying on the visualization window. the target model.
本发明实施例还提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器读取并运行时,执行上述预览方法中的任一步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is read and executed by a processor, any step in the above-mentioned preview method is executed.
本发明实施例提供的幕墙的预览方法、系统及存储介质通过将幕墙的轮廓线不经过三维渲染,直接加载至可视化窗口的方式,大大减少了显示模型的生成时间,使得用户能够及时获知所使用的分割模型实际的幕墙划分效果,进而提高了用户选取分割模型的效率。The preview method, system and storage medium for a curtain wall provided by the embodiments of the present invention greatly reduce the generation time of the display model by directly loading the outline of the curtain wall into the visualization window without going through 3D rendering, so that the user can timely know the use of the curtain wall. The actual curtain wall division effect of the split model is improved, and the efficiency of the user's selection of the split model is improved.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1为本申请实施例提供的幕墙的预览方法的流程图。FIG. 1 is a flowchart of a method for previewing a curtain wall according to an embodiment of the present application.
图2为图1所示步骤S200的第一子流程图。FIG. 2 is a first sub-flow chart of step S200 shown in FIG. 1 .
图3为图1所示步骤S200的第二子流程图。FIG. 3 is a second sub-flow chart of step S200 shown in FIG. 1 .
图4为图1所示步骤S600的第一子流程图。FIG. 4 is a first sub-flow chart of step S600 shown in FIG. 1 .
图5为图1所示步骤S600的第二子流程图。FIG. 5 is a second sub-flow chart of step S600 shown in FIG. 1 .
图6为图1所示步骤S600的第三子流程图。FIG. 6 is a third sub-flow chart of step S600 shown in FIG. 1 .
图7为本申请实施例提供的幕墙的预览系统的结构示意图。FIG. 7 is a schematic structural diagram of a preview system for a curtain wall according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。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 a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
参阅图1所示,本实施例提供了一种幕墙的预览方法,包括以下步骤。Referring to FIG. 1 , this embodiment provides a method for previewing a curtain wall, including the following steps.
步骤S100、生成计算机设备的可视化窗口。Step S100, generating a visualization window of the computer device.
示例性地,上述可视化窗口通过Winform应用程序内置的MaskPanel控件实现,以使用户可通过该可视化窗口预览成品幕墙。Exemplarily, the above-mentioned visualization window is implemented by the MaskPanel control built in the Winform application, so that the user can preview the finished curtain wall through the visualization window.
步骤S200、获取目标幕墙以及初始轴网线。初始轴网线由用户选定,在用户选定初始轴网线后,本实施例提供的预览方法可在选定的初始轴网线之间插入子幕墙轮廓线。可选地,初始轴网线也可作为参照物,以使用户能够更好地理解显示模型的空间关系。可选地,初始轴网线的数量大于或等于二。Step S200, acquiring the target curtain wall and the initial grid lines. The initial grid line is selected by the user. After the user selects the initial grid line, the preview method provided in this embodiment can insert the outline of the sub-curtain wall between the selected initial grid lines. Optionally, the initial grid lines can also be used as references to allow the user to better understand the spatial relationships of the displayed model. Optionally, the number of initial grid lines is greater than or equal to two.
参阅图2所示,可选地,步骤S200包括步骤S2101至步骤S2401。Referring to Fig. 2, optionally, step S200 includes steps S2101 to S2401.
步骤S2101、获取目标幕墙的轮廓线。Step S2101, acquiring the contour line of the target curtain wall.
步骤S2201、获取初始轴网线。在本实施例中初始轴网线用于定义后续分割模型的划分范围,或作为参照线,辅助用户理解目标模型的空间关系。Step S2201, acquiring initial grid lines. In this embodiment, the initial grid line is used to define the division range of the subsequent segmentation model, or as a reference line to assist the user in understanding the spatial relationship of the target model.
步骤S2301、判断初始轴网线的数量是否大于或等于预设数量。在本实施例中,若初始轴网线用于定义后续分割模型的划分范围,那么初始轴网线的预设数量可设置为二。Step S2301, judging whether the number of initial grid lines is greater than or equal to a preset number. In this embodiment, if the initial grid lines are used to define the division range of the subsequent segmentation model, the preset number of initial grid lines may be set to two.
步骤S2401、当判定初始轴网线的数量小于预设数量时,重新执行步骤S220。当判定初始轴网线的数量大于或等于预设数量时,执行步骤S300。Step S2401, when it is determined that the number of the initial grid lines is less than the preset number, perform step S220 again. When it is determined that the number of the initial grid lines is greater than or equal to the preset number, step S300 is performed.
参阅图3所示,可选地,步骤S200包括步骤S2102至步骤S2402。Referring to FIG. 3 , optionally, step S200 includes steps S2102 to S2402.
步骤S2102、获取目标幕墙的轮廓线。Step S2102, acquiring the contour line of the target curtain wall.
步骤S2202、根据目标幕墙的轮廓线,生成第一图层。Step S2202, generating a first layer according to the outline of the target curtain wall.
步骤S2302、获取初始轴网线。Step S2302, acquiring the initial grid lines.
步骤S2402、根据初始轴网线,生成第二图层。Step S2402, generating a second layer according to the initial grid lines.
步骤S2102至步骤S2402通过将目标幕墙的轮廓线、初始轴网线分图层设置的方式,使得用户可以根据实际需求,选择不同的图层进行显示或修改。Steps S2102 to S2402 allow the user to select different layers for display or modification according to actual needs by setting the contour lines and initial grid lines of the target curtain wall into layers.
继续参阅图1所示,步骤S300、根据预设的分割模型,生成幕墙的子幕墙轮廓线。Continuing to refer to FIG. 1 , in step S300 , a sub-curtain wall contour line of the curtain wall is generated according to a preset segmentation model.
在本实施例中预设的分割模型可根据内置的分割算法将幕墙划分为多个子幕墙。其中,分割模型生成的划分线即是子幕墙的轮廓线。本实施例在此并不限定预览方法所使用的分割模型。示例性地,该分割模型可为展开面分割模型(将立体幕墙展开为平面幕墙再进行平面子幕墙的划分)或三维分割模型(通过轴网面直接将立体幕墙划分为立体子幕墙)。可选地,步骤S300可包括以下步骤:根据预设的分割模型,获取目标幕墙的子幕墙轮廓线。根据子幕墙轮廓线,生成第三图层。以使用户可以根据实际需求,选择不同的图层进行显示或修改。The preset segmentation model in this embodiment can divide the curtain wall into a plurality of sub-curtain walls according to the built-in segmentation algorithm. The dividing line generated by the dividing model is the contour line of the sub-curtain wall. This embodiment does not limit the segmentation model used in the preview method. Exemplarily, the segmentation model may be an unfolded surface segmentation model (develop a three-dimensional curtain wall into a plane curtain wall and then divide plane sub-curtain walls) or a three-dimensional segmentation model (directly divide a three-dimensional curtain wall into three-dimensional sub-curtain walls through a grid plane). Optionally, step S300 may include the following steps: acquiring the sub-curtain wall contour lines of the target curtain wall according to a preset segmentation model. According to the outline of the sub-curtain wall, the third layer is generated. So that users can choose different layers to display or modify according to actual needs.
步骤S400、根据目标幕墙、初始轴网线以及子幕墙轮廓线构建目标模型。Step S400 , constructing a target model according to the target curtain wall, the initial grid line and the contour line of the sub-curtain wall.
在一些实施例中,步骤S400包括以下步骤:获取每一图层的显示状态。显示所有显示状态为可视状态的图层,并重新执行所述获取每一图层的显示状态的步骤。其中,每一图层的显示状态分为可视状态与不可视状态,并由用户设定,以此满足用户不同的显示需求。In some embodiments, step S400 includes the following steps: acquiring the display state of each layer. All layers whose display states are visible states are displayed, and the step of acquiring the display state of each layer is re-executed. Among them, the display state of each layer is divided into a visible state and an invisible state, and is set by the user to meet the different display requirements of the user.
步骤S500、在所述可视化窗口显示目标模型。Step S500, displaying the target model in the visualization window.
在一些实施例中,所述预览方法还可包括步骤S600、实时获取显示参数,并根据显示参数,实时调整目标模型的角度、体积、位置中的至少一个参数。In some embodiments, the preview method may further include step S600, acquiring display parameters in real time, and adjusting at least one parameter of the angle, volume, and position of the target model in real time according to the display parameters.
本实施例通过实时获取显示参数的方式,使得用户可以对步骤S500中显示的目标模型进行相应调整。In this embodiment, the user can make corresponding adjustments to the target model displayed in step S500 by acquiring the display parameters in real time.
参阅图4所示,可选地,步骤S600包括步骤S6101至S6301。Referring to Fig. 4, optionally, step S600 includes steps S6101 to S6301.
步骤S6101、实时监听计算机设备的输入设备的移动操作,以获取输入设备在可视化窗口内的当前坐标。具体地,计算机设备的输入设备可选为一鼠标或键盘。Step S6101: Monitor the movement operation of the input device of the computer device in real time to obtain the current coordinates of the input device in the visualization window. Specifically, the input device of the computer device may be a mouse or a keyboard.
步骤S6201、通过输入设备获取目标模型的体积调节参数的值,其中体积调节参数用以调整目标模型的体积。Step S6201: Acquire the value of the volume adjustment parameter of the target model through the input device, wherein the volume adjustment parameter is used to adjust the volume of the target model.
步骤S6301、根据当前坐标以及体积调节参数,调整目标模型在可视化窗口中的大小,并重新执行步骤S6101。上述体积调节参数的值与上述目标模型的体积之间成比例关系。具体地,当输入设备滚轮沿一侧滑动时,显示模型体积增大,当输入设备滚轮沿另一侧滑动时,显示模型体积减小。在本实施例中步骤S6101至S6301可实现显示模型的放大、缩小效果。Step S6301: Adjust the size of the target model in the visualization window according to the current coordinates and volume adjustment parameters, and perform step S6101 again. There is a proportional relationship between the value of the volume adjustment parameter and the volume of the target model. Specifically, when the scroll wheel of the input device slides along one side, the volume of the displayed model increases, and when the scroll wheel of the input device slides along the other side, the volume of the displayed model decreases. In this embodiment, steps S6101 to S6301 can realize the zoom-in and zoom-out effects of the display model.
参阅图5所示,可选地,步骤S600包括步骤S6102至S6402。Referring to Fig. 5, optionally, step S600 includes steps S6102 to S6402.
步骤S6102、实时监听计算机设备的输入设备的点击操作,以获取输入设备在可视化窗口内的当前坐标,并作为起点坐标。具体地,该输入设备为一鼠标。Step S6102: Monitor the click operation of the input device of the computer device in real time, so as to obtain the current coordinates of the input device in the visualization window, and use it as the coordinates of the starting point. Specifically, the input device is a mouse.
步骤S6202、判断输入设备是否执行拖动操作。具体地,通过C#函数库中预设的ondrag函数判断输入设备是否处于拖动状态。Step S6202, judging whether the input device performs a drag operation. Specifically, whether the input device is in a dragging state is determined by the ondrag function preset in the C# function library.
步骤S6302、当判定输入设备执行拖动操作时,根据拖动后的当前坐标,更新输入设备的终点坐标。当判定输入设备未执行拖动操作时,获取输入设备执行拖动操作时的起点坐标与终点坐标。通过步骤S6302可以准确获得输入设备执行拖动操作的起点坐标与终点坐标,以便于后续调整目标模型在可视化窗口中的位置。Step S6302, when it is determined that the input device performs a drag operation, update the coordinates of the end point of the input device according to the current coordinates after dragging. When it is determined that the input device does not perform the drag operation, obtain the coordinates of the start point and the end point when the input device performs the drag operation. Step S6302 can accurately obtain the coordinates of the starting point and the coordinates of the end point of the drag operation performed by the input device, so as to facilitate the subsequent adjustment of the position of the target model in the visualization window.
步骤S6402、根据起点坐标与终点坐标的相对位置,调整目标模型在可视化窗口中的位置,并重新执行步骤S6102。可选地,通过根据起点坐标与终点坐标的向量差调整观测相机坐标的方式,调整目标模型在可视化窗口中的位置。上述观测相机为计算机设备的虚拟相机,用以将获得的图像显示到可视化窗口。具体地,通过获取连接起点坐标与终点坐标的向量,并将该向量与观测相机(在C#中,观测相机可通过捕获图片的方式,模拟显示模型的实际加载效果)坐标相加的方式,调整显示模型在可视化窗口中的位置,进而实现调整显示模型的位置的效果。Step S6402: Adjust the position of the target model in the visualization window according to the relative positions of the start point coordinates and the end point coordinates, and perform step S6102 again. Optionally, the position of the target model in the visualization window is adjusted by adjusting the coordinates of the observation camera according to the vector difference between the coordinates of the start point and the coordinates of the end point. The above-mentioned observation camera is a virtual camera of the computer equipment, and is used to display the obtained image in the visualization window. Specifically, by obtaining a vector connecting the coordinates of the starting point and the ending point, and adding the vector to the coordinates of the observation camera (in C#, the observation camera can simulate the actual loading effect of the display model by capturing pictures), adjust the Display the position of the model in the visualization window, and then realize the effect of adjusting the position of the displayed model.
参阅图5所示,可选地,步骤S600包括步骤S6103至S6403。Referring to Fig. 5, optionally, step S600 includes steps S6103 to S6403.
步骤S6103、实时监听计算机设备的输入设备的点击操作,以获取输入设备在可视化窗口内的当前坐标,并作为起点坐标。具体地,该输入设备为一鼠标。Step S6103: Monitor the click operation of the input device of the computer device in real time, so as to obtain the current coordinates of the input device in the visualization window, and use it as the coordinates of the starting point. Specifically, the input device is a mouse.
步骤S6203、判断输入设备是否执行拖动操作。具体地,通过C#函数库中预设的ondrag函数判断输入设备是否处于拖动状态。Step S6203, judging whether the input device performs a drag operation. Specifically, whether the input device is in a dragging state is determined by the ondrag function preset in the C# function library.
步骤S6303、当判定输入设备执行拖动操作时,根据拖动后的当前坐标,更新输入设备的终点坐标。当判定输入设备未执行拖动操作时,获取输入设备执行拖动操作时的起点坐标与终点坐标。通过步骤S6303可以准确获得输入设备执行拖动操作的起点坐标与终点坐标,以便于后续调整目标模型在可视化窗口中的角度。Step S6303, when it is determined that the input device performs a drag operation, update the coordinates of the end point of the input device according to the current coordinates after dragging. When it is determined that the input device does not perform the drag operation, obtain the coordinates of the start point and the end point when the input device performs the drag operation. Through step S6303, the coordinates of the start point and the end point of the drag operation performed by the input device can be accurately obtained, so as to facilitate the subsequent adjustment of the angle of the target model in the visualization window.
步骤S6403、根据起点坐标与终点坐标的相对位置调整目标模型在可视化窗口中的角度,并重新执行步骤S6103。可选地,通过根据起点坐标与终点坐标的向量差,调整观测相机坐标的方式调整目标模型在可视化窗口中的角度。上述观测相机为计算机设备的虚拟相机,用以将获得的图像显示到可视化窗口。具体地,通过获取连接起点坐标(x轴、y轴坐标)与终点坐标(x轴、y轴坐标)的向量在x轴、y轴上的分向量,通过上述分向量设置相机的坐标,以实现旋转相机的效果,进而实现调整显示模型的角度的效果。Step S6403: Adjust the angle of the target model in the visualization window according to the relative positions of the start point coordinates and the end point coordinates, and perform step S6103 again. Optionally, the angle of the target model in the visualization window is adjusted by adjusting the coordinates of the observation camera according to the vector difference between the coordinates of the start point and the coordinates of the end point. The above-mentioned observation camera is a virtual camera of the computer equipment, and is used to display the obtained image in the visualization window. Specifically, by obtaining the component vectors on the x-axis and the y-axis of the vector connecting the starting point coordinates (x-axis, y-axis coordinates) and the end point coordinates (x-axis, y-axis coordinates), the coordinates of the camera are set by the above-mentioned component vectors, so as to Realize the effect of rotating the camera, and then realize the effect of adjusting the angle of the displayed model.
本实施例提供的幕墙的预览方法通过将幕墙的轮廓线不经过三维渲染,直接加载至可视化窗口的方式,大大减少了显示模型的生成时间,使得用户能够及时获知所使用的分割模型实际的幕墙划分效果,进而提高了用户选取分割模型的效率。The preview method of the curtain wall provided by this embodiment greatly reduces the generation time of the display model by directly loading the outline of the curtain wall into the visualization window without 3D rendering, so that the user can know the actual curtain wall of the used segmentation model in time. The division effect is improved, and the efficiency of the user selecting the division model is improved.
参阅图6所示,基于同一发明构思,本实施例还提供了一种幕墙的预览系统100,包括窗口生成单元110、参照物获取单元120、幕墙分割单元130、模型生成单元140、模型显示单元150。Referring to FIG. 6, based on the same inventive concept, the present embodiment also provides a curtain
窗口生成单元110用以生成计算机设备的可视化窗口。参照物获取单元120用以获取目标幕墙以及初始轴网线。幕墙分割单元130用以根据预设的分割模型,生成幕墙的子幕墙轮廓线。模型生成单元140用以根据目标幕墙、初始轴网线以及子幕墙轮廓线构建目标模型。模型显示单元150用以在所述可视化窗口显示所述目标模型。The
本实施例提供的幕墙的预览系统通过将幕墙的轮廓线不经过三维渲染,直接加载至可视化窗口的方式,大大减少了显示模型的生成时间,使得用户能够及时获知所使用的分割模型实际的幕墙划分效果,进而提高了用户选取分割模型的效率。The preview system of the curtain wall provided by this embodiment greatly reduces the generation time of the display model by directly loading the outline of the curtain wall into the visualization window without 3D rendering, so that the user can know the actual curtain wall of the segmentation model used in time. The division effect is improved, and the efficiency of the user selecting the division model is improved.
以上对本申请实施例所提供的一种幕墙的预览方法、系统及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的技术方案及其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。The method, system and storage medium for previewing a curtain wall provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only used for Help to understand the technical solution of the present application and its core idea; those of ordinary skill in the art should understand: it can still make modifications to the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements to some of the technical features; and these modifications Or alternatively, the essence of the corresponding technical solution does not deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110476651.8A CN113076040B (en) | 2021-04-29 | 2021-04-29 | Curtain wall preview method, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110476651.8A CN113076040B (en) | 2021-04-29 | 2021-04-29 | Curtain wall preview method, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113076040A CN113076040A (en) | 2021-07-06 |
CN113076040B true CN113076040B (en) | 2022-10-25 |
Family
ID=76616144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110476651.8A Active CN113076040B (en) | 2021-04-29 | 2021-04-29 | Curtain wall preview method, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113076040B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114004930A (en) * | 2021-10-28 | 2022-02-01 | 广东三维家信息科技有限公司 | Three-dimensional model generation method, device, equipment and storage medium |
CN115859412B (en) * | 2022-12-23 | 2023-10-20 | 中国建筑西南设计研究院有限公司 | Curtain wall rapid generation method, device and equipment based on BIM |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102243653B1 (en) * | 2014-02-17 | 2021-04-23 | 엘지전자 주식회사 | Didsplay device and Method for controlling thereof |
CN108121873A (en) * | 2017-12-25 | 2018-06-05 | 广州江河幕墙系统工程有限公司 | A kind of application process of buildings model in curtain wall construction |
CN109271654B (en) * | 2018-07-19 | 2023-04-18 | 平安科技(深圳)有限公司 | Model contour segmentation method and device, storage medium and terminal |
CN111552917B (en) * | 2020-05-21 | 2023-01-24 | 广州市第四装修有限公司 | Curtain wall construction method, device and equipment based on BIM and storage medium |
CN111666126B (en) * | 2020-06-09 | 2021-06-29 | 中亿丰建设集团股份有限公司 | Building Internet of things integration system and method based on 3d visualization code-free development technology |
-
2021
- 2021-04-29 CN CN202110476651.8A patent/CN113076040B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113076040A (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB2555698B (en) | Three-dimensional model manipulation and rendering | |
US9886530B2 (en) | Computing camera parameters | |
JP4131993B2 (en) | Arc length re-parameterization | |
US7812839B2 (en) | Method for creating 3-D curved suface by using corresponding curves in a plurality of images | |
KR101867991B1 (en) | Motion edit method and apparatus for articulated object | |
EP1560163B1 (en) | Wrap deformation using subdivision surfaces | |
CN113076040B (en) | Curtain wall preview method, system and storage medium | |
US10127720B2 (en) | Object modeling in multi-dimensional space | |
EP0926628A2 (en) | mpparatus and method for generating progressive polygon data | |
JP3104638B2 (en) | 3D image creation device | |
CN109658524A (en) | A kind of edit methods of threedimensional model, system and relevant apparatus | |
CN113034662A (en) | Virtual scene rendering method and device, storage medium and electronic equipment | |
EP4195086A1 (en) | Computer aided generative design with feature thickness control to facilitate manufacturing and structural performance | |
CN114237436B (en) | Camera path drawing method and rendering interaction system based on camera path drawing | |
CN114708391A (en) | Three-dimensional modeling method, three-dimensional modeling device, computer equipment and storage medium | |
CN104240301B (en) | Geological surface reconstructing method and equipment | |
Moustakides et al. | 3D image acquisition and NURBS based geometry modelling of natural objects | |
KR102233148B1 (en) | Apparatus and method of heritage modeling | |
CA2716257A1 (en) | System and method for interactive painting of 2d images for iterative 3d modeling | |
JP3309841B2 (en) | Synthetic moving image generating apparatus and synthetic moving image generating method | |
JP3575469B2 (en) | Synthetic moving image generating apparatus and synthetic moving image generating method | |
KR101673442B1 (en) | The method and apparatus for remeshing visual hull approximation by DBSS(displaced butterfly subdivision surface) | |
CN118411498A (en) | Image processing method and device in virtual space and electronic equipment | |
JP2006092195A (en) | Image processor and image processing method | |
JP2017084214A (en) | Information processing system, control method thereof, and program |
Legal Events
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250411 Address after: Room 210, 2nd Floor, Dongcheng Street Office, No. 36 Renmin East Road, Zhaoling District, Luohe City, Henan Province 462300 Patentee after: Luohe Peihao Building Materials Co.,Ltd. Country or region after: China Address before: Room 701, East Building, innovation and Research Center, No.8 Yanzheng West Avenue, Wujin District, Changzhou City, Jiangsu Province Patentee before: Jiuling (Jiangsu) Digital Intelligent Technology Co.,Ltd. Country or region before: China |