Method, device and equipment for generating stacked ceiling and storage medium
Patent Information
- Application Number
- CN202311639661.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-12-01
AI Technical Summary
[0003]本公开提供了一种叠级吊顶生成方法、装置、设备及存储介质,以解决或缓解现有技术中的一项或更多项技术问题
[0015]根据本公开实施例提供的叠级构件生成方法、装置、设备及存储介质,通过区域绘制操作可以在显示界面展示多级吊顶的三维模型,并在选取需要设置叠级构件的两个吊顶区域之间的目标边界后,可以在两个相邻吊顶区域之间生成目标叠级构件,同时可以对两个相邻吊顶区域中的第二吊顶区域进行伸缩处理,使得两个吊顶区域可以通过目标叠级构件连接,从而可以快速地在两个吊顶区域之间生成目标叠级构件,简化了叠级吊顶的生成。
Smart Images

Figure CN117633982B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to the fields of interior design and 3D modeling technology, specifically to a method, apparatus, equipment and storage medium for generating tiered ceilings. Background Technology
[0002] In ceiling design, besides single-level ceilings, there are also multi-level ceiling designs. These typically involve multiple ceiling areas of varying heights, connected by tiered components. Currently, in the interior design field, how to easily and quickly implement tiered ceiling designs using design tools is becoming a key research focus. Summary of the Invention
[0003] This disclosure provides a method, apparatus, device, and storage medium for generating tiered ceilings to solve or alleviate one or more technical problems in the prior art.
[0004] Firstly, this disclosure provides a method for generating a tiered ceiling, including:
[0005] In response to the region drawing operation, the 3D model of the multi-level ceiling corresponding to the region drawing operation is displayed on the display interface. The multi-level ceiling includes two ceiling regions that are at different distances from the reference plane and need to be connected by stacking components.
[0006] In response to a first selection operation on the target boundary between two ceiling areas and a second selection operation on the stacked component template, a target stacked component connected to the first ceiling area in the two ceiling areas is displayed in the 3D model, and the second ceiling area in the two ceiling areas in the 3D model is updated to be displayed as a target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area.
[0007] Secondly, this disclosure provides a stacked component generation apparatus, including:
[0008] The first display unit, in response to the area drawing operation, displays a 3D model of the multi-level ceiling corresponding to the area drawing operation on the display interface. The multi-level ceiling includes two ceiling areas that are at different distances from the reference plane and need to be connected by stacking components.
[0009] The second display unit is used to respond to a first selection operation on the target boundary between two ceiling areas and a second selection operation on the stacked component template, to display the target stacked component connected to the first ceiling area in the two ceiling areas in the 3D model, and to update the second ceiling area in the two ceiling areas in the 3D model to be the target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area.
[0010] Thirdly, an electronic device is provided, comprising:
[0011] At least one processor; and
[0012] The memory is communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the methods described in the present disclosure.
[0014] Fourthly, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform any of the methods according to embodiments of the present disclosure.
[0015] According to the method, apparatus, device, and storage medium for generating stacked components provided in the embodiments of this disclosure, a three-dimensional model of a multi-level ceiling can be displayed on the display interface through a region drawing operation. After selecting the target boundary between two ceiling regions where stacked components need to be set, a target stacked component can be generated between two adjacent ceiling regions. At the same time, the second ceiling region in the two adjacent ceiling regions can be stretched or shrunk so that the two ceiling regions can be connected through the target stacked component. This allows for the rapid generation of a target stacked component between two ceiling regions, simplifying the generation of stacked ceilings.
[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0017] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments provided according to this disclosure and should not be construed as limiting the scope of this disclosure.
[0018] Figure 1 This is a structural diagram of a system for applying a tiered ceiling generation method according to an embodiment of this disclosure;
[0019] Figure 2 This is a flowchart illustrating a method for generating a tiered ceiling according to another embodiment of this disclosure;
[0020] Figures 3A to 3C A schematic diagram of the planar structure of a multi-level suspended ceiling provided in an embodiment of this disclosure;
[0021] Figures 4A to 4D This is a schematic diagram illustrating the operation of a method for generating a tiered ceiling according to an embodiment of this disclosure;
[0022] Figure 5 This is a plan view of the multi-level suspended ceiling provided in the embodiments of this disclosure;
[0023] Figure 6 yes Figure 4C Enlarged view of intermediate stacked member 1;
[0024] Figure 7 yes Figure 4D Another perspective view of the 3D model;
[0025] Figure 8 This is a schematic diagram illustrating the generation of the offset curve provided in an embodiment of this disclosure;
[0026] Figure 9 This is a schematic diagram of the process of a tiered ceiling provided in one embodiment of the present disclosure;
[0027] Figure 10 This is a schematic block diagram of a tiered ceiling generation device provided in one embodiment of the present disclosure;
[0028] Figure 11 This is a block diagram of an electronic device used to implement the tiered ceiling generation method of the embodiments of this disclosure. Detailed Implementation
[0029] The present disclosure will now be described in further detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0030] This disclosure provides a method, apparatus, electronic device, and storage medium for generating tiered ceilings. Specifically, the tiered ceiling generation method of this disclosure can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, smart voice interaction device, smart home appliance, wearable smart device, aircraft, smart vehicle terminal, etc. The terminal can also include a client, which can be an audio client, video client, browser client, instant messaging client, or mini-program, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0031] In related technologies, ceiling and wall design tools can only generate single-level ceilings, meaning only one ceiling area can be set, and cannot generate tiered ceilings.
[0032] To address at least one of the aforementioned problems, embodiments of this disclosure provide a method, apparatus, device, and storage medium for generating multi-level suspended ceilings. Through region drawing operations, a three-dimensional model of a multi-level suspended ceiling can be displayed on a screen. After selecting the target boundary between two suspended ceiling regions where multi-level components need to be set, a target multi-level component can be generated between the two adjacent suspended ceiling regions. Simultaneously, the second suspended ceiling region within the two adjacent suspended ceiling regions can be stretched or retracted, allowing the two suspended ceiling regions to be connected through the target multi-level component. This enables the rapid generation of a target multi-level component between two suspended ceiling regions, simplifying the generation of multi-level suspended ceilings.
[0033] The following description, in conjunction with the accompanying drawings, illustrates the scheme of this disclosure.
[0034] Figure 1 This is a structural diagram of a system for applying a tiered ceiling generation method according to an embodiment of this disclosure; please refer to... Figure 1 The system includes a terminal 110 and a server 120, etc.; the terminal 110 and the server 120 are connected via a network, such as a wired or wireless network.
[0035] The terminal 110 can be used to display a graphical user interface. This terminal interacts with the user through the graphical user interface, for example, by downloading and running a corresponding client, by calling and running a corresponding mini-program, or by presenting a corresponding graphical user interface when logging into a website. In this embodiment, in response to a region drawing operation, the terminal 110 displays a 3D model of a multi-level ceiling corresponding to the region drawing operation on the display interface. The multi-level ceiling includes two ceiling regions with different distances from the reference plane and need to be connected by stacked components. In response to a first selection operation of the target boundary between the two ceiling regions and a second selection operation of the stacked component template, the terminal displays a target stacked component connected to the first ceiling region in the two ceiling regions in the 3D model, and updates the second ceiling region in the 3D model to be the target ceiling region connected to the target stacked component. The target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling region is the ceiling region obtained after scaling the second ceiling region. The server 120 can be used to perform scaling processing on the second ceiling region.
[0036] It should be noted that while the example shown is an application page, the display interface can also be a webpage or other types of pages. Furthermore, the application can be an application installed on a desktop computer, an application installed on a mobile device, or a mini-program embedded within an application. Of course, the extension and retraction of the second ceiling area can also be handled by the terminal.
[0037] It should be noted that the above application scenarios are shown only to facilitate understanding of the spirit and principles of this disclosure, and the embodiments of this disclosure are not limited in any way. On the contrary, the embodiments of this disclosure can be applied to any applicable scenario.
[0038] The following is a detailed description. It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.
[0039] Figure 2 This is a flowchart illustrating a method for generating a tiered suspended ceiling according to another embodiment of this disclosure; please refer to... Figure 2 This disclosure provides a method 200 for generating a tiered ceiling, including steps S201 to S202.
[0040] Step S201: In response to the region drawing operation, the three-dimensional model of the multi-level ceiling corresponding to the region drawing operation is displayed on the display interface. The multi-level ceiling includes two ceiling regions that are at different distances from the reference plane and need to be connected by stacking components.
[0041] Step S202: In response to the first selection operation of the target boundary between the two ceiling areas and the second selection operation of the stacked component template, the target stacked component connected to the first ceiling area in the two ceiling areas is displayed in the 3D model, and the second ceiling area in the two ceiling areas in the 3D model is updated to be displayed as the target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area.
[0042] The method for generating tiered ceilings provided in this disclosure can be used to generate tiered ceilings, for example, to support the tiered ceiling design capabilities of ceiling and wall tools and improve ceiling functionality.
[0043] A tiered ceiling can include tiered components and multiple tiered areas, i.e., a multi-level ceiling with multiple ceiling areas. It can be understood that for staggered ceiling areas (with the ceiling as the reference plane, staggered ceiling areas refer to ceiling areas at different distances from the ceiling), tiered components need to be correctly installed. The design goal of tiered components is to support staggered ceiling designs, that is, to create height differences between different ceiling areas in a multi-level ceiling. At the same time, tiered components can also achieve decorative splicing effects between ceiling areas with different height differences, achieving an aesthetically pleasing effect. Furthermore, tiered components can also be used to install components such as LED strips.
[0044] It is understandable that a multi-level ceiling can include multiple ceiling areas. Figures 3A to 3C This is a schematic diagram of a multi-level suspended ceiling structure provided in one embodiment of the present disclosure. It can be understood that... Figure 3A and Figure 3C These are all bottom views of multi-level suspended ceilings, i.e., projection views from below towards the ceiling. The numbers in the suspended ceiling areas indicate the distance of the respective suspended ceiling area from the ceiling (reference plane). This distance can be called the distance parameter (lower ceiling or elevation). The dashed lines indicate the boundaries between suspended ceiling areas. Figure 3A In this multi-level ceiling design, there are three areas: the upper left ceiling area is 100mm from the ceiling, the lower left ceiling area is 300mm from the ceiling, and the right ceiling area is 200mm from the ceiling. Figure 3B In this multi-level ceiling design, there are two ceiling areas: an inner and an outer one. The distance from the surface of the inner ceiling area is 0mm, while the distance from the surface of the outer ceiling area is 200mm. For example... Figure 3C In this multi-level ceiling, there are three ceiling areas: the upper middle ceiling area has a clearance parameter of 100mm, the upper outer ceiling area has a clearance parameter of 200mm, and the lower ceiling area has a clearance parameter of 300mm.
[0045] Understandable. Figures 3A to 3C This only shows the possible forms of multi-level ceilings; the specific form can be set according to design requirements.
[0046] In step S201, the area drawing operation can be a multi-level ceiling drawing operation. For example, the area drawing operation can include drawing such as... Figures 3A to 3C The diagram shows a planar bottom view, and the elevation parameters for each ceiling area are set. Alternatively, this can be achieved by drawing a 3D model.
[0047] In step S202, the target boundary needs to be set as the boundary of the target stacked component. The stacked component template can be a stacked component template selected by the user from the stacked component template library. By selecting the target boundary and the stacked component template, the parametric shape of the target stacked component to be generated can be determined, thereby allowing the target stacked component to be displayed in the 3D model. At the same time, one of the two suspended ceiling areas can be automatically expanded or shrunk to connect with the target stacked component, thus achieving the correct generation of the stacked component and the splicing between the stacked component and suspended ceiling areas with different height differences.
[0048] Step S202 allows the tiered ceiling to be displayed in a 3D model, which includes the ceiling area and the target tiered components between the ceiling areas.
[0049] Figures 4A to 4D This is a schematic diagram illustrating the operation of a tiered ceiling generation method according to an embodiment of the present disclosure; in one embodiment, please refer to... Figure 4A The left side of the display interface can be the drawing area 401, and the right side can be a 3D view area 402 containing the 3D model. By clicking "Area Editing," you can enter the area editing operation (area drawing operation), where you can edit and divide the planar view 404 (i.e., the rectangle) in the drawing area 401. In addition, you can set the parameters of the ceiling area in the parameter setting area 403, such as the distance from the surface, the division direction, etc. Furthermore, the rectangle in the planar view 404 can also be drawn, or generated by selecting a wall surface from the home decoration model, such as the ceiling plane.
[0050] Figure 4B It shows that Figure 4AIn the drawing area 401, the planar view 404 is divided into sub-area a and sub-area b through area editing operations to obtain planar view 410. The distance parameter of sub-area a is set to 0mm, and the distance parameter of sub-area b is set to 300mm, that is, sub-area a is set on the ceiling, and sub-area b is located 300mm below the ceiling. At this time, the stereoscopic view in the 3D view area 402 will also be updated accordingly and display the three-dimensional model 405 of the multi-level ceiling. The three-dimensional model 405 includes ceiling area A and ceiling area B that need to be connected by stacked components. Ceiling area A corresponds to sub-area a in the planar view, and ceiling area B corresponds to sub-area b in the planar view.
[0051] It can be understood that the 3D view area 402 contains a 3D model of a multi-level ceiling, which is generated based on the planar view 404 and parameters such as the distance from the surface. The angle and size of the 3D model of the multi-level ceiling in the 3D view area 402 can be changed by rotating and scaling. At the same time, the size of the 3D view area 402 can also be scaled by dragging, that is, its area in the entire display interface can be changed.
[0052] Continue to refer to Figure 4B After generating and displaying the multi-level ceiling, the target boundary can be selected using the "Select Area" control. In this embodiment, the boundary 406 between sub-region a and sub-region b in the drawing area 401 can be selected, or a boundary between ceiling area A and ceiling area B in the 3D model 405 can be selected (this boundary can be the boundary of ceiling area A near ceiling area B, or the boundary of ceiling area B near ceiling area A).
[0053] Then you can click Figure 4B The "Cascading Design" control in the middle displays Figure 4C The interface shown is Figure 4C The interface can display a stacked component settings area 407. By clicking the "Style" control within the stacked component settings area 407, a stacked component library 408 can be displayed on the left side of this area. The stacked component library 408 can display pre-configured stacked component templates, such as the names and thumbnails of stacked components 1 to 4. By selecting one of the stacked component templates, for example, selecting stacked component 1 as the stacked component template, the interface can be displayed... Figure 4D In the interface, specifically in the 3D model 405, the ceiling region B (the first ceiling region) remains unchanged, and target stacked components 409 are generated on the ceiling region B (generated based on the selected stacked component template and target boundaries). Figure 4C The suspended ceiling area A (second suspended ceiling area) was transformed into suspended ceiling area A' (target suspended ceiling area), so that suspended ceiling area A' was connected to the target stacked component, thereby realizing the overlap of the two suspended ceiling areas through the stacked component.
[0054] in addition, Figure 4D In the middle, subregion a can also be transformed into subregion a', that is, the boundary extends to the position of the dashed line.
[0055] It's understandable, if it's by Figure 4C guide Figure 4D During the process, no expansion or contraction treatment is applied to ceiling area A (i.e., no expansion or contraction treatment is used). Figure 4C The previous structure would have resulted in a gap between the ceiling area A and the target stacked component 409, affecting aesthetics and safety. This embodiment can automatically generate the target stacked component between two ceiling areas, and can also extend or retract one of the ceiling areas (e.g., by expanding or shrinking the ceiling area), allowing both ceiling areas to connect with the target stacked component. This achieves the effect of overlapping the outline of the target stacked component with ceiling areas at different heights by extending or retracting them.
[0056] It is understood that this embodiment only illustrates the generation process of the target stacked components. The arrangement of the display interface area, the area of the area, and the settings of each control can all be adjusted according to the actual situation. For example, the drawing area 401 can be omitted, and three-dimensional modeling can be performed directly in the 3D view area. In addition, Figures 4A to 4D The explanation uses only the example of a multi-level suspended ceiling including suspended ceiling area A and suspended ceiling area B. In other embodiments, a multi-level suspended ceiling may also include other suspended ceiling areas. Furthermore, in this embodiment, the reference plane is the plane containing the ceiling; in other embodiments, the reference plane may be a plane at other angles, such as a vertical surface.
[0057] This embodiment of the disclosure allows for the display of a 3D model of a multi-level suspended ceiling through region drawing operations. After selecting the target boundary between two suspended ceiling regions where stacked components need to be set, target stacked components can be generated between the two adjacent suspended ceiling regions. Simultaneously, the second suspended ceiling region within the two adjacent regions can be scaled, allowing the two suspended ceiling regions to be connected through the target stacked components. This enables the rapid generation of target stacked components between two suspended ceiling regions, achieving overlapping of suspended ceiling regions. This simplifies the generation of stacked suspended ceilings, is easy to operate, and has a low barrier to entry.
[0058] In some embodiments, step S201, in response to the region drawing operation, displays a 3D model of a multi-level ceiling corresponding to the region drawing operation on the display interface, including:
[0059] In response to the region drawing operation, a plan view of the multi-level ceiling is displayed in the first region of the display interface, and a 3D model of the multi-level ceiling is displayed in the second region of the display interface, wherein each ceiling region in the multi-level ceiling corresponds to a sub-region in the plan view;
[0060] The first selection operation of the target boundary between the two ceiling areas in step S202 includes: the first selection operation of the target boundary between two adjacent sub-areas corresponding to the two ceiling areas in the plan view.
[0061] Continue to refer to Figures 4A to 4B The first area can be drawing area 401, and the second area can be 3D view area 402. Area drawing operations can be performed using drawing area 401. For example, drawing a planar view in drawing area 401 can be understood as a projection view of a multi-level ceiling along a direction perpendicular to the reference plane and pointing towards the reference plane. With the reference plane as the ceiling, the planar view can be a bottom view of the multi-level ceiling. Figure 4B In the plan view 410, there are sub-regions a and b, and each sub-region can correspond to a ceiling area in the 3D model.
[0062] Users can draw a plan view 410 in the drawing area 401 and then display the corresponding 3D model of the multi-level ceiling in the 3D model. They can also update the materials of the plan view 410 and the 3D model 405 by adding materials to sub-areas of the plan view 410.
[0063] It is understandable that when drawing a plan view, there is no need to consider whether the ceiling area corresponding to the sub-area needs to be scaled. It is only necessary to simply use dividing lines to represent the boundaries of the two sub-areas, which simplifies the operation process.
[0064] For example Figure 4B In the diagram, sub-regions a and b can be separated by only the dividing line 406. Sub-regions a and b are adjacent regions, and the dividing line 406 is the target boundary between them. That is, for multi-level ceilings, there is no need to consider the deformation of the ceiling region after setting the stacked components when drawing the region. Two ceiling regions that need to set the stacked components can be drawn as two adjacent sub-regions in the plan view, that is, two sub-regions with a common boundary, which simplifies the drawing of multi-level ceilings.
[0065] In addition, when selecting the target boundary, you can directly select the boundary between two sub-regions from the planar view as the target boundary, such as selecting the target boundary 406 between sub-region a and sub-region b.
[0066] This embodiment allows for the rapid creation of multi-level ceilings through the first area, requiring no 3D modeling skills; it is simple to operate and has a low barrier to entry. It also allows for quick selection of target boundaries, making the operation more intuitive.
[0067] In some embodiments, the region drawing operation includes drawing each sub-region in the planar view and setting the distance parameter of each sub-region, where the distance parameter is the distance between the sub-region corresponding to the distance parameter and the reference plane.
[0068] This embodiment allows for the rapid drawing of a plan view in the drawing area 401, and the setting of surface parameters for each sub-area in the plan view can be quickly set through the parameter setting area 403. This eliminates the need for drawing multi-level ceilings using 3D modeling, making the operation fast.
[0069] In some embodiments, method 200 further includes: in response to a first selection operation on a target boundary between two ceiling regions and a second selection operation on a stacked component template, updating the second sub-region in the plan view corresponding to the second ceiling region to the target sub-region corresponding to the target ceiling region.
[0070] like Figure 4C and 4D As shown, while expanding the ceiling area A (second ceiling area) to ceiling area A' (target ceiling area), the sub-area a (second sub-area) in the first area can also be expanded to sub-area a' (target sub-area). That is, when sub-area a' is selected, the boundary can be seen to be located at the position of the dashed line, and the target stacked component can be not displayed in the plan view.
[0071] Based on the above embodiments, step S202, which updates the second ceiling region in the two ceiling regions of the three-dimensional model to the target ceiling region connected to the target stacked component, includes:
[0072] Based on the first preset rule, the second ceiling area is determined from the two ceiling areas;
[0073] Based on the setting parameters of the target cascaded components, the second suspended ceiling area is expanded outward to obtain the target suspended ceiling area.
[0074] The first preset rule can be a pre-set rule. Based on the first preset rule, the second ceiling area, that is, the ceiling area that needs to be expanded, can be determined from the two ceiling areas.
[0075] Figure 5 This is a plan view of the multi-level suspended ceiling provided in this embodiment; please refer to... Figure 5 In some embodiments, determining the second ceiling area from the two ceiling areas based on a first preset rule includes:
[0076] Based on the preset sequential connection direction of the boundaries in the suspended ceiling area, determine the first direction of the target boundary in one of the two suspended ceiling areas, and the second direction of the target boundary in the other of the two suspended ceiling areas;
[0077] Determine the target direction that matches the placement direction of the target stacked component from the first direction and the second direction, and determine the ceiling area corresponding to the target direction as the second ceiling area.
[0078] It is understood that in the first preset rule, a preset sequential connection direction for the boundaries of the ceiling area can be set. This sequential connection direction is related to the contour shape. For example, in this field, the preset sequential connection direction for the outer contour boundary is usually counterclockwise, and the preset sequential connection direction for the inner contour boundary is clockwise. Since the contours of sub-region a and sub-region b are the outer boundaries of the region, sub-region a and sub-region b are the outer contours. The directions of the four boundaries in sub-region a and the directions of the four boundaries in sub-region b are as follows: Figure 5 As shown, the direction of target boundary 501 in sub-region a (first direction) is from bottom to top, and the direction of target boundary 501 in sub-region b (second direction) is from top to bottom.
[0079] Figure 6 yes Figure 4C Enlarged view of intermediate stacked member 1; Figure 7 yes Figure 4D Another perspective view of the 3D model; please refer to... Figure 6 and Figure 7 The stacked component 1 may include a first part 601, a second part 602, and a third part 603. The target stacked component 710 has a shape approximately the same as the selected stacked component template, i.e., the stacked component 1, but the dimensions may vary slightly. It is understood that the stacked component template is directional, for example... Figure 6 In the middle, at the frontal view, the first part 601 on the left is higher than the third part 603 on the right. Therefore, after generating the target stacked component, at the frontal view of the target stacked component, the first segment 701 should still be higher than the third segment 703.
[0080] like Figure 7 As shown, when placing target stacked components between suspended ceiling areas, it is first necessary to ensure that the target stacked components are placed at a frontal viewing angle, that is, the first segment 701 of the target stacked component is higher than the third segment 703, and... Figure 7 In the image, the viewing angle is the direction indicated by the arrow. That is, when looking from the direction indicated by the arrow, the target stacked component is the first segment 701, which is higher than the third segment 703. This direction is the placement direction of the target stacked component.
[0081] In addition, due to Figure 5 The plan view shown is a bottom view, so... Figure 7 The arrow in the middle is placed at a downward angle. Figure 5 This yields an upward arrow. That is, the placement direction of the target stacked component corresponds to... Figure 5 The middle direction is from bottom to top.
[0082] Next, it can be determined that the placement direction of the target stacked component is the same as (i.e., matching) the direction of the target boundary 501 in sub-region a (the first direction, from bottom to top). At this time, the first direction is the target direction, and it can be determined that the ceiling area A corresponding to sub-region a is the target ceiling area that needs to be expanded.
[0083] Of course, in other embodiments, the preset sequential connection direction of the outer contour can also be clockwise. When selecting the target direction, matching can also be understood as opposite directions. The specific direction can be set according to the situation.
[0084] In this embodiment, the target area that needs to be expanded can be determined from two ceiling areas by using the first preset rule.
[0085] like Figure 7 As shown, the target stacked component consists of three parts: the first segment 701, the second segment 702, and the third segment 703. Figure 7 In the suspended ceiling area A' (the area enclosed by the solid line in the diagram), the part to the left of the dashed line represents the suspended ceiling area A before its expansion. It can be understood that the second segment 702 needs to be flush with the suspended ceiling area B, and the outer side of the third segment 703, away from the first segment 701, needs to be flush with the edge of the suspended ceiling area B. Meanwhile, suspended ceiling area A (the second suspended ceiling area) needs to expand outwards and contact the surface of the first segment 701 facing the third segment 703. It can be understood that since sub-areas a and b were originally adjacent areas, suspended ceiling area A (the second suspended ceiling area) needs to expand outwards from the location of the dashed line until it contacts the first segment 701, thus obtaining the suspended ceiling area A' shown in the diagram.
[0086] After determining the target ceiling area, the required expansion dimension of ceiling area A (the second ceiling area) can be obtained based on the setting parameters of the target tiered components, such as the width of the second segment 702 and the thickness of the first segment 701. Then, the second ceiling area can be expanded to obtain the target ceiling area.
[0087] In this embodiment, the determination and expansion of the second ceiling area can be automatically realized without the need for manual expansion of the second ceiling area, making the operation more convenient and faster.
[0088] In addition, the shape of the stacked component template can be varied, and is not limited to... Figure 6 The structure shown, regardless of the type of tiered component template used, can achieve external expansion deformation of the ceiling area using the above method.
[0089] It is understandable that expansion and contraction processing can include both outward expansion and inward contraction. In the case of inward contraction, for example, the ceiling area A can be kept unchanged, the target stacked component can be set to be connected to the ceiling area A, and then the ceiling area B can be contracted inward to be aligned with the target stacked component. In this case, when determining the target direction, the direction opposite to the placement direction of the target stacked component can be taken as the target direction.
[0090] In some embodiments, based on the setting parameters of the target stacked components, the second suspended ceiling area is expanded outward to obtain the target suspended ceiling area, including:
[0091] Based on the setting parameters of the target stacked components, the offset of each boundary in the second ceiling area is determined, and the target boundary is one of the boundaries in the second ceiling area;
[0092] Based on the offset of each boundary and the direction of each boundary in the second ceiling area, the offset curve corresponding to each boundary is determined.
[0093] The offset curves corresponding to each boundary are connected to obtain the target ceiling area.
[0094] It is understandable that when performing the outward expansion process, the offset of each boundary of the second ceiling area can be determined first based on the setting parameters of the target stacked components. Since the ceiling area can be regarded as a plate-like structure with uniform thickness, determining each boundary of the second ceiling area refers to the offset of the four sides of the second ceiling area, that is, corresponding to... Figure 5 The offsets of the four edges containing the neutron region a.
[0095] In some embodiments, determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacked member includes: determining the offset of the target boundary based on the setting parameters of the target stacked member; and setting the offset of the remaining boundaries in each boundary, excluding the target boundary, as the base value.
[0096] The setting parameters of the target stacked components can determine the offset of the target boundary. The remaining boundaries can be set to the base value, which can be set to 0, thereby determining the offset of each boundary in the second ceiling area.
[0097] In some embodiments, based on the offset of each boundary and the direction of each boundary in the second ceiling area, the offset curve corresponding to each boundary is determined, including:
[0098] For the first boundary among all boundaries, with the offset of the first boundary as the base value, the first boundary is determined as the offset curve corresponding to the first boundary.
[0099] If the offset of the first boundary is not the base value, the offset direction of the first boundary is determined based on the direction of the first boundary in the second ceiling area, and the offset curve corresponding to the first boundary is determined based on the offset of the first boundary and the offset direction of the first boundary.
[0100] Based at least on the offset curve of the first boundary, the offset curves corresponding to each boundary are obtained.
[0101] For example, we can iterate through each boundary of the second suspended ceiling area. For each boundary, we can use the first boundary as an example. If the offset of the first boundary is 0, then the first boundary is used as its corresponding offset curve. If the offset of the first boundary is not 0, based on its direction in the second suspended ceiling area, according to the right-hand rule, that is, rotating the direction 90 degrees clockwise, we can obtain its offset direction.
[0102] Figure 8 This is a schematic diagram illustrating the generation of the offset curve provided in an embodiment of this disclosure; as shown... Figure 8 In the image, the left side shows a top view of ceiling region A, and the right side shows schematic diagrams of the various offset curves obtained based on ceiling region A. The target boundary 801 is oriented from bottom to top within ceiling region A, and its offset direction is from left to right. Since the offset of other boundaries besides target boundary 801 is 0, the shape and position of their offset curves are the same as the shape and position of the boundaries.
[0103] Then, the first boundary can be shifted along the offset direction by the offset amount, thus obtaining the offset curve of the first boundary.
[0104] When the first boundary is an arc, if the direction of the first boundary in the second ceiling area is counterclockwise, the radius of the offset curve can be determined as the radius of the first boundary plus the offset. If the direction of the first boundary in the second ceiling area is clockwise, the radius of the offset curve can be determined as the radius of the first boundary minus the offset. Then, based on the radius of the offset curve and the starting and ending angles of the arc of the first boundary, the final offset curve can be determined.
[0105] The offset curve determination method provided in this embodiment can be used to obtain the offset curve of each boundary of the second ceiling area.
[0106] In some embodiments, the offset curves corresponding to each boundary are connected to obtain the target ceiling area, including:
[0107] For the first offset curve in the offset curves corresponding to each boundary, based on the direction of the first offset curve, determine the end point of the first offset curve and the starting point of the second offset curve to which the direction of the first offset curve points, wherein the direction of the first offset curve is the direction of the boundary corresponding to the first offset curve in the second ceiling area.
[0108] If the end point of the first offset curve coincides with the start point of the second offset curve, then the first offset curve and the second offset curve are connected.
[0109] If the end point of the first offset curve does not coincide with the start point of the second offset curve, the first offset curve is converted into a first unbounded curve, and the second offset curve is converted into a second unbounded curve.
[0110] When the first and second unbounded curves intersect, the endpoint of the first offset curve is extended to the intersection point, and the starting point of the second offset curve is extended to the intersection point.
[0111] After determining the offset curve of each boundary in the second ceiling area, the offset curves can be connected to obtain the boundaries of the target ceiling area, thus obtaining the target ceiling area.
[0112] In this embodiment, the offset curves corresponding to each boundary can be traversed. Taking the first offset curve as an example, the direction of the first offset curve is the same as the direction of its corresponding boundary in the second ceiling area. Figure 8 The diagram shows the orientation of each boundary of the suspended ceiling area and the orientation of the corresponding offset curves. The first offset curve can be used as the current offset curve. Based on the orientation of the first offset curve, the start and end points of the first offset curve, as well as the next offset curve, can be determined.
[0113] like Figure 8 In the process, if the current offset curve is offset curve 802, the next offset curve is offset curve 803. Since the endpoint of offset curve 802 does not coincide with the starting point of offset curve 803, offset curves 802 and 803 can be made unbounded, that is, changed from line segments to straight lines without endpoints. If it is an arc, the corresponding unbounded curve can be a complete circle, so the intersection point of the two can be found. Then, the endpoint of offset curve 802 and the starting point of offset curve 803 can both be extended to this intersection point, thus connecting the two.
[0114] If the current offset curve is offset curve 803 and the next offset curve is offset curve 804, since the end point of offset curve 803 coincides with the start point of offset curve 804, it indicates that the two are already connected and no further processing is required.
[0115] In some embodiments, when the first unbounded curve and the second unbounded curve intersect, extending the end point of the first offset curve to the intersection point and extending the start point of the second offset curve to the intersection point may include:
[0116] In the case where the first unbounded curve and the second unbounded curve have a single intersection point, the end point of the first offset curve is extended to the intersection point, and the start point of the second offset curve is extended to the intersection point.
[0117] When the first and second unbounded curves have multiple intersection points, a target intersection point closest to the endpoint of the first offset curve is determined from among the multiple intersection points. The endpoint of the first offset curve is extended to the target intersection point, and the starting point of the second offset curve is extended to the target intersection point. The method provided in this embodiment can quickly connect the offset curves to each other.
[0118] In some embodiments, connecting the offset curves corresponding to each boundary to obtain the target ceiling area further includes:
[0119] If the first and second unbounded curves do not intersect, a fill line is added between the first and second offset curves.
[0120] In some cases, the offset curves are not straight lines or are parallel, and the first and second unbounded curves may not intersect. In such cases, a line can be added between them to connect them.
[0121] In some embodiments, supplementing the line between the first offset curve and the second offset curve includes: setting a line segment between the end point of the first offset curve and the start point of the second offset curve. Supplementing the line can connect the first offset curve and the second offset curve by adding a line segment between the end point of the first offset curve and the start point of the second offset curve.
[0122] Using the above connection method, the offset curves corresponding to each boundary can be connected into a closed contour. The closed contour can be the contour of the target ceiling area, and the target ceiling area can be obtained through this contour.
[0123] Figure 9 This is a schematic diagram of a tiered ceiling system provided in one embodiment of this disclosure; please refer to... Figure 9 In one embodiment, a method for generating a tiered ceiling is provided. This method mainly employs a "regional suspension (elevation) + tiered components + region extension" approach. After drawing the regions of the multi-level ceiling, the off-surface parameters (suspension / elevation) of these regions are set. Then, target tiered components are placed on the paths (target boundaries) between regions. Finally, the parameters of the target tiered components influence the expansion and contraction of the relevant regions. Since tiered components can solve the problem of split-level scenarios in home decoration design, the process can be mainly divided into three parts (corresponding to...). Figure 9 (The three columns in the middle):
[0124] The first column, staggered levels, introduces height differences between different ceiling areas. This mainly involves two steps: drawing the stacked areas (i.e., drawing multi-level suspended ceilings in zones) and setting the ceiling height / level for each area (setting different heights for each suspended ceiling area).
[0125] The second column is to generate the target stacked component: Enter the stacked component generation tool, select the path (target boundary) where the stacked component needs to be generated, select the stacked component template in the stacked component library, adjust and adapt the length, width, height, position, orientation and other parameters of the stacked component, and generate the target stacked component.
[0126] The third column achieves the overlapping effect: Enter the area extension calculation, determine the ceiling areas on both sides of the stacked component path (target boundary), adjust the size of the ceiling areas on both sides according to the parameters of the target stacked component, and achieve the effect of staggered layers in different design areas. Specifically, calculate the affected area (i.e. the ceiling area that needs to be expanded and contracted), and then expand the ceiling area outward. Then, you can continue to design on the surface area of the ceiling area, such as setting materials, lighting, etc.
[0127] It is understandable that in home decoration scenarios, the main issue to be addressed in the expansion and contraction of the ceiling area is the outward expansion of the area. For example, an area expansion and contraction design processing module (which can be used to execute the stacked ceiling generation method provided in the embodiments of this disclosure) can be used to achieve the expansion and contraction of the area.
[0128] In addition, during the region drawing operation, a region design with a topology structure can be provided. This region design can generate regular regions (pure geometric regions, such as rectangular regions) or irregular regions (complex irregular regions), and the specific design can be made according to the situation.
[0129] In one specific embodiment, for the second ceiling area (the inner / outer contour that needs to be extended and retracted), each boundary (HalfEdge) can be represented by a half-edge data structure, and the boundary information (HalfEdgeInfo) corresponding to the boundary can be determined. The boundary information may include the initial boundary of the boundary.
[0130] (baseCurve) information (i.e., information about the boundary before scaling), offset curve (offsetCurve) information (information about the boundary before scaling), and fill line marker (i.e., whether fill line is needed).
[0131] Then, the offset curves in the HalfEdgeInfo of each boundary are connected in a preset sequential order to form a new contour. During the connection process, some line filling is performed according to the status of the patchEnd mark to obtain the target ceiling area.
[0132] Based on the determined area expansion direction (based on the first preset rule), find the outer or inner contour of the corresponding area (i.e., determine the second suspended ceiling area within the suspended ceiling area), and then traverse all boundaries (HalfEdges) corresponding to this contour (second suspended ceiling area):
[0133] 1. For a given boundary (HalfEdge), define it as the current boundary (currentHalfEdge, assuming it is the first boundary mentioned above) and define the next boundary (currentHalfEdge.next) as nextHalfEdge;
[0134] 2. Obtain the boundary information (HalfEdgeInfo) for the current boundary and the next boundary respectively. If the boundary information has been constructed, it can be obtained directly; if it has not been constructed, an initialization operation can be performed. Taking the first boundary as an example, the process of initializing the boundary information (HalfEdgeInfo) is as follows:
[0135] (1) If the offset of the first boundary (halfEdge) is equal to 0 (base value), then the offset curve (offsetCurve) corresponding to the first boundary is equal to the initial boundary (baseCurve) of the first boundary, that is, the first boundary itself;
[0136] (2) If the initial boundary (baseCurve) of the first boundary, that is, the first boundary itself is a straight line, then the offset curve (offsetCurve) corresponding to the first boundary is equal to the distance of the first boundary itself (baseCurve) along its right-hand rule (rightNormal) direction (in the current business scenario, the outer contour is outward expansion and the inner contour is inward contraction, both are taken as rightNormal) offset amount (offset).
[0137] (3) If the first boundary itself (baseCurve) is an arc, add the offset to the radius of the arc counterclockwise, and subtract the offset from the radius of the arc clockwise (the outer contour is expanded and the inner contour is shrunken, both are determined by isCCW (iscounter-clockwise, whether it is counterclockwise), and construct the offset curve (offsetCurve) of the first boundary with the initial and ending angles of the first boundary and the new radius;
[0138] (4) The patchEnd marker is not assigned a value during initialization and is not included by default, meaning no patching is required;
[0139] 3. Connect the offset curve in the current HalfEdgeInfo and the offset curve in the next HalfEdgeInfo, which is the boundary information the current boundary points to:
[0140] (1) If the end point of the current offset curve (currentOffsetCurve, the first offset curve mentioned above) is equal to the start point of the next offset curve (nextOffsetCurve, the second offset curve mentioned above), then the two are already connected and no processing is required.
[0141] (2) Combine the current offset curve (currentOffsetCurve) and the next offset curve
[0142] (nextOffsetCurve) converts to an unbounded curve (currentFullCurve and nextFullCurve): line segments are converted to straight lines, and arcs are converted to full circles;
[0143] (3) Find the intersection point of the current unbounded curve (currentFullCurve) and the next unbounded curve (nextFullCurve):
[0144] ① If there are no intersections, then a patch needs to be added. Set the patch End flag of the current boundary information (currentHalfEdgeInfo) to true.
[0145] ② If there is an intersection point, then modify the endpoint of the current offset curve (currentOffsetCurve) and the starting point of the next offset curve (nextOffsetCurve) to the coordinates of the intersection point;
[0146] ③ If there are multiple intersection points, then modify the endpoint of the current offset curve (currentOffsetCurve) and the starting point of the next offset curve (nextOffsetCurve) to the coordinates of the intersection point closest to the endpoint of the current offset curve (currentOffsetCurve);
[0147] After the above process is completed, each boundary (HalfEdge) of the corresponding contour has its complete boundary information (HalfEdgeInfo). These boundary information (HalfEdgeInfo) are traversed in contour order (direction of each boundary):
[0148] 1. Insert the offset curve of the boundary information (HalfEdgeInfo) into the final contour path;
[0149] 2. If the patchEnd flag of the boundary information (HalfEdgeInfo) is true, then proceed with the patching logic:
[0150] (1) The line completion logic is to directly complete a line segment from the end point of the current offset curve to the start point of the next offset curve;
[0151] 3. Use all offset curves and their supplementary lines in sequence to form a new closed profile (GeomLoop2d), which is the target ceiling area.
[0152] Figure 10 This is a schematic block diagram of a tiered ceiling generation device provided in another embodiment of this disclosure. Please refer to... Figure 10 This disclosure provides a tiered ceiling generation device 1000, which includes the following units.
[0153] The first display unit 1001 is used to respond to the area drawing operation and display the three-dimensional model of the multi-level ceiling corresponding to the area drawing operation on the display interface. The multi-level ceiling includes two ceiling areas that are at different distances from the reference plane and need to be connected by stacking components.
[0154] The second display unit 1002 is used to respond to a first selection operation on the target boundary between two ceiling areas and a second selection operation on the stacked component template, to display a target stacked component connected to the first ceiling area in the two ceiling areas in the three-dimensional model, and to update the second ceiling area in the two ceiling areas in the three-dimensional model to be a target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area.
[0155] In some embodiments, the first display unit 1001 is further configured to:
[0156] In response to the region drawing operation, a plan view of the multi-level ceiling is displayed in the first region of the display interface, and a 3D model of the multi-level ceiling is displayed in the second region of the display interface, wherein each ceiling region in the multi-level ceiling corresponds to a sub-region in the plan view;
[0157] The first selection operation of the target boundary between two ceiling areas includes: the first selection operation of the target boundary between two adjacent sub-areas corresponding to the two ceiling areas in the plan view.
[0158] In some embodiments, the device 1000 further includes:
[0159] The updated display unit is used to respond to a first selection operation on the target boundary between two ceiling areas and a second selection operation on the stacked component template, and to update the display of the second sub-region corresponding to the second ceiling area in the plan view as the target sub-region corresponding to the target ceiling area.
[0160] In some embodiments, the region drawing operation includes drawing each sub-region in the planar view and setting the distance parameter of each sub-region, where the distance parameter is the distance between the sub-region corresponding to the distance parameter and the reference plane.
[0161] In some embodiments, the second display unit 1002 is further configured to:
[0162] Based on the first preset rule, the second ceiling area is determined from the two ceiling areas;
[0163] Based on the setting parameters of the target cascaded components, the second suspended ceiling area is expanded outward to obtain the target suspended ceiling area.
[0164] In some embodiments, the second display unit 1002 is further configured to:
[0165] Based on the preset sequential connection direction of the boundaries in the suspended ceiling area, determine the first direction of the target boundary in one of the two suspended ceiling areas, and the second direction of the target boundary in the other of the two suspended ceiling areas;
[0166] Determine the target direction that matches the placement direction of the target stacked component from the first direction and the second direction, and determine the ceiling area corresponding to the target direction as the second ceiling area.
[0167] In some embodiments, the second display unit 1002 is further configured to:
[0168] Based on the setting parameters of the target stacked components, the offset of each boundary in the second ceiling area is determined, and the target boundary is one of the boundaries in the second ceiling area;
[0169] Based on the offset of each boundary and the direction of each boundary in the second ceiling area, the offset curve corresponding to each boundary is determined.
[0170] The offset curves corresponding to each boundary are connected to obtain the target ceiling area.
[0171] In some embodiments, the second display unit 1002 is further configured to:
[0172] Based on the setting parameters of the target stacked components, determine the offset of the target boundary;
[0173] Set the offset of each boundary other than the target boundary to the base value.
[0174] In some embodiments, the second display unit 1002 is further configured to:
[0175] For the first boundary among all boundaries, with the offset of the first boundary as the base value, the first boundary is determined as the offset curve corresponding to the first boundary.
[0176] If the offset of the first boundary is not the base value, the offset direction of the first boundary is determined based on the direction of the first boundary in the second ceiling area, and the offset curve corresponding to the first boundary is determined based on the offset of the first boundary and the offset direction of the first boundary.
[0177] Based at least on the offset curve of the first boundary, the offset curves corresponding to each boundary are obtained.
[0178] In some embodiments, the second display unit 1002 is further configured to:
[0179] For the first offset curve in the offset curves corresponding to each boundary, based on the direction of the first offset curve, determine the end point of the first offset curve and the starting point of the second offset curve to which the direction of the first offset curve points, wherein the direction of the first offset curve is the direction of the boundary corresponding to the first offset curve in the second ceiling area.
[0180] If the end point of the first offset curve coincides with the start point of the second offset curve, then the first offset curve and the second offset curve are connected.
[0181] If the end point of the first offset curve does not coincide with the start point of the second offset curve, the first offset curve is converted into a first unbounded curve, and the second offset curve is converted into a second unbounded curve.
[0182] When the first and second unbounded curves intersect, the endpoint of the first offset curve is extended to the intersection point, and the starting point of the second offset curve is extended to the intersection point.
[0183] In some embodiments, the second display unit 1002 is further configured to:
[0184] If the first and second unbounded curves do not intersect, a fill line is added between the first and second offset curves.
[0185] In some embodiments, the second display unit 1002 is further configured to:
[0186] Set a line segment between the end point of the first offset curve and the start point of the second offset curve.
[0187] The specific functions and examples of each module and submodule of the apparatus in this disclosure can be found in the relevant descriptions of the corresponding steps in the above method embodiments, and will not be repeated here.
[0188] This disclosure provides an electronic device, including:
[0189] At least one processor; and
[0190] A memory that is communicatively connected to at least one processor; wherein,
[0191] The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform the method of any of the above embodiments.
[0192] This disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform a method according to any of the above embodiments.
[0193] Figure 11 This is a block diagram of an electronic device used to implement the tiered ceiling generation method of the embodiments of this disclosure. Figure 11 As shown, the electronic device includes a memory 1110 and a processor 1120. The memory 1110 stores a computer program that can run on the processor 1120. The number of memories 1110 and processors 1120 can be one or more. The memory 1110 can store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the method provided in the above-described method embodiments. The electronic device may also include a communication interface 1130 for communicating with external devices and performing data exchange and transmission.
[0194] If the memory 1110, processor 1120, and communication interface 1130 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0195] Optionally, in a specific implementation, if the memory 1110, processor 1120 and communication interface 1130 are integrated on a single chip, the memory 1110, processor 1120 and communication interface 1130 can communicate with each other through an internal interface.
[0196] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.
[0197] Further, optionally, the aforementioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile or non-volatile, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous DRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).
[0198] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this disclosure are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)). It is worth noting that the computer-readable storage media mentioned in this disclosure can be non-volatile storage media; in other words, it can be non-transient storage media.
[0199] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0200] In the description of the embodiments of this disclosure, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0201] In the description of the embodiments disclosed herein, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0202] In the description of embodiments of this disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0203] The above description is merely an exemplary embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A method for generating a tiered ceiling, comprising: In response to the region drawing operation, a three-dimensional model of a multi-level ceiling corresponding to the region drawing operation is displayed on the display interface. The multi-level ceiling includes two ceiling regions that are at different distances from the reference plane and need to be connected by a stacking component. In response to a first selection operation on the target boundary between the two ceiling areas and a second selection operation on the stacked component template, a target stacked component connected to the first ceiling area of the two ceiling areas is displayed in the 3D model, and the second ceiling area of the two ceiling areas in the 3D model is updated to be displayed as a target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area; Specifically, updating the second ceiling region in the two ceiling regions of the 3D model to be displayed as the target ceiling region connected to the target stacked component includes: Based on the preset sequential connection direction of the boundaries in the suspended ceiling area, the first direction of the target boundary in one of the two suspended ceiling areas and the second direction of the target boundary in the other of the two suspended ceiling areas are determined. Determine a target direction that matches the placement direction of the target stacked component from the first direction and the second direction, and determine the ceiling area corresponding to the target direction as the second ceiling area; Based on the setting parameters of the target tiered component, the second ceiling area is expanded outward to obtain the target ceiling area.
2. The method according to claim 1, wherein, In response to a region drawing operation, a 3D model of a multi-level ceiling corresponding to the region drawing operation is displayed on the display interface, including: In response to a region drawing operation, a plan view of the multi-level ceiling is displayed in a first region of the display interface, and a three-dimensional model of the multi-level ceiling is displayed in a second region of the display interface, wherein each ceiling region in the multi-level ceiling corresponds to a sub-region in the plan view; The first selection operation of the target boundary between the two suspended ceiling areas includes: the first selection operation of the target boundary between two adjacent sub-areas corresponding to the two suspended ceiling areas in the plan view.
3. The method according to claim 2, further comprising: In response to a first selection operation on the target boundary between the two ceiling areas and a second selection operation on the stacked component template, the second sub-region in the plan view corresponding to the second ceiling area is updated to display as the target sub-region corresponding to the target ceiling area.
4. The method according to claim 2, wherein, The region drawing operation includes drawing each sub-region in the planar view and setting the distance parameter of each sub-region from the plane. The distance parameter is the distance between the sub-region corresponding to the distance parameter and the reference plane.
5. The method according to claim 1, wherein, Based on the setting parameters of the target tiered component, the second ceiling area is expanded outward to obtain the target ceiling area, including: Based on the setting parameters of the target stacked component, the offset of each boundary in the second ceiling area is determined, wherein the target boundary is one of the boundaries in the second ceiling area; Based on the offset of each boundary and the direction of each boundary in the second ceiling area, the offset curve corresponding to each boundary is determined; The target ceiling area is obtained by connecting the offset curves corresponding to each boundary.
6. The method according to claim 5, wherein, Based on the setting parameters of the target stacked components, the offset of each boundary in the second ceiling area is determined, including: Based on the setting parameters of the target stacked component, the offset of the target boundary is determined; Set the offset of each boundary other than the target boundary to the base value.
7. The method according to claim 5, wherein, Based on the offset of each boundary and the direction of each boundary in the second suspended ceiling area, the offset curve corresponding to each boundary is determined, including: For the first boundary among the various boundaries, with the offset of the first boundary as the base value, the first boundary is determined as the offset curve corresponding to the first boundary; If the offset of the first boundary is not the base value, the offset direction of the first boundary is determined based on the direction of the first boundary in the second ceiling area, and the offset curve corresponding to the first boundary is determined based on the offset of the first boundary and the offset direction of the first boundary. Based at least on the offset curve of the first boundary, the offset curves corresponding to each boundary are obtained.
8. The method according to claim 7, wherein, The target ceiling area is obtained by connecting the offset curves corresponding to each boundary, including: For the first offset curve in the offset curves corresponding to each boundary, based on the direction of the first offset curve, the end point of the first offset curve and the starting point of the second offset curve to which the direction of the first offset curve points are determined, wherein the direction of the first offset curve is the direction of the boundary corresponding to the first offset curve in the second suspended ceiling area; If the end point of the first offset curve coincides with the start point of the second offset curve, then the first offset curve and the second offset curve are connected. If the end point of the first offset curve does not coincide with the start point of the second offset curve, the first offset curve is converted into a first boundless curve, and the second offset curve is converted into a second boundless curve. When the first unbounded curve and the second unbounded curve intersect, the end point of the first offset curve is extended to the intersection point, and the start point of the second offset curve is extended to the intersection point.
9. The method according to claim 8, wherein, Connecting the offset curves corresponding to each boundary to obtain the target ceiling area, further includes: If the first unbounded curve and the second unbounded curve do not intersect, a fill line is made between the first offset curve and the second offset curve.
10. The method according to claim 9, wherein, Fill in the gap between the first offset curve and the second offset curve, including: A line segment is set between the end point of the first offset curve and the start point of the second offset curve.
11. A tiered ceiling generation device, comprising: The first display unit is used to respond to the area drawing operation and display a three-dimensional model of the multi-level ceiling corresponding to the area drawing operation on the display interface. The multi-level ceiling includes two ceiling areas that are at different distances from the reference plane and need to be connected by stacking components. The second display unit is configured to respond to a first selection operation on the target boundary between the two ceiling areas and a second selection operation on the stacked component template, displaying a target stacked component connected to the first ceiling area in the two ceiling areas in the 3D model, and updating the second ceiling area in the two ceiling areas in the 3D model to be a target ceiling area connected to the target stacked component; wherein, the target stacked component is a stacked component obtained based on the target boundary and the stacked component template, and the target ceiling area is a ceiling area obtained after scaling the second ceiling area; The second display unit is also used for: Based on the preset sequential connection direction of the boundaries in the suspended ceiling area, the first direction of the target boundary in one of the two suspended ceiling areas and the second direction of the target boundary in the other of the two suspended ceiling areas are determined. Determine a target direction that matches the placement direction of the target stacked component from the first direction and the second direction, and determine the ceiling area corresponding to the target direction as the second ceiling area; Based on the setting parameters of the target tiered component, the second ceiling area is expanded outward to obtain the target ceiling area.
12. The apparatus according to claim 11, wherein, The first display unit is also used for: In response to a region drawing operation, a plan view of the multi-level ceiling is displayed in a first region of the display interface, and a three-dimensional model of the multi-level ceiling is displayed in a second region of the display interface, wherein each ceiling region in the multi-level ceiling corresponds to a sub-region in the plan view; The first selection operation of the target boundary between the two suspended ceiling areas includes: the first selection operation of the target boundary between two adjacent sub-areas corresponding to the two suspended ceiling areas in the plan view.
13. The apparatus according to claim 11, wherein, The second display unit is also used for: Based on the setting parameters of the target stacked component, the offset of each boundary in the second ceiling area is determined, wherein the target boundary is one of the boundaries in the second ceiling area; Based on the offset of each boundary and the direction of each boundary in the second ceiling area, the offset curve corresponding to each boundary is determined; The target ceiling area is obtained by connecting the offset curves corresponding to each boundary.
14. The apparatus according to claim 13, wherein, The second display unit is also used for: For the first boundary among the various boundaries, with the offset of the first boundary as the base value, the first boundary is determined as the offset curve corresponding to the first boundary; If the offset of the first boundary is not the base value, the offset direction of the first boundary is determined based on the direction of the first boundary in the second ceiling area, and the offset curve corresponding to the first boundary is determined based on the offset of the first boundary and the offset direction of the first boundary. Based at least on the offset curve of the first boundary, the offset curves corresponding to each boundary are obtained.
15. The apparatus according to claim 14, wherein, The second display unit is also used for: For the first offset curve in the offset curves corresponding to each boundary, based on the direction of the first offset curve, the end point of the first offset curve and the starting point of the second offset curve to which the direction of the first offset curve points are determined, wherein the direction of the first offset curve is the direction of the boundary corresponding to the first offset curve in the second suspended ceiling area; If the end point of the first offset curve coincides with the start point of the second offset curve, then the first offset curve and the second offset curve are connected. If the end point of the first offset curve does not coincide with the start point of the second offset curve, the first offset curve is converted into a first boundless curve, and the second offset curve is converted into a second boundless curve. When the first unbounded curve and the second unbounded curve intersect, the end point of the first offset curve is extended to the intersection point, and the start point of the second offset curve is extended to the intersection point.
16. The apparatus according to claim 15, wherein, The second display unit is also used for: If the first unbounded curve and the second unbounded curve do not intersect, a fill line is made between the first offset curve and the second offset curve.
17. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method of any one of claims 1-10.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-10.
Citation Information
Patent Citations
Cascade suspended ceiling design method and system and storage equipment
CN108170935A
Drawing method and related equipment
CN108182309A