CN117633982A - Method, device, equipment and storage medium for generating stacked suspended ceiling - Google Patents
Method, device, equipment and storage medium for generating stacked suspended ceiling Download PDFInfo
- Publication number
- CN117633982A CN117633982A CN202311639661.4A CN202311639661A CN117633982A CN 117633982 A CN117633982 A CN 117633982A CN 202311639661 A CN202311639661 A CN 202311639661A CN 117633982 A CN117633982 A CN 117633982A
- Authority
- CN
- China
- Prior art keywords
- ceiling
- boundary
- target
- offset
- area
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000004044 response Effects 0.000 claims abstract description 16
- 230000015654 memory Effects 0.000 claims description 26
- 238000012545 processing Methods 0.000 claims description 22
- 230000008569 process Effects 0.000 claims description 19
- 230000008602 contraction Effects 0.000 claims description 9
- 230000001502 supplementing effect Effects 0.000 claims description 8
- 238000013461 design Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 4
- 238000005034 decoration Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000000463 material Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000009916 joint effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Architecture (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The disclosure provides a method, a device, equipment and a storage medium for generating a stacked suspended ceiling, which relate to the technical field of computers and are realized by the following scheme: responding to the region drawing operation, and displaying a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the multi-stage suspended ceiling comprises two suspended ceiling regions; in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking member template, displaying a target stacking member connected with a first ceiling area of the two ceiling areas in the three-dimensional model, and displaying a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected with the target stacking member; the target stacking component is a stacking component obtained based on the target boundary and the stacking component template. The method for generating the stacked suspended ceilings can quickly generate the target stacked component between two suspended ceilings, and simplifies the generation of the stacked suspended ceilings.
Description
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of decoration design and three-dimensional modeling, and specifically relates to a stacked suspended ceiling generation method, device, equipment and storage medium.
Background
In the design of suspended ceilings, in addition to the planar design of a primary suspended ceiling, there is a stacking scene of a multi-stage suspended ceiling, and in this scene, a plurality of suspended ceiling areas with different heights are usually provided, and the different suspended ceiling areas are connected into a stacking suspended ceiling through stacking members. At present, in the field of decoration design, how to simply and rapidly realize the design of a laminated suspended ceiling by using a design tool gradually becomes a research key point.
Disclosure of Invention
The disclosure provides a method, a device, equipment and a storage medium for generating a stacked suspended ceiling, which are used for solving or relieving one or more technical problems in the prior art.
In a first aspect, the present disclosure provides a method for generating a stacked suspended ceiling, including:
responding to the region drawing operation, and displaying a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the multi-stage suspended ceiling comprises two suspended ceiling regions which are different in distance from a reference surface and are required to be connected through a stacking component;
in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking member template, displaying a target stacking member connected with a first ceiling area of the two ceiling areas in the three-dimensional model, and displaying a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected with the target stacking member; the target stacking component is a stacking component obtained based on a target boundary and a stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to telescopic treatment.
In a second aspect, the present disclosure provides a stacked component generating apparatus comprising:
the first display unit responds to the region drawing operation and displays a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the multi-stage suspended ceiling comprises two suspended ceiling regions which are different in distance from a reference plane and are required to be connected through a stacking component;
a second display unit configured to display, in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking member template, a target stacking member connected to a first ceiling area of the two ceiling areas in the three-dimensional model, and display a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected to the target stacking member; the target stacking component is a stacking component obtained based on a target boundary and a stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to telescopic treatment.
In a third aspect, an electronic device is provided, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are for causing the computer to perform a method according to any one of the embodiments of the present disclosure.
According to the method, the device, the equipment and the storage medium for generating the stacking component, the three-dimensional model of the multi-stage suspended ceiling can be displayed on the display interface through the region drawing operation, after the target boundary between two suspended ceiling regions needing to be provided with the stacking component is selected, the target stacking component can be generated between two adjacent suspended ceiling regions, and meanwhile, the second suspended ceiling regions in the two adjacent suspended ceiling regions can be subjected to expansion and contraction processing, so that the two suspended ceiling regions can be connected through the target stacking component, the target stacking component can be generated between the two suspended ceiling regions rapidly, and the generation of the stacking suspended ceiling is simplified.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments provided according to the disclosure and are not to be considered limiting of its scope.
FIG. 1 is a block diagram of a system for applying a stacked ceiling generation method according to an embodiment of the present disclosure;
fig. 2 is a flow chart of a method for generating a stacked ceiling according to another embodiment of the present disclosure;
fig. 3A to 3C are schematic plan view structures of a multi-stage suspended ceiling according to an embodiment of the present disclosure;
fig. 4A to fig. 4D are schematic operation diagrams of a stacked ceiling generating method according to an embodiment of the disclosure;
FIG. 5 is a plan view of a multi-stage ceiling provided by an embodiment of the present disclosure;
fig. 6 is an enlarged view of the stacking member 1 in fig. 4C;
FIG. 7 is another angular schematic view of the three-dimensional model of FIG. 4D;
FIG. 8 is a schematic diagram of the generation of an offset curve provided by an embodiment of the present disclosure;
FIG. 9 is a schematic flow chart of a stacked ceiling according to an embodiment of the present disclosure;
FIG. 10 is a schematic block diagram of a stacked ceiling generating apparatus provided in an embodiment of the present disclosure;
FIG. 11 is a block diagram of an electronic device for implementing a stacked ceiling generation method of an embodiment of the present disclosure.
Detailed Description
The present disclosure will be described in further detail below with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The embodiment of the disclosure provides a method and device for generating a stacked suspended ceiling, electronic equipment and a storage medium. Specifically, the method for generating the stacked suspended ceiling in the embodiment of the present disclosure may be executed by an electronic device, where the electronic device may be a terminal or a server. The terminal can be smart phones, tablet computers, notebook computers, intelligent voice interaction equipment, intelligent household appliances, wearable intelligent equipment, aircrafts, intelligent vehicle-mounted terminals and other equipment, and the terminal can also comprise a client, wherein the client can be an audio client, a video client, a browser client, an instant messaging client or an applet and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
In the related art, the top wall design tool can only generate one-level suspended ceiling, namely, can only set one suspended ceiling area, and cannot realize the generation of the stacked suspended ceiling.
In order to solve at least one of the above problems, the embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for generating a stacked ceiling, where a three-dimensional model of a multi-stage ceiling can be displayed on a display interface through an area drawing operation, and after a target boundary between two ceiling areas where a stacked component needs to be set is selected, a target stacked component can be generated between two adjacent ceiling areas, and simultaneously a second ceiling area in the two adjacent ceiling areas can be subjected to expansion and contraction processing, so that the two ceiling areas can be connected by the target stacked component, thereby quickly generating the target stacked component between the two ceiling areas, and simplifying the generation of the stacked ceiling.
Aspects of the disclosure are described below with reference to the drawings.
FIG. 1 is a block diagram of a system for applying a stacked ceiling generation method according to an embodiment of the present disclosure; referring to fig. 1, the system includes a terminal 110, a server 120, and the like; the terminal 110 and the server 120 are connected through a network, for example, a wired or wireless network connection.
Wherein the terminal 110 may be used to display a graphical user interface. The terminal is used for interacting with a user through a graphical user interface, for example, the terminal downloads and installs a corresponding client and operates, for example, the terminal invokes a corresponding applet and operates, for example, the terminal presents a corresponding graphical user interface through a login website, and the like. In the embodiment of the present disclosure, the terminal 110 displays, in response to an area drawing operation, a three-dimensional model of a multi-stage suspended ceiling corresponding to the area drawing operation on a display interface, where the multi-stage suspended ceiling includes two suspended ceiling areas having different distances from a reference plane and requiring connection through a stacking member; in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking member template, displaying a target stacking member connected with a first ceiling area of the two ceiling areas in the three-dimensional model, and displaying a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected with the target stacking member; the target stacking component is a stacking component obtained based on a target boundary and a stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to telescopic treatment. The server 120 may be configured to perform a telescoping process on the second ceiling region.
Although the display interface is exemplified as a page of the application program, the display interface may be another page such as a web page. The application may be an application installed on a desktop, an application installed on a mobile terminal, an applet embedded in an application, or the like. Of course, the expansion and contraction processing of the second ceiling region may also be performed by the terminal.
It should be noted that the above application scenario is only shown for the convenience of understanding the spirit and principles of the present disclosure, and embodiments of the present disclosure are not limited in any way in this respect. Rather, embodiments of the present disclosure may be applied to any scenario where applicable.
The following is a detailed description. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
Fig. 2 is a flow chart of a method for generating a stacked ceiling according to another embodiment of the present disclosure; referring to fig. 2, an embodiment of the disclosure provides a method 200 for generating a stacked ceiling, including steps S201 to S202.
Step S201, responding to the region drawing operation, and displaying a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the multi-stage suspended ceiling comprises two suspended ceiling regions which are different in distance from a reference surface and need to be connected through a stacking component;
Step S202, in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking component template, displaying a target stacking component connected with a first ceiling area in the two ceiling areas in a three-dimensional model, and displaying a second ceiling area update in the two ceiling areas in the three-dimensional model as a target ceiling area connected with the target stacking component; the target stacking component is a stacking component obtained based on a target boundary and a stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to telescopic treatment.
The method for generating the stacked suspended ceiling can be used for generating the stacked suspended ceiling, for example, can be used for supporting the design capacity of the stacked suspended ceiling of a top wall tool and perfecting the suspended ceiling function.
The stacked suspended ceiling may include a stacking member and a plurality of stacking areas, that is, a multi-stage suspended ceiling and a plurality of suspended ceiling areas, and it is understood that the stacking member needs to be properly disposed between the staggered suspended ceiling areas (with the suspended ceiling as a reference plane, the staggered suspended ceiling areas refer to the suspended ceiling areas having different distances from the suspended ceiling). The design objective of the stacking members is to support some staggered ceiling designs, i.e., there is a height difference between different ceiling area designs in a multi-level ceiling by stacking members. Meanwhile, the splicing effect on decoration can be realized between suspended ceiling areas with different height differences through the stacking component, the attractive effect is achieved, and components such as a lamp strip and the like can be installed through the stacking component.
It will be appreciated that a plurality of suspended ceiling areas may be included in the multi-level suspended ceiling, and fig. 3A to 3C are schematic plan view structures of the multi-level suspended ceiling according to an embodiment of the present disclosure, and it will be appreciated that fig. 3A and 3C are each a bottom view of the multi-level suspended ceiling, that is, a projection view from a lower direction toward the ceiling, where numerals in the suspended ceiling areas indicate distances from the ceiling (reference plane) where the suspended ceiling areas are located, which may be referred to as out-of-plane parameters (under-hanging or elevation), and dotted lines indicate boundaries between the suspended ceiling areas. As in fig. 3A, the multi-level ceiling includes three areas, the upper ceiling area on the left side is 100mm (millimeters) from the ceiling, the lower ceiling area on the left side is 300mm from the ceiling, and the ceiling area on the right side is 200mm from the ceiling. As shown in fig. 3B, the multi-stage ceiling includes inner and outer ceiling areas, the off-plane parameter of the middle ceiling area is 0mm, and the off-plane parameter of the peripheral ceiling area is 200mm. As in fig. 3C, the multi-stage ceiling includes three ceiling areas, the out-of-plane parameter of the upper middle ceiling area is 100mm, the out-of-plane parameter of the upper peripheral ceiling area is 200mm, and the out-of-plane parameter of the lower ceiling area is 300mm.
It will be appreciated that fig. 3A-3C illustrate only possible forms of multi-stage ceilings, and that particular forms may be provided according to design requirements.
In step S201, the region drawing operation may be a drawing operation of a multi-stage suspended ceiling, for example, the region drawing operation may include drawing a bottom plan view as shown in fig. 3A to 3C, and setting an out-of-plane parameter of each suspended ceiling region. Or can be realized by drawing a three-dimensional stereo graph.
In step S202, the target boundary is the boundary of the target hierarchical component, and the hierarchical component template may be a hierarchical component template selected by the user in the hierarchical component template library. The parameter shape of the target stacking component to be generated can be determined by selecting the target boundary and the stacking component template, so that the target stacking component can be displayed in a three-dimensional model, and one of the two suspended ceiling areas can be automatically subjected to expansion processing such as expansion processing or contraction processing so as to be connected with the target stacking component, and the accurate generation of the stacking component and the splicing between the stacking component and suspended ceiling areas with different heights are realized.
The stacked ceiling, i.e., the structure comprising the ceiling areas and the target stacked components between the ceiling areas, may be displayed in a three-dimensional model by step S202.
Fig. 4A to fig. 4D are schematic operation diagrams of a stacked ceiling generating method according to an embodiment of the disclosure; in one embodiment, referring to FIG. 4A, the left area of the display interface may be a drawing area 401, the right side may have a 3D view area 402 of the three-dimensional model, and the area editing operation may be entered by clicking on "area editing" (area drawing operation, editing of a planar view 404, i.e., a rectangular box, in the drawing area 401 may be performed, and parameters of a ceiling area, such as out-of-plane parameters, splitting directions, etc., may be set in a parameter setting area 403. Additionally, a rectangular box in the planar view 404 may also be formed by drawing, or a wall surface, such as a ceiling plane, in the home model may be selected.
Fig. 4B shows that dividing the planar view 404 in the drawing area 401 in fig. 4A into a sub-area a and a sub-area B by an area editing operation gives a planar view 410, and sets the out-of-plane parameter of the sub-area a to 0mm, and the out-of-plane parameter of the sub-area B to 300mm, i.e., the sub-area a is set to the ceiling, and the sub-area B is located 300mm below the ceiling. At this time, the three-dimensional view in the 3D view area 402 also updates and displays the three-dimensional model 405 of the multi-stage suspended ceiling accordingly, where the three-dimensional model 405 includes a suspended ceiling area a and a suspended ceiling area B that need to be connected by the stacking component, where the suspended ceiling area a corresponds to the sub-area a in the planar view, and the suspended ceiling area B corresponds to the sub-area B in the planar view.
It will be appreciated that the three-dimensional model of the multi-level ceiling in the 3D view area 402 is a three-dimensional model generated according to the planar view 404 and the out-of-plane parameters, etc., and the angle, the size, etc. of the three-dimensional model of the multi-level ceiling in the 3D view area 402 may be changed by rotation scaling, etc. Meanwhile, the size of the 3D view area 402 may also be scaled, i.e., changed in area in the entire display interface, by a drag operation or the like.
With continued reference to fig. 4B, after the multi-stage suspended ceiling is generated and displayed, the target boundary may be selected through a "select area" control, where in this embodiment, the boundary 406 between the sub-area a and the sub-area B in the drawing area 401 may be selected, or a boundary between the suspended ceiling area a and the suspended ceiling area B in the three-dimensional model 405 may be selected (this boundary may be a boundary of the suspended ceiling area a near the suspended ceiling area B, or may be a boundary of the suspended ceiling area B near the suspended ceiling area a).
Next, the "stacking design" control in fig. 4B may be clicked, the interface shown in fig. 4C may be displayed, the stacking component setting area 407 may be displayed in fig. 4C, by clicking the "style" control in the stacking component setting area 407, the stacking component library 408 may be displayed on the left side of the area 407, and the stacking component library 408 may be displayed with a preconfigured stacking component template, such as names and thumbnails of the stacking components 1 to 4. By selecting one of the stacking member templates, for example, stacking member 1 as the stacking member template, the interface of fig. 4D may be displayed, i.e., in the three-dimensional model 405, the ceiling area B (first ceiling area) on which the target stacking member 409 (generated according to the selected stacking member template and the target boundary) is generated, while the ceiling area a (second ceiling area) in fig. 4C is deformed into the ceiling area a '(target ceiling area) so that the ceiling area a' is connected with the target stacking member, thereby realizing the overlapping of the two ceiling areas by the stacking member.
In fig. 4D, the sub-area a may be changed to sub-area a', i.e., the boundary extends to the position of the broken line.
It will be appreciated that if the ceiling area a is not subjected to the telescoping process (i.e., the structure of fig. 4C is adopted) during the process of fig. 4D from fig. 4C, a gap will occur between the ceiling area a and the target stacking member 409, which affects the aesthetics and safety. According to the embodiment, the target stacking component can be automatically generated between the two suspended ceiling areas, and one suspended ceiling area can be subjected to expansion treatment (for example, the suspended ceiling area is expanded or contracted inwards), so that the two suspended ceiling areas can be connected with the target stacking component, and the effect of overlapping the suspended ceiling areas on different heights with the outline of the target stacking component is achieved through extension or contraction.
It can be understood that in this embodiment, only the generation process of the target hierarchical structure is illustrated, and the area arrangement, the area and the setting of each control of the display interface may be adjusted according to the actual situation, for example, the drawing area 401 may not be displayed, and three-dimensional modeling may be directly performed in the 3D view area. In addition, fig. 4A-4D are only illustrated with the multi-stage ceiling including ceiling area a and ceiling area B, and in other embodiments, the multi-stage ceiling may include other ceiling areas as well. In this embodiment, the reference plane is a plane where the ceiling is located, and in other embodiments, the reference plane may be a plane with other angles such as a vertical plane.
According to the embodiment of the disclosure, the three-dimensional model of the multi-stage suspended ceiling can be displayed on the display interface through the region drawing operation, after the target boundary between two suspended ceiling regions needing to be provided with the stacking component is selected, the target stacking component can be generated between the two adjacent suspended ceiling regions, and meanwhile, the second suspended ceiling region in the two adjacent suspended ceiling regions can be subjected to telescopic treatment, so that the two suspended ceiling regions can be connected through the target stacking component, the target stacking component can be generated between the two suspended ceiling regions rapidly, and the overlapping of the suspended ceiling regions is realized. The generation of folding level furred ceiling has been simplified, and easy operation uses the threshold low.
In some embodiments, in response to the region drawing operation in step S201, displaying, on the display interface, the three-dimensional model of the multi-stage suspended ceiling corresponding to the region drawing operation, including:
in response to the region drawing operation, displaying a planar view of the multi-stage suspended ceilings in a first region of the display interface and displaying a three-dimensional model of the multi-stage suspended ceilings in a second region of the display interface, wherein each suspended ceiling region in the multi-stage suspended ceilings corresponds to a sub-region in the planar view;
the first selecting operation of the target boundary between the two ceiling areas in step S202 includes: a first selection operation of a target boundary between two adjacent sub-areas corresponding to the two ceiling areas in a plan view.
With continued reference to fig. 4A-4B, the first region may be a drawing region 401, the second region may be a 3D view region 402, the region drawing operation may be implemented using the drawing region 401, for example, drawing a planar view in the drawing region 401, it may be understood that the planar view 404 may be a projection view of the multi-stage suspended ceiling in a direction perpendicular to the reference plane and directed toward the reference plane, with the reference plane being the ceiling, and the planar view may be a bottom view of the multi-stage suspended ceiling. As in fig. 4B, the plan view 410 includes sub-regions a and sub-regions B, each of which may correspond to one of the ceiling regions in the generated three-dimensional model.
The user may present the three-dimensional model of the corresponding multi-level ceiling in the three-dimensional model by drawing a planar view 410 in the drawing area 401. The texture of the planar view 410 and the three-dimensional model 405 may also be updated by adding texture or the like to the sub-regions of the planar view 410.
It can be understood that when drawing the plane view, whether the suspended ceiling area corresponding to the sub-area needs to be subjected to expansion processing is not required, and only the boundary of the two sub-areas needs to be simply represented by the dividing line, so that the operation process is simplified.
For example, in fig. 4B, the sub-area a and the sub-area B may be divided by using the dividing line 406, where the sub-area a and the sub-area B are adjacent areas, and the dividing line 406 is a target boundary between the two areas, that is, for a multi-stage ceiling, deformation of a ceiling area after the stacking member is set is not required to be considered in the area drawing operation, and two ceiling areas where the stacking member is required to be set may be drawn into two adjacent sub-areas in a plan view, that is, two sub-areas with a common boundary, so that drawing of the multi-stage ceiling is simplified.
In addition, when selecting the target boundary, the boundary between the two sub-regions may be selected directly from the plan view as the target boundary, such as selecting the target boundary 406 between the sub-region a and the sub-region b.
According to the embodiment, the multistage suspended ceiling can be rapidly drawn through the first area, three-dimensional modeling skills are not required to be mastered, the operation is simple, and the using threshold is low. And the target boundary is quickly selected, so that the operation is more visual.
In some embodiments, the region drawing operation includes a drawing operation for each sub-region in the plan view and a setting operation for an out-of-plane parameter for each sub-region, the out-of-plane parameter being a distance between the sub-region corresponding to the out-of-plane parameter and the reference plane.
The embodiment can quickly draw a plane view in the drawing area 401, and can quickly set out-of-plane parameters for each sub-area in the plane view through the parameter setting area 403, so that the multi-stage suspended ceiling is not required to be drawn by three-dimensional modeling, and the operation is quick.
In some embodiments, the method 200 further comprises: in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of the hierarchical component template, a second sub-area update in the plan view corresponding to the second ceiling area is displayed as a target sub-area corresponding to the target ceiling area.
As shown in fig. 4C and 4D, while the ceiling area a (the second ceiling area) is expanded into the ceiling area a ' (the target ceiling area), the sub-area a (the second sub-area) in the first area may be expanded into the sub-area a ' (the target sub-area), that is, the selected sub-area a ' may see that the boundary is located at the position where the dotted line is located, and the target stacking member may not be displayed in the plan view.
On the basis of the above embodiment, the step S202 of displaying the second ceiling region update of the two ceiling regions in the three-dimensional model as the target ceiling region connected to the target stacking member includes:
determining a second ceiling region from the two ceiling regions based on a first preset rule;
and performing outward expansion treatment on the second suspended ceiling area based on the setting parameters of the target stacking component to obtain a target suspended ceiling area.
The first preset rule may be a preset rule, and the second ceiling area, that is, the ceiling area needing to be subjected to the expansion processing, may be determined from the two ceiling areas based on the first preset rule.
FIG. 5 is a plan view of a multi-stage ceiling provided by an embodiment of the present disclosure; referring to fig. 5, in some embodiments, determining a second ceiling region from the two ceiling regions based on a first preset rule includes:
Determining a first direction of a target boundary in one of the two ceiling areas and a second direction of the target boundary in the other of the two ceiling areas based on a preset sequential connection direction of the boundaries in the ceiling areas;
and determining a target direction matched with the placement direction of the target stacking member from the first direction and the second direction, and determining a ceiling area corresponding to the target direction as a second ceiling area.
It will be appreciated that in the first preset rule, a preset sequential connection direction of the boundaries in the ceiling region may be set, the sequential connection direction being related to the contour shape, for example, the preset sequential connection direction of the boundaries of the outer contour is counterclockwise and the preset sequential connection direction of the boundaries of the inner contour is clockwise as is usual in the art. Since the outlines of the sub-areas a and b are the outer boundaries of the areas, the sub-areas a and b are the outer contours, and the directions of the four boundaries in the sub-area a and the directions of the four boundaries in the sub-area b are as shown in fig. 5. It can be seen that the direction of the target boundary 501 in the sub-region a (first direction) is from bottom to top, and the direction of the target boundary 501 in the sub-region b (second direction) is from top to bottom.
Fig. 6 is an enlarged view of the stacking member 1 in fig. 4C; FIG. 7 is another angular schematic view of the three-dimensional model of FIG. 4D; referring to fig. 6 and 7, the stacking member 1 may include a first portion 601, a second portion 602, and a third portion 603. The target stacking member 710 is substantially the same shape as the selected stacking member template, i.e., stacking member 1, but may vary slightly in size. It will be appreciated that the stacking member template is directional, e.g., in fig. 6, the first portion 601 on the left is higher than the third portion 603 on the right in elevation, and then after it is created the target stacking member, the first segment 701 should still be higher than the third segment 703 in elevation.
As shown in fig. 7, when the target stacking member is placed between the suspended ceiling areas, it is first required to ensure that the placed target stacking member is at a front view angle, that is, the first section 701 of the target stacking member is higher than the third section 703, whereas in fig. 7, the front view angle is in the direction indicated by the arrow, that is, when the target stacking member is viewed from the direction indicated by the arrow, the first section 701 is higher than the third section 703, that is, the placement direction of the target stacking member.
In addition, since the plan view shown in fig. 5 is a bottom view, the arrow in fig. 7 is placed at a bottom view angle in fig. 5, resulting in a bottom-up arrow. I.e. the direction of placement of the target stacking member corresponds to a bottom-up direction in fig. 5.
Then, it may be determined that the placement direction of the target stacking member is the same (i.e., matched) as the direction (the first direction, the bottom-up direction) of the target boundary 501 in the sub-area a, and at this time, the first direction is the target direction, and it may be determined that the ceiling area a corresponding to the sub-area a is the target ceiling area requiring the expansion process.
Of course, in other embodiments, the preset sequential connection direction of the outer contours may be clockwise, and when the target direction is selected, the matching may be understood as the opposite direction, and may be specifically set according to circumstances.
In this embodiment, the target area that needs to be subjected to the expansion processing may be determined from the two ceiling areas through the first preset rule.
As shown in fig. 7, the target stacking member includes three parts, a first segment 701, a second segment 702, and a third segment 703, respectively. In fig. 7, a portion of the ceiling area a' (an area surrounded by a solid line in the drawing) to the left of the broken line is the ceiling area a before the ceiling area a is not expanded. It will be appreciated that the second section 702 needs to be attached to the ceiling area B, the outer side of the third section 703 facing away from the first section 701 needs to be flush with the edge of the ceiling area B, and the ceiling area a (second ceiling area) needs to be flared and contact with the surface of the first section 701 facing the third section 703, and it will be appreciated that, since the sub-areas a and B are originally adjacent areas, the ceiling area a (second ceiling area) needs to be flared from the position where the dotted line is located to contact with the first section 701, i.e. the ceiling area a' in the figure is obtained.
After determining the target ceiling area, the desired flared dimension of the ceiling area a (second ceiling area) may be obtained based on the set parameters of the target stacking member, such as the width of the second section 702 and the thickness of the first section 701. And then, performing expansion processing on the second suspended ceiling area to obtain a target suspended ceiling area.
In this embodiment, can realize the regional confirm of second furred ceiling and expand the processing outward automatically, need not the manual work and expand outward to the second furred ceiling region, the operation is convenient and fast more.
In addition, the shape of the stacking component templates can be various, and the method is not limited to the structure shown in fig. 6, and the deformation of the suspended ceiling area can be realized by adopting the mode of expanding the stacking component templates. When it is.
It will be appreciated that the telescoping process may include, in addition to the expanding process, a telescoping process in which, for example, the ceiling area a may be secured unchanged, the target stacking member may be set to be connected to the ceiling area a, and then the ceiling area B may be telescoping into alignment with the target stacking member, in which case the target direction may be determined with the direction opposite to the placement direction of the target stacking member as the target direction.
In some embodiments, performing the expanding process on the second ceiling region based on the setting parameters of the target stacking component to obtain the target ceiling region, including:
determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacking component, wherein the target boundary is one of the boundaries in the second ceiling region;
determining an offset curve corresponding to each boundary based on the offset of each boundary and the direction of each boundary in the second ceiling area;
and connecting the offset curves corresponding to the boundaries to obtain the target suspended ceiling area.
It will be appreciated that, during the expansion process, the offset of each boundary of the second ceiling area may be determined according to the setting parameters of the target stacking component, and since the ceiling area may be regarded as a plate-like structure with uniform thickness, determining each boundary of the second ceiling area refers to the offset of four sides in the second ceiling area, that is, the offset corresponding to the four sides where the sub-area a in fig. 5 is located.
In some embodiments, determining the offset of each boundary in the second ceiling region based on the set parameters of the target stacking member includes: determining the offset of the target boundary based on the setting parameters of the target stacking component; the offset of the remaining boundaries other than the target boundary among the respective boundaries is set as a base value.
The set parameters of the target stacking feature may determine the offset of the target boundary. The remaining boundaries may be set to a base value, and the base value may be set to 0, so that an offset of each boundary of the second ceiling region may be determined.
In some embodiments, determining the offset curve corresponding to each boundary based on the offset of each boundary and the direction of each boundary in the second ceiling region includes:
for a first boundary of the boundaries, determining the first boundary as an offset curve corresponding to the first boundary when the offset of the first boundary is a basic value;
under the condition that the offset of the first boundary is not a basic value, determining the offset direction of the first boundary based on the direction of the first boundary in the second suspended ceiling area, and determining an offset curve corresponding to the first boundary based on the offset of the first boundary and the offset direction of the first boundary;
and obtaining the offset curves corresponding to the boundaries based on at least the offset curves of the first boundary.
For example, each boundary of the second ceiling region may be traversed, and each boundary is described by a first boundary, and if the offset of the first boundary is 0, the first boundary is taken as the corresponding offset curve. If the offset of the first boundary is not 0, the offset direction can be obtained by rotating the direction clockwise by 90 degrees according to the right rule according to the direction of the first boundary in the second suspended ceiling area.
FIG. 8 is a schematic diagram of the generation of an offset curve provided by an embodiment of the present disclosure; as shown in fig. 8, the left side is a top view of the ceiling area a, and the right side is a schematic view of each offset curve obtained based on the ceiling area a. The direction of the target boundary 801 in the ceiling area a is from bottom to top, and the offset direction of the target boundary 801 is from left to right. Since the offset amount of the other boundaries except for the target boundary 801 is 0, the shape position of the offset curve is the same as the boundary shape position.
The first boundary may then be shifted in the shift direction by the amount of the shift, so that a shift curve for the first boundary may be obtained.
When the first boundary is a circular arc line, if the direction of the first boundary in the second ceiling area is anticlockwise, the radius of the offset curve can be determined to be 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 to be the radius of the first boundary minus the offset, and then the final offset curve can be determined according to the radius of the offset curve and the start angle and the end angle of the circular arc of the first boundary.
According to the offset curve determining method provided by the embodiment, the offset curve of each boundary of the second suspended ceiling area can be obtained.
In some embodiments, performing connection processing on offset curves corresponding to respective boundaries to obtain a target ceiling region, including:
determining an end point of a first offset curve and a start point of a second offset curve pointed by the direction of the first offset curve based on the direction of the first offset curve aiming at the first offset curve in the offset curves corresponding to the boundaries, 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;
determining that the first offset curve is connected with the second offset curve under the condition that the end point of the first offset curve coincides with the start point of the second offset curve;
converting the first offset curve into a first borderless curve and converting the second offset curve into a second borderless curve under the condition that the end point of the first offset curve is not coincident with the start point of the second offset curve;
in the case where the first borderless curve and the second borderless curve have an intersection, the end point of the first offset curve is extended to the intersection, and the start point of the second offset curve is extended to the intersection.
After determining the offset curves of each boundary in the second ceiling region, each offset curve may be connected to obtain each boundary of the target ceiling region, thereby obtaining the target ceiling region.
In this embodiment, the first offset curves are taken as an example for illustration, and the directions of the first offset curves are the same as the directions of the corresponding boundaries in the second ceiling region, as shown in fig. 8. The first offset curve may be taken as the current offset curve, and the start point and the end point of the first offset curve and the next offset curve of the first offset curve may be determined according to the direction of the first offset curve.
As shown in fig. 8, if the current offset curve is the offset curve 802, the next offset curve is the offset curve 803. Since the end point of the offset curve 802 does not coincide with the start point of the offset curve 803, the offset curve 802 and the offset curve 803 may be changed to be unbounded, i.e. a straight line without end points from a line segment, and if it is a circular arc, the corresponding unbounded curve may be a full circle, so that an intersection point of the two may be found, and then the end point of the offset curve 802 and the start point of the offset curve 803 may be both extended to the intersection point, so that the two are connected.
If the current offset curve is the offset curve 803 and the next offset curve is the offset curve 804, the end point of the offset curve 803 coincides with the start point of the offset curve 804, so that the two curves are connected and no processing is needed.
In some embodiments, where the first borderless curve and the second borderless curve have an intersection, extending the end of the first offset curve to the intersection and extending the start of the second offset curve to the intersection may include:
under the condition that the first borderless curve and the second borderless curve have a single intersection point, 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;
in the case where the first borderless curve and the second borderless curve have a plurality of intersections, a target intersection closest to the end point of the first offset curve is determined from the plurality of intersections, and the end point of the first offset curve is extended to the target intersection, and the start point of the second offset curve is extended to the target intersection. The method provided by the embodiment can be used for quickly connecting the offset curves.
In some embodiments, the connecting processing is performed on the offset curves corresponding to the boundaries to obtain the target suspended ceiling area, and the method further includes:
and in the case that the first borderless curve and the second borderless curve do not have an intersection point, supplementing lines between the first offset curve and the second offset curve.
In some cases, the offset curve is not a straight line, or is parallel, etc., and there may be a case where there is no intersection between the first borderless curve and the second borderless curve, and at this time, a line may be supplemented between the two so that the two may be connected.
In some embodiments, the supplementing line between the first offset curve and the second offset curve comprises: a line segment is disposed between the end of the first offset curve and the start of the second offset curve. The patch cord can be connected between the end point of the first offset curve and the start point of the second offset curve by adding a line segment.
Through the connection mode, the corresponding offset curves of the boundaries can be connected into a closed contour, the closed contour can be the contour of the target suspended ceiling area, and the target suspended ceiling area can be obtained through the contour.
FIG. 9 is a schematic flow chart of a stacked ceiling according to an embodiment of the present disclosure; referring to fig. 9, in one embodiment, a method for generating a stacked suspended ceiling is provided, which is mainly implemented in a manner of "region-down (elevation) +stacked member+region extension". After the area of the multi-stage suspended ceiling is drawn, the out-of-plane parameters (suspended/elevation) of the area are set, then the target stacking members are placed on paths (target boundaries) among the areas, and finally the expansion and contraction of the relevant area are influenced through the parameters of the target stacking members. Because the stacking component can solve the staggered layer scene in the house-hold design, the flow can be mainly divided into three parts (corresponding to three columns in fig. 9 respectively):
First column, staggered layer: i.e. to let there be a height difference between the different ceiling areas. The method mainly comprises two steps: drawing a stacking area (i.e., drawing zoned multi-level ceilings) and setting an area down-hanging/elevation (setting different heights for each ceiling area).
Second column, generating target stacking component: entering a stacking component generating tool, selecting a path (target boundary) for generating a stacking component, selecting a stacking component template in a stacking component library, adjusting and adapting parameters such as length, width, height, position orientation and the like of the stacking component, and generating a target stacking component.
Third column, realize overlap joint effect: entering area extension calculation, determining suspended ceiling areas on two sides of a stacking component path (target boundary), respectively adjusting the sizes of the suspended ceiling areas on two sides according to parameters of the target stacking component, and realizing the staggered effect of different design areas, specifically calculating an affected area (namely the suspended ceiling area needing telescopic treatment), then expanding the suspended ceiling area, and then continuing to design on a facing area of the suspended ceiling area, such as setting materials, lights and the like.
It can be appreciated that in the home-decoration scenario, the main processing of the ceiling region expansion is region expansion, and for example, the region expansion may be implemented by using a region expansion design processing module (which may be used to execute the stacked ceiling generating method provided by the embodiment of the present disclosure).
In addition, in the region drawing operation, a region design with a topo (topological) structure may be provided, and this region design may generate either a regular region (a pure geometric region, for example, a rectangular region) or an irregular region (a complicated irregularly shaped region), specifically may be designed according to circumstances.
In one embodiment, for the second ceiling region (inner/outer contour to be telescoping), each boundary (halfsedge) of the second ceiling region may be represented using a half data structure, and boundary information (halfsedge info) corresponding to the boundary may be determined, where the boundary information may include an initial boundary of the boundary
(baseCurve) information (i.e., information of the boundary before the stretching process), offset curve (offsetCurve) information (information of the boundary before the stretching process), and line-filling marks (i.e., whether line filling is required).
And then sequentially connecting offset curves (offsetCurve) in front and rear boundary information (HalfEdgeInfo) according to a preset sequential connection sequence to form a new contour, and carrying out a plurality of line supplementing processes according to the state of a line supplementing mark (patch end) in the connection process so as to obtain a target suspended ceiling area.
According to the determined region telescoping direction (based on a first preset rule), finding the outer contour or the inner contour of the corresponding region (i.e. determining the second ceiling region in the ceiling region), and then traversing all boundaries (HalfEdges) corresponding to the contour (the second ceiling region):
1. For a given one of the boundaries (halfsedge), defining the current boundary (currenthalfsedge, assumed to be the first boundary described above) and defining the next boundary (currenthalfsedge. Next) to the current boundary as next halfsedge;
2. the boundary information (halfsedgeinfo) of the current boundary and the next boundary is acquired respectively, if the boundary information is constructed, the boundary information can be acquired directly, if the boundary information is not constructed, the initialization operation can be performed, and the first boundary is taken as an example for explanation, and the process of initializing the boundary information (halfsedgeinfo) is as follows:
(1) If the offset (offset) of the first boundary (halfEdge) is equal to 0 (base value), the offset curve (offsetCurve) corresponding to the first boundary is equal to the initial boundary (baseCurve) of the first boundary, i.e. the first boundary itself;
(2) If the initial boundary (baseCurve) of the first boundary, i.e. the first boundary itself is a straight line, the offset curve (offsetCurve) corresponding to the first boundary is equal to the distance of the offset (offset) of the first boundary itself (baseCurve) along the right rule (lightnormal) direction (the outer contour is expanding outwards and the inner contour is shrinking inwards in the current service scene);
(3) If the first boundary itself (baseCurve) is a circular arc, the radius of the circular arc is added to the offset (offset) counter-clockwise, the radius of the arc is subtracted by an offset (outer contour) clockwise it is the outer expansion inner contour that is the inner contraction all according to isCCW (iscounter-clockwise, whether counterclockwise) and constructing an offset curve (offsetCurve) of the first boundary according to the initial and ending angles of the first boundary and the new radius;
(4) The patch end is not assigned when initializing, and the patch end is defaulted without the field, namely, no patch is needed;
3. connecting an offset curve in boundary information (currentHalfEdgeInfo) of the current boundary with an offset curve in boundary information (nexthhalfedgeinfo) of a next boundary to which the current boundary points:
(1) If the end point (end point) of the current offset curve (currentoffsetCurve) is equal to the start point (startPoint) of the next offset curve (next offsetCurve), the two curves are connected and are not processed;
(2) The current offset curve (currentOffsetCurve) and the next offset curve
(nextOffsetCurve) to a borderless (current (first) borderless curve (currentfullcurrve) and next (second) borderless curve (nextFullCurve)): the line segment is converted into a straight line, and the circular arc is converted into a whole circle;
(3) The intersection point of the current borderless curve (currentfullcurrve) and the next borderless curve (nextfollCurve) is found:
(1) if no intersection point exists, a patch is needed, and a patch mark (patch end) of boundary information (currenthalfEdgeInfo) of the current boundary is marked as true;
(2) if there is an intersection point, modifying the end point of the current offset curve (currentOffsetCurve) and the start point of the next offset curve (nextOffsetCurve) as intersection point coordinates;
(3) If there are a plurality of intersection points, modifying the end point of the current offset curve (currentOffsetCurve) and the start point of the next offset curve (next OffsetCurve) to be the coordinates of the intersection point nearest to the end point of the current offset curve (currentOffsetCurve);
after the above-mentioned process is completed, every boundary (halfadgeinfo) of the corresponding contour has its complete boundary information (halfadgeinfo), and these boundary information (halfadgeinfo) are traversed in the contour order (direction of each boundary):
1. placing an offset curve (offsetCurve) of the boundary information (HalfEdgeInfo) into the final contour path;
2. if the patch end of the boundary information (HalfEdgeInfo) is true, then enter patch logic:
(1) The line filling logic is used for directly filling a line segment from the end point of a current offset curve to the start point of a next offset curve;
3. and (3) sequentially forming a new closed contour (GeomLoop 2 d), namely the target ceiling area, by using all offset curves (offsetCurve) and complementary lines thereof.
Fig. 10 is a schematic block diagram of a stacked ceiling generating device according to another embodiment of the present disclosure, and referring to fig. 10, an embodiment of the present disclosure provides a stacked ceiling generating device 1000, which includes the following units.
The first display unit 1001 is configured to display, in response to a region drawing operation, a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, where the multi-stage suspended ceiling includes two suspended ceiling regions that have different distances from a reference plane and need to be connected by a stacking component;
A second display unit 1002, configured to display, in response to a first selection operation of a target boundary between two ceiling areas and a second selection operation of a stacking member template, a target stacking member connected to a first ceiling area of the two ceiling areas in the three-dimensional model, and display a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected to the target stacking member; the target stacking component is a stacking component obtained based on a target boundary and a stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to telescopic treatment.
In some embodiments, the first display unit 1001 is further configured to:
in response to the region drawing operation, displaying a planar view of the multi-stage suspended ceilings in a first region of the display interface and displaying a three-dimensional model of the multi-stage suspended ceilings in a second region of the display interface, wherein each suspended ceiling region in the multi-stage suspended ceilings corresponds to a sub-region in the planar view;
a first selection operation of a target boundary between two suspended ceiling areas, comprising: a first selection operation of a target boundary between two adjacent sub-areas corresponding to the two ceiling areas in a plan view.
In some embodiments, the apparatus 1000 further comprises:
and the updating display unit is used for responding to a first selection operation of a target boundary between the two suspended ceiling areas and a second selection operation of the stacking component template, and displaying a second sub-area corresponding to the second suspended ceiling area in the plan view as a target sub-area corresponding to the target suspended ceiling area.
In some embodiments, the region drawing operation includes a drawing operation for each sub-region in the plan view and a setting operation for an out-of-plane parameter for each sub-region, the out-of-plane parameter being a distance between the sub-region corresponding to the out-of-plane parameter and the reference plane.
In some embodiments, the second display unit 1002 is further to:
determining a second ceiling region from the two ceiling regions based on a first preset rule;
and performing outward expansion treatment on the second suspended ceiling area based on the setting parameters of the target stacking component to obtain a target suspended ceiling area.
In some embodiments, the second display unit 1002 is further to:
determining a first direction of a target boundary in one of the two ceiling areas and a second direction of the target boundary in the other of the two ceiling areas based on a preset sequential connection direction of the boundaries in the ceiling areas;
And determining a target direction matched with the placement direction of the target stacking member from the first direction and the second direction, and determining a ceiling area corresponding to the target direction as a second ceiling area.
In some embodiments, the second display unit 1002 is further to:
determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacking component, wherein the target boundary is one of the boundaries in the second ceiling region;
determining an offset curve corresponding to each boundary based on the offset of each boundary and the direction of each boundary in the second ceiling area;
and connecting the offset curves corresponding to the boundaries to obtain the target suspended ceiling area.
In some embodiments, the second display unit 1002 is further to:
determining the offset of the target boundary based on the setting parameters of the target stacking component;
the offset of the remaining boundaries other than the target boundary among the respective boundaries is set as a base value.
In some embodiments, the second display unit 1002 is further to:
for a first boundary of the boundaries, determining the first boundary as an offset curve corresponding to the first boundary when the offset of the first boundary is a basic value;
Under the condition that the offset of the first boundary is not a basic value, determining the offset direction of the first boundary based on the direction of the first boundary in the second suspended ceiling area, and determining an offset curve corresponding to the first boundary based on the offset of the first boundary and the offset direction of the first boundary;
and obtaining the offset curves corresponding to the boundaries based on at least the offset curves of the first boundary.
In some embodiments, the second display unit 1002 is further to:
determining an end point of a first offset curve and a start point of a second offset curve pointed by the direction of the first offset curve based on the direction of the first offset curve aiming at the first offset curve in the offset curves corresponding to the boundaries, 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;
determining that the first offset curve is connected with the second offset curve under the condition that the end point of the first offset curve coincides with the start point of the second offset curve;
converting the first offset curve into a first borderless curve and converting the second offset curve into a second borderless curve under the condition that the end point of the first offset curve is not coincident with the start point of the second offset curve;
In the case where the first borderless curve and the second borderless curve have an intersection, the end point of the first offset curve is extended to the intersection, and the start point of the second offset curve is extended to the intersection.
In some embodiments, the second display unit 1002 is further to:
and in the case that the first borderless curve and the second borderless curve do not have an intersection point, supplementing lines between the first offset curve and the second offset curve.
In some embodiments, the second display unit 1002 is further to:
a line segment is disposed between the end of the first offset curve and the start of the second offset curve.
For descriptions of specific functions and examples of each module and sub-module of the apparatus in the embodiments of the present disclosure, reference may be made to the related descriptions of corresponding steps in the foregoing method embodiments, which are not repeated herein.
An embodiment of the present disclosure provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments described above.
The disclosed embodiments provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method according to any of the above embodiments.
FIG. 11 is a block diagram of an electronic device for implementing a stacked ceiling generation method of an embodiment of the present disclosure. As shown in fig. 11, the electronic device includes: a memory 1110 and a processor 1120, the memory 1110 having stored thereon a computer program executable on the processor 1120. The number of memories 1110 and processors 1120 may be one or more. The memory 1110 may store one or more computer programs that, when executed by the electronic device, cause the electronic device to perform the methods provided by the method embodiments described above. The electronic device may further include: and the communication interface 1130 is used for communicating with external equipment and carrying out data interaction transmission.
If the memory 1110, the processor 1120, and the communication interface 1130 are implemented independently, the memory 1110, the processor 1120, and the communication interface 1130 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 11, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 1110, the processor 1120, and the communication interface 1130 are integrated on a single chip, the memory 1110, the processor 1120, and the communication interface 1130 may communicate with each other through internal interfaces.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double Data rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of 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, the processes or functions described in accordance with the embodiments of the present disclosure are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, bluetooth, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., digital versatile Disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., solid State Disk (SSD)), etc. It is noted that the computer readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, may be a non-transitory storage medium.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the description of embodiments of the present disclosure, a description of reference to the terms "one embodiment," "some embodiments," "examples," "particular examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
In the description of the embodiments of the present disclosure, unless otherwise indicated, "/" means or, for example, a/B may represent a or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
In the description of the embodiments of the present disclosure, the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
The foregoing description of the exemplary embodiments of the present disclosure is not intended to limit the present disclosure, but rather, any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (22)
1. A method of generating a stacked suspended ceiling, comprising:
responding to the region drawing operation, and displaying a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the multi-stage suspended ceiling comprises two suspended ceiling regions which are different in distance from a reference surface and need to be connected through a stacking component;
responsive to a first selection operation of a target boundary between the two ceiling areas and a second selection operation of a stacking member template, displaying in the three-dimensional model a target stacking member connected to a first ceiling area of the two ceiling areas, and displaying a second ceiling area update of the two ceiling areas of the three-dimensional model as a target ceiling area connected to the target stacking member; the target stacking component is a stacking component obtained based on the target boundary and the stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to expansion and contraction treatment.
2. The method of claim 1, wherein,
responding to the region drawing operation, displaying a three-dimensional model of the multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, wherein the three-dimensional model comprises the following components:
in response to an area drawing operation, displaying a planar view of the multi-stage suspended ceilings in a first area of the display interface and displaying a three-dimensional model of the multi-stage suspended ceilings in a second area of the display interface, wherein each suspended ceiling area in the multi-stage suspended ceilings corresponds to one sub-area in the planar view;
a first selection operation of a target boundary between the two ceiling areas, comprising: and performing first selection operation on the target boundary between two adjacent sub-areas corresponding to the two suspended ceiling areas in the plane view.
3. The method of claim 2, further comprising:
and in response to a first selection operation of a target boundary between the two ceiling areas and a second selection operation of the stacking component template, updating and displaying a second sub-area corresponding to the second ceiling area in the plane view as a target sub-area corresponding to the target ceiling area.
4. The method according to claim 2, wherein the region drawing operation includes a drawing operation for each sub-region in the plan view and a setting operation for an out-of-plane parameter of each sub-region, the out-of-plane parameter being a distance between a sub-region corresponding to the out-of-plane parameter and the reference plane.
5. The method of any of claims 1-4, wherein exposing a second ceiling region update of the two ceiling regions in the three-dimensional model as a target ceiling region connected to the target stacking member comprises:
determining the second ceiling region from the two ceiling regions based on a first preset rule;
and performing outward expansion processing on the second suspended ceiling area based on the setting parameters of the target stacking component to obtain the target suspended ceiling area.
6. The method of claim 5, wherein determining the second ceiling region from the two ceiling regions based on a first preset rule comprises:
determining a first direction of the target boundary in one of the two ceiling areas and a second direction of the target boundary in the other of the two ceiling areas based on a preset sequential connection direction of the boundaries in the ceiling areas;
and determining a target direction matched with the placement direction of the target stacking member from the first direction and the second direction, and determining a ceiling area corresponding to the target direction as the second ceiling area.
7. The method of claim 5, wherein performing the expanding process on the second ceiling region based on the setting parameters of the target stacking component to obtain the target ceiling region comprises:
determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacking component, wherein the target boundary is one of each boundary in the second ceiling region;
determining an offset curve corresponding to each boundary based on the offset of each boundary and the direction of each boundary in the second ceiling area;
and connecting the offset curves corresponding to the boundaries to obtain the target suspended ceiling area.
8. The method of claim 7, wherein determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacking member comprises:
determining the offset of the target boundary based on the setting parameters of the target stacking component;
and setting the offset of the rest boundaries except the target boundary in the boundaries as basic values.
9. The method of claim 7, wherein determining an offset curve corresponding to the respective boundary based on an offset of the respective boundary and a direction of the respective boundary in the second ceiling region comprises:
For a first boundary in the boundaries, determining the first boundary as an offset curve corresponding to the first boundary under the condition that the offset of the first boundary is a basic value;
determining an offset direction of the first boundary based on the direction of the first boundary in the second ceiling area and determining an offset curve corresponding to the first boundary based on the offset of the first boundary and the offset direction of the first boundary under the condition that the offset of the first boundary is not a basic value;
and obtaining the offset curves corresponding to the boundaries at least based on the offset curves of the first boundaries.
10. The method of claim 9, wherein performing connection processing on the offset curves corresponding to the boundaries to obtain the target ceiling region includes:
determining an end point of a first offset curve and a start point of a second offset curve pointed by the direction of the first offset curve based on the direction of the first offset curve aiming at the first offset curve in the offset curves corresponding to the boundaries, 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;
Determining that the first offset curve is connected with the second offset curve under the condition that the end point of the first offset curve coincides with the start point of the second offset curve;
converting the first offset curve into a first borderless curve and converting the second offset curve into a second borderless curve when the end point of the first offset curve does not coincide with the start point of the second offset curve;
in the case where the first borderless curve and the second borderless curve have an intersection, extending the end point of the first offset curve to the intersection and extending the start point of the second offset curve to the intersection.
11. The method of claim 10, wherein the connecting the offset curves corresponding to the respective boundaries to obtain the target ceiling region further comprises:
and supplementing lines between the first offset curve and the second offset curve under the condition that the first borderless curve and the second borderless curve do not have intersection points.
12. The method of claim 11, wherein the supplementing between the first offset curve and the second offset curve comprises:
A line segment is arranged between the end point of the first offset curve and the start point of the second offset curve.
13. A stacked ceiling generating device, comprising:
the display device comprises a first display unit, a second display unit and a third display unit, wherein the first display unit is used for responding to region drawing operation and displaying a three-dimensional model of a multi-stage suspended ceiling corresponding to the region drawing operation on a display interface, and the multi-stage suspended ceiling comprises two suspended ceiling regions which are different in distance from a reference plane and need to be connected through a stacking component;
a second display unit configured to display, in response to a first selection operation of a target boundary between the two ceiling areas and a second selection operation of a stacking member template, a target stacking member connected to a first ceiling area of the two ceiling areas in the three-dimensional model, and display a second ceiling area update of the two ceiling areas in the three-dimensional model as a target ceiling area connected to the target stacking member; the target stacking component is a stacking component obtained based on the target boundary and the stacking component template, and the target suspended ceiling area is a suspended ceiling area obtained after the second suspended ceiling area is subjected to expansion and contraction treatment.
14. The apparatus of claim 13, wherein the first display unit is further configured to:
in response to an area drawing operation, displaying a planar view of the multi-stage suspended ceilings in a first area of the display interface and displaying a three-dimensional model of the multi-stage suspended ceilings in a second area of the display interface, wherein each suspended ceiling area in the multi-stage suspended ceilings corresponds to one sub-area in the planar view;
a first selection operation of a target boundary between the two ceiling areas, comprising: and performing first selection operation on the target boundary between two adjacent sub-areas corresponding to the two suspended ceiling areas in the plane view.
15. The apparatus of claim 13 or 14, wherein the second display unit is further configured to:
determining the second ceiling region from the two ceiling regions based on a first preset rule;
and performing outward expansion processing on the second suspended ceiling area based on the setting parameters of the target stacking component to obtain the target suspended ceiling area.
16. The apparatus of claim 15, wherein the second display unit is further configured to:
determining a first direction of the target boundary in one of the two ceiling areas and a second direction of the target boundary in the other of the two ceiling areas based on a preset sequential connection direction of the boundaries in the ceiling areas;
And determining a target direction matched with the placement direction of the target stacking member from the first direction and the second direction, and determining a ceiling area corresponding to the target direction as the second ceiling area.
17. The apparatus of claim 15, wherein the second display unit is further configured to:
determining the offset of each boundary in the second ceiling region based on the setting parameters of the target stacking component, wherein the target boundary is one of each boundary in the second ceiling region;
determining an offset curve corresponding to each boundary based on the offset of each boundary and the direction of each boundary in the second ceiling area;
and connecting the offset curves corresponding to the boundaries to obtain the target suspended ceiling area.
18. The apparatus of claim 17, wherein the second display unit is further configured to:
for a first boundary in the boundaries, determining the first boundary as an offset curve corresponding to the first boundary under the condition that the offset of the first boundary is a basic value;
determining an offset direction of the first boundary based on the direction of the first boundary in the second ceiling area and determining an offset curve corresponding to the first boundary based on the offset of the first boundary and the offset direction of the first boundary under the condition that the offset of the first boundary is not a basic value;
And obtaining the offset curves corresponding to the boundaries at least based on the offset curves of the first boundaries.
19. The apparatus of claim 18, wherein the second display unit is further configured to:
determining an end point of a first offset curve and a start point of a second offset curve pointed by the direction of the first offset curve based on the direction of the first offset curve aiming at the first offset curve in the offset curves corresponding to the boundaries, 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;
determining that the first offset curve is connected with the second offset curve under the condition that the end point of the first offset curve coincides with the start point of the second offset curve;
converting the first offset curve into a first borderless curve and converting the second offset curve into a second borderless curve when the end point of the first offset curve does not coincide with the start point of the second offset curve;
in the case where the first borderless curve and the second borderless curve have an intersection, extending the end point of the first offset curve to the intersection and extending the start point of the second offset curve to the intersection.
20. The apparatus of claim 19, wherein the second display unit is further configured to:
and supplementing lines between the first offset curve and the second offset curve under the condition that the first borderless curve and the second borderless curve do not have intersection points.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-12.
22. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311639661.4A CN117633982A (en) | 2023-12-01 | 2023-12-01 | Method, device, equipment and storage medium for generating stacked suspended ceiling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311639661.4A CN117633982A (en) | 2023-12-01 | 2023-12-01 | Method, device, equipment and storage medium for generating stacked suspended ceiling |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117633982A true CN117633982A (en) | 2024-03-01 |
Family
ID=90030133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311639661.4A Pending CN117633982A (en) | 2023-12-01 | 2023-12-01 | Method, device, equipment and storage medium for generating stacked suspended ceiling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117633982A (en) |
-
2023
- 2023-12-01 CN CN202311639661.4A patent/CN117633982A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10360659B2 (en) | Method and apparatus for controlling image display during image editing | |
AU2019457052B2 (en) | Table processing method and apparatus, and intelligent interactive tablet and storage medium | |
CN113010937A (en) | Parametric modeling method of member section steel bar and related device | |
CN115510798B (en) | Chip typesetting method and device, computer readable storage medium and terminal equipment | |
CN112583620B (en) | Network topology map generation method, device, electronic equipment and storage medium | |
US10216712B2 (en) | Web page display method and device | |
CN117574498B (en) | Home decoration design method and device, electronic equipment and storage medium | |
CN117633982A (en) | Method, device, equipment and storage medium for generating stacked suspended ceiling | |
CN105824843A (en) | Geographic information system map rendering method and device | |
WO2017088292A1 (en) | Display method and apparatus for adjusting picture character | |
CN107369192B (en) | Connection relation processing method and device | |
CN110415351B (en) | Method, device and system for constructing three-dimensional grid based on single image | |
WO2017088282A1 (en) | Display method and apparatus for adjusting picture character | |
CN107526333B (en) | Method and device for generating chamfer cutting process | |
CN117744212A (en) | Curtain box processing method, device, equipment and storage medium | |
WO2015085845A1 (en) | Method and system for arrangement of page objects | |
CN112835660A (en) | Media layer display method, device and system and storage medium | |
CN117708944A (en) | Method, device, electronic equipment and storage medium for generating yin and yang angles | |
CN118296683B (en) | Determination method and device of model position information, electronic equipment and storage medium | |
CN112950748B (en) | Building drawing splicing method and related device | |
WO2019037636A1 (en) | Layout method and device for view component | |
CN117689773B (en) | Mapping method, mapping device, electronic equipment and storage medium | |
US11074763B2 (en) | Systems and methods for editing shapes of faceted geometries | |
CN118643567A (en) | Door opening generation method and device, electronic equipment and storage medium | |
CN117707399A (en) | Panel group display method, device, equipment and storage medium |
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 |