CN113704844A - Method for automatically establishing window model, electronic equipment and storage medium - Google Patents

Method for automatically establishing window model, electronic equipment and storage medium Download PDF

Info

Publication number
CN113704844A
CN113704844A CN202111272028.7A CN202111272028A CN113704844A CN 113704844 A CN113704844 A CN 113704844A CN 202111272028 A CN202111272028 A CN 202111272028A CN 113704844 A CN113704844 A CN 113704844A
Authority
CN
China
Prior art keywords
window
model
preset
sub
glass
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
Application number
CN202111272028.7A
Other languages
Chinese (zh)
Inventor
王彦文
王鼎明
范鹭
郭子馨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xkool Technology Co Ltd
Original Assignee
Shenzhen Xkool Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Xkool Technology Co Ltd filed Critical Shenzhen Xkool Technology Co Ltd
Priority to CN202111272028.7A priority Critical patent/CN113704844A/en
Publication of CN113704844A publication Critical patent/CN113704844A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Geometry (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention relates to the technical field of computer aided design, in particular to a method for automatically establishing a window model, electronic equipment and a storage medium. The embodiment of the invention provides a method for automatically establishing a window model, electronic equipment and a storage medium, wherein the method for automatically establishing the window model comprises the following steps: responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters; and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database. According to the method, the window model can be generated after the window bottom edge datum line and the window parameters are obtained through the first input operation of the user, the operation is simple and convenient, the operation is simple, the user experience is high, the operation speed is high, the generation time can be greatly shortened, the arrangement efficiency is improved, and the application range is increased.

Description

Method for automatically establishing window model, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer aided design, in particular to a method for automatically establishing a window model, electronic equipment and a storage medium.
Background
The Click-Window 3D is a Window generation plug-in based on a sketch master, the plug-in can generate a Window through setting information such as a Window material, glass thickness, classification, a Window opening mode and a handle in a one-key mode, software can help a user generate any desired Window, but the number of components generated by the Click-Window 3D is large, one component is nested in one component, the file is large in the later period, the Window is generated with large calculation amount each time, so that a relatively long pause time is generated in the Window generation process, the use feeling of the user is greatly influenced, secondly, the plug-in can be operated only by a certain building foundation and the use foundation of the sketch master software, and the plug-in is not friendly to common mass users.
Disclosure of Invention
The embodiment of the invention aims to provide a method for automatically establishing a window model, electronic equipment and a storage medium, which are simple in operation, high in user experience and high in operation speed.
In a first aspect, one technical solution adopted in the embodiments of the present invention is: a method for automatically establishing a window model is provided, which comprises the following steps: responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters; and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database.
In some embodiments, the method further comprises: responding to a second input operation of the user, and acquiring a window style; generating a window model according to the window base datum line, the window parameters and a preset window matrix database, wherein the window model comprises the following steps: selecting a preset window matrix model in a preset window matrix database according to the window style; and generating the window model according to the window bottom edge reference line, the window parameters and the preset window matrix model.
In some embodiments, the method further comprises: the method comprises the steps of constructing a window matrix database in advance, wherein the window matrix database comprises at least one preset window matrix model, the preset window matrix model comprises at least one preset window model, and each preset window matrix model corresponds to a window style.
In some embodiments, the window style includes at least one of a fixed window, a side-hung window, a sliding door window, a side-hung window, and a flip-up window.
In some embodiments, in one of the preset window matrix models, each of the preset window models corresponds to a window height section and a window width section.
In some embodiments, the window parameters include window height, sash thickness, and/or glass thickness; generating a window model according to the window bottom edge reference line, the window parameters and the preset window matrix model, wherein the generating comprises the following steps: determining the width of the window according to the bottom edge reference line of the window; obtaining the corner point coordinates of each sub-window of the window model, the width of each sub-window and the height of each sub-window according to the window width, the window height and the preset window matrix model; obtaining an outer window frame model, an inner window frame model and a glass model of the window model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters; and obtaining the window model according to the outer window frame model, the inner window frame model and the glass model.
In some embodiments, the obtaining an outer sash model, an inner sash model and a glass model of the window according to the window bottom edge reference line, each of the corner point coordinates, the width of each of the sub-windows, the height of each of the sub-windows and the window parameter includes: obtaining a contour line of the outer window frame model, a section line of the outer window frame model, a contour line of the inner window frame model, a section line of the inner window frame model, a contour line of the glass model, a contour line of a bottom edge of the glass model and a glass height of the glass model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters; generating the outer window frame model according to the contour line of the outer window frame and the section line of the outer window frame; generating the inner window frame model according to the contour line of the inner window frame and the section line of the inner window frame; and generating the glass model according to the bottom contour line of the glass and the height of the glass.
In some embodiments, the method further comprises: acquiring a first direction from a starting point of the window bottom edge datum line to an end point of the window bottom edge datum line; and in a plane perpendicular to the window model, the direction of counterclockwise rotation of 90 degrees in the first direction is the outer direction of the window model.
In a second aspect, an embodiment of the present invention 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 first aspects.
In a third aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method according to any one of the first aspect.
In a fourth aspect, the present invention also provides a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of the first aspect.
Compared with the prior art, the invention has the beneficial effects that: different from the situation of the prior art, the embodiment of the invention provides an automatic window model building method, an electronic device and a storage medium, wherein the automatic window model building method comprises the following steps: responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters; and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database. According to the method, the window model can be generated after the window bottom edge datum line and the window parameters are obtained through the first input operation of the user, the operation is simple and convenient, the operation is simple, the user experience is high, the operation speed is high, the generation time can be greatly shortened, the arrangement efficiency is improved, and the application range is increased.
Drawings
One or more embodiments are illustrated by the accompanying figures in the drawings that correspond thereto and are not to be construed as limiting the embodiments, wherein elements/modules and steps having the same reference numerals are represented by like elements/modules and steps, unless otherwise specified, and the drawings are not to scale.
FIG. 1 is a schematic flow chart of a method for automatically modeling a window according to an embodiment of the present invention;
FIG. 2 is a schematic structural view of an outer sash model according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart diagram illustrating another method for automatically modeling a window according to an embodiment of the present invention;
FIG. 4 is a schematic partial flow chart of a method for automatically modeling a window according to an embodiment of the present invention;
FIG. 5 illustrates a first predetermined window matrix model according to an embodiment of the present invention;
FIG. 6 is a second predetermined window matrix model according to an embodiment of the present invention;
FIG. 7 is a third predetermined window matrix model according to an embodiment of the present invention;
FIG. 8 is a fourth predetermined window matrix model according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart of step S22 in FIG. 3;
FIG. 10 is a schematic flow chart of step S223 of FIG. 5;
FIG. 11 is a schematic structural diagram of an automatic window modeling process according to an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a glass model modeling process according to an embodiment of the present invention;
FIG. 13 is a schematic partial flow chart diagram of another method for automatically modeling a window according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
In order to facilitate an understanding of the present application, the present application is described in more detail below with reference to the accompanying drawings and specific embodiments. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the present application. In addition, although the functional blocks are divided in the device diagram, in some cases, the blocks may be divided differently from those in the device. Further, the terms "first," "second," and the like, as used herein, do not limit the data and the execution order, but merely distinguish the same items or similar items having substantially the same functions and actions.
Referring to fig. 1, fig. 1 is a method for automatically building a window model according to an embodiment of the present invention, the method includes:
step S10: responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters;
specifically, the user may perform a first input operation on the terminal device, where the first input operation is an action of dragging a mouse by the user when the terminal device is a computer, and the first input operation is a drawing action of the user on a touch screen when the terminal device is a touch screen. By dragging a mouse or other drawing actions, a user can draw a window bottom edge reference line in a window model to be built on a terminal device, wherein the window bottom edge reference line is a line of a window bottom edge in the window model to be built and is also a bottom edge center line of an outer window frame model in the window model to be built, and the line is shown as L in fig. 2. Then, the window bottom edge reference line can be acquired by responding to a first input operation of a user on the terminal equipment. In addition, the user can also input window parameters such as window height, window frame thickness, glass thickness and the like in the terminal device, and if the user does not input the window parameters, the window parameters can be preset parameter values. In practical application, the terminal device may be a mobile phone, a tablet, a touch screen, or any other device capable of human-computer interaction.
Step S20: and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database.
Specifically, a window matrix database may be pre-established, and the preset window matrix data stores a set of window models corresponding to different window base reference lines and different window parameters, that is, each window model corresponds to one window base reference line and one window parameter. The window parameters comprise window height, window frame thickness and/or glass thickness, then, the required window model is correspondingly obtained in a preset window matrix database through the acquired window bottom edge datum line and the acquired window height, and then, the window model is generated by displaying on the terminal equipment according to the window frame thickness and/or the glass thickness.
Therefore, in the method for automatically establishing the window model provided by the embodiment of the invention, a user only needs to perform a first input operation on the terminal equipment, draw a window bottom edge reference line, input window parameters or directly find a corresponding window model in a preset window matrix database according to preset window parameters, so that the window model can be generated, and the operation is simple; in addition, in the method for automatically establishing the window model, a user does not need to build a model or download the model in advance, and a large number of required window models can be generated only by adjusting the window bottom edge reference line and/or the window parameters.
In some embodiments, referring to fig. 3, the method further comprises:
step S30: responding to a second input operation of the user, and acquiring a window style;
for example, the user may input a window style on the terminal device, and if the user does not input the window style or chooses not to input the window style, a preset window style is acquired. The window style comprises at least one of a fixed window, a side-opening window, a sliding door window, a casement window and an outward-turning window.
Further, the step S20 includes:
step S21: selecting a preset window matrix model in a preset window matrix database according to the window style;
step S22: and generating the window model according to the window bottom edge reference line, the window parameters and the preset window matrix model.
Specifically, a set of corresponding window models under different window base reference lines, different window parameters, different window styles and the like can be stored in the pre-established window matrix data, that is, each window model corresponds to one window base reference line, one window parameter and one window style. Then, the required window model can be correspondingly obtained in a preset window matrix database through the acquired window bottom base line, window parameters and window styles, and then the window model is generated by displaying on the terminal equipment.
To increase the speed of generating the window model, in some embodiments, referring to fig. 4, the method further comprises:
step S100: the method comprises the steps of constructing a window matrix database in advance, wherein the window matrix database comprises at least one preset window matrix model, the preset window matrix model comprises at least one preset window model, and each preset window matrix model corresponds to a window style.
Specifically, when a window matrix database is constructed in advance, different window types are constructed firstly, such as a fixed window, a side-opening window, a sliding door window, a side-hung window or an outward-turning window, and different preset window matrix models are constructed according to different window styles, and then different window base reference lines and window models under different window parameters are constructed in each preset window matrix model. For example, referring to FIGS. 5-8 below, a first default window matrix model with a window pattern of irregular side-windowing, a second default window matrix model with a window pattern of regular side-windowing, a third default window matrix model with a window pattern of sliding windows, and a fourth default window matrix model with a window pattern of sliding windows and windows may be constructed, i.e. the window types of all preset window models in the first preset window matrix model are only fixed windows and irregular side-opening windows, the window types of all preset window models in the second preset window matrix model are only fixed windows and regular side-opening windows, the window types of all preset window models in the third preset window matrix model are only fixed windows and sliding windows, the window types of all the preset window models in the fourth preset window matrix model are only fixed windows and sliding windows and doors.
In practical application, the window pattern includes at least one of a fixed window, a side-opening window, a sliding door window, a side-opening window and an outward-turning window, that is, the window pattern corresponding to each preset window matrix model can be set according to actual needs, for example, the window pattern can be a window pattern combining the fixed window, the side-opening window and the sliding door window, and the limitation in this embodiment is not required.
Then, after different preset window matrix models are built according to window styles, responding to first input operation and second input operation of a user, obtaining window base reference lines, window parameters and window styles, firstly finding corresponding preset window matrix models according to the window styles, then obtaining required window models in the preset window matrix models according to the window base reference lines and the window parameters in a corresponding mode, and finally displaying the window models on terminal equipment to generate the window models. For example, if the acquired window pattern is an irregular side-opening window, a required window model is obtained in the first preset window matrix model shown in fig. 5 according to the window bottom edge reference line and the window parameters.
After different preset window matrix models are built according to window styles, in order to build more window models in each preset window matrix model, in some embodiments, the types and the numbers of windows may be arranged and combined according to window height intervals and window width intervals, specifically, please refer to fig. 5-8, it can be seen that, in one preset window matrix model, each preset window model corresponds to one window height interval and one window width interval.
In some embodiments, when building each preset window matrix model, i.e. when building a preset window matrix model in a certain window style, the number of windows of a certain window category may be increased or decreased according to different window height intervals and different window width intervals. For example, in a preset window matrix model in a window style of a sliding window, only windows of both fixed and sliding window types are present, and then the number of fixed windows increases as the height of the window increases and/or the number of sliding windows increases as the width of the window increases. Although the window styles are the same for the same preset window matrix model, each preset window model is also changed along with the change of the window height and the window width through the construction mode, so that more types of window models can be constructed.
In particular, in some of these embodiments, the window parameters include window height, sash thickness, and/or glass thickness;
referring to fig. 9, the step S22 includes:
step S221: determining the width of the window according to the bottom edge reference line of the window;
step S222: obtaining the corner point coordinates of each sub-window of the window model, the width of each sub-window and the height of each sub-window according to the window width, the window height and the preset window matrix model;
step S223: obtaining an outer window frame model, an inner window frame model and a glass model of the window model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters;
step S224: and obtaining the window model according to the outer window frame model, the inner window frame model and the glass model.
After a user inputs a window bottom edge reference line and a window style through a first input operation, the window width of a window model to be established can be obtained according to the window bottom edge reference line, for example, the window width is 3300mm, and the window style is irregular side window opening; then, after the user inputs the window height through the second input operation, the window height of the window model to be established can be obtained, for example, the window height is 2400 mm; and then, finding a first preset window matrix model according to the window style, and correspondingly finding the window model with the window width of 3300mm and the window height of 2400mm in the first preset matrix model by combining the window width and the window height of the window model to be established.
Then, according to the window model correspondingly found in the first preset matrix model, it can be obtained that the window model to be established has four sub-windows, namely a first sub-window a, a second sub-window B, a third sub-window C and a fourth sub-window D, and the lower left corner coordinate of the first sub-window a, the lower left corner coordinate of the second sub-window B, the lower left corner coordinate of the third sub-window C and the lower left corner coordinate of the fourth sub-window D are obtained. In practical applications, the corner coordinates may also be the coordinates of the lower left corner, the upper right corner, or the lower right corner of the sub-window, and the limitation in this embodiment is not required here.
Then, according to the coordinates of the lower left corner point of the first sub-window a, the coordinates of the lower left corner point of the second sub-window B, the coordinates of the lower left corner point of the third sub-window C, the coordinates of the lower left corner point of the fourth sub-window D, the width and the height of the window, the width and the height of each sub-window are obtained according to a matrix rule, namely the width and the height of the first sub-window a, the width and the height of the second sub-window B, the width and the height of the third sub-window C and the width and the height of the fourth sub-window D;
finally, according to the coordinates of the lower left corner of the first sub-window A, the coordinates of the lower left corner of the second sub-window B, the coordinates of the lower left corner of the third sub-window C, the coordinates of the lower left corner of the fourth sub-window D, the width and height of the first sub-window A, the width and height of the second sub-window B, the width and height of the third sub-window C and the width and height of the fourth sub-window D, an inner window frame model and a glass model of the window model can be obtained; in addition, an outer window frame model of the window model is obtained according to the window bottom edge reference line, the window width and the window height; finally, a window model may be generated.
After the window model required to be established is found in the preset window matrix model in combination with the window width, the window height and the window style, the outer window frame model, the inner window frame model and the glass model are respectively generated, and the required model can be rapidly generated.
Specifically, in some embodiments, referring to fig. 10, the step S223 includes:
step S2231: obtaining a contour line of the outer window frame model, a section line of the outer window frame model, a contour line of the inner window frame model, a section line of the inner window frame model, a contour line of the glass model, a contour line of a bottom edge of the glass model and a glass height of the glass model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters;
step S2232: generating the outer window frame model according to the contour line of the outer window frame and the section line of the outer window frame;
step S2233: generating the inner window frame model according to the contour line of the inner window frame and the section line of the inner window frame;
step S2234: and generating the glass model according to the bottom contour line of the glass and the height of the glass.
For example, in step S222, when the corner coordinates, the width, and the height of each sub-window are obtained, the window type of each sub-window is also obtained from the preset window model in the preset matrix model, that is, the first sub-window a, the second sub-window B, and the fourth sub-window D are fixed windows, and the third sub-window C is a side-opening window.
Then, as shown in fig. 11, generating a contour line M1 of the outer sash according to the window base reference line and the window height, generating a section line M2 of the outer sash according to the window base reference line, the window width, the window height, and the sash thickness, generating a contour line a1 and a section line a2 of the first inner sash according to the width and the height of the first sub-window, similarly generating a contour line and a section line of the second inner sash according to the width and the height of the second sub-window, generating a contour line and a section line of the third inner sash according to the width and the height of the third sub-window, and generating a contour line and a section line of the fourth inner sash according to the width and the height of the fourth sub-window; and obtaining a bottom contour line L1 of the first sub-glass, a bottom contour line L2 of the second sub-glass, a bottom contour line L3 of the third sub-glass and a bottom contour line L4 of the fourth sub-glass according to the corner coordinates of the first sub-window, the corner coordinates of the second sub-window, the corner coordinates of the third sub-window and the corner coordinates of the fourth sub-window and a preset window model, as shown in a in FIG. 12; and the glass height of the first glass, the glass height of the second glass, the glass height of the third glass and the glass height of the fourth glass, wherein each glass height data type is a double-precision floating point type.
Finally, the outer sash model is swept out at the terminal device according to the contour line and the section line of the outer sash, as shown in fig. 2; sweeping out a first inner window frame model according to the contour line and the section line of the first inner window frame, sweeping out a second inner window frame model according to the contour line and the section line of the second inner window frame, sweeping out a third inner window frame model according to the contour line and the section line of the third inner window frame, sweeping out a fourth inner window frame model according to the contour line and the section line of the fourth inner window frame, wherein the first inner window frame model, the second inner window frame model, the third inner window frame model and the fourth inner window frame model form an inner window frame model; moving the bottom contour line of the first sub-glass along the y-axis direction shown in fig. 2 by the distance corresponding to the glass height to generate a first sub-glass model, moving the bottom contour line of the second sub-glass along the y-axis direction by the distance corresponding to the glass height to generate a second sub-glass model, moving the bottom contour line of the third sub-glass along the y-axis direction by the distance corresponding to the glass height to generate a third sub-glass model, and moving the bottom contour line of the fourth sub-glass along the y-axis direction by the distance corresponding to the glass height to generate a fourth sub-glass model, as shown in b in fig. 12. Finally, the outer window frame model, the inner window frame model and the glass model can be generated in a set mode or respectively and independently.
The contour line of the window frame and the corresponding swept section thereof, the contour line of the bottom edge of the glass and the corresponding glass height floating point number thereof are directly generated, and then the multi-segment line data and the floating point number are transported to the front end to extrude and sweep the three-dimensional model, so that the final window model is obtained. Through the mode, the process that the model is generated directly through an algorithm and then is transported to the front end is avoided, a lot of transportation time is reduced, the generation speed of the window model can be obviously improved, and the window model can be generated quickly.
Specifically, in some embodiments, referring to fig. 13, the method further includes:
step S41: acquiring a first direction from a starting point of the window bottom edge datum line to an end point of the window bottom edge datum line;
step S42: and in a plane perpendicular to the window model, the direction of rotating 90 degrees counterclockwise in the first direction is the outdoor direction of the window model.
For example, referring to fig. 2, a direction X from a starting point of the window bottom reference line to an end point of the window bottom reference line is a first direction, and then, on a plane perpendicular to the paper plane and on which the window bottom reference line is located, a direction rotated 90 degrees counterclockwise in the first direction X is a direction pointing to the outside of the window, i.e., a Z direction, which is used to indicate a location of a section line of the outer sash and a location of a section line of the inner sash, it is understood that the location of the section line of the outer sash should be an outside direction of the window and the location of the inner sash should be an inside direction of the window. By specifying the inside and outside direction of the window, the opening direction of the side-opening window, the casement window or the outward-turning window can be determined. In practical applications, the outdoor direction can be freely set, and the outdoor direction is not limited to the limitations of the present embodiment.
An embodiment of the present invention further provides a server, please refer to fig. 14, which shows a hardware structure of an electronic device capable of executing the method for automatically building a window model described in fig. 1 to 13.
The electronic device includes: at least one processor 11; and a memory 12 communicatively coupled to the at least one processor 11, with one processor 11 being illustrated in fig. 14 as an example. The memory 12 stores instructions executable by the at least one processor 11 to enable the at least one processor 11 to perform the method of automatically building a window model as described above with reference to fig. 1-13. The processor 11 and the memory 12 may be connected by a bus or other means, and fig. 10 illustrates the connection by a bus as an example.
The memory 12, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for automatically building a window model in the embodiment of the present application. The processor 11 executes various functional applications and data processing of the server by running the nonvolatile software programs, instructions and modules stored in the memory 12, that is, the method for automatically establishing the window model according to the embodiment of the method is realized.
The memory 12 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the automatic window model building apparatus, and the like. Further, the memory 12 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 12 optionally includes memory located remotely from processor 11, and these remote memories may be connected to the automated window modeling apparatus via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 12 and, when executed by the one or more processors 11, perform the method of automatically building a window model in any of the method embodiments described above, e.g., performing the method steps of fig. 1-13 described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, e.g., to perform the method steps of fig. 1-13 described above.
Embodiments of the present application further provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of automatically building a window model in any of the above-described method embodiments, for example, to perform the method steps of fig. 1 to 13 described above.
The embodiment of the invention provides a method for automatically establishing a window model, electronic equipment and a storage medium, wherein the method for automatically establishing the window model comprises the following steps: responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters; and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database. According to the method, the window model can be generated after the window bottom edge datum line and the window parameters are obtained through the first input operation of the user, the operation is simple and convenient, the operation is simple, the user experience is high, the operation speed is high, the generation time can be greatly shortened, the arrangement efficiency is improved, and the application range is increased.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or otherwise contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes a plurality of instructions for executing the method according to each embodiment or some parts of the embodiments by at least one computer device (which may be a personal computer, a server, or a network device, etc.).
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for automatically modeling a window, comprising:
responding to a first input operation of a user, and acquiring a window bottom edge reference line and window parameters;
and generating a window model according to the window bottom edge reference line, the window parameters and a preset window matrix database.
2. The method for automatically building a window model according to claim 1, further comprising:
responding to a second input operation of the user, and acquiring a window style;
generating a window model according to the window base datum line, the window parameters and a preset window matrix database, wherein the window model comprises the following steps:
selecting a preset window matrix model in a preset window matrix database according to the window style;
and generating the window model according to the window bottom edge reference line, the window parameters and the preset window matrix model.
3. The method for automatically building a window model according to claim 2, further comprising:
the method comprises the steps of constructing a window matrix database in advance, wherein the window matrix database comprises at least one preset window matrix model, the preset window matrix model comprises at least one preset window model, and each preset window matrix model corresponds to a window style.
4. The method of automatically modeling a window of claim 3, wherein the window style includes at least one of a fixed window, a side-hung window, a sliding door window, a side-hung window, and a tilt-out window.
5. The method for automatically building window models according to claim 4, wherein each of the preset window models corresponds to a window height interval and a window width interval in one of the preset window matrix models.
6. The method for automatically modeling a window according to claim 5, wherein said window parameters include window height, sash thickness, and/or glass thickness;
generating a window model according to the window bottom edge reference line, the window parameters and the preset window matrix model, wherein the generating comprises the following steps:
determining the width of the window according to the bottom edge reference line of the window;
obtaining the corner point coordinates of each sub-window of the window model, the width of each sub-window and the height of each sub-window according to the window width, the window height and the preset window matrix model;
obtaining an outer window frame model, an inner window frame model and a glass model of the window model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters;
and obtaining the window model according to the outer window frame model, the inner window frame model and the glass model.
7. The method for automatically building a window model according to claim 6, wherein the obtaining of the outer sash model, the inner sash model and the glass model of the window according to the window bottom datum line, each of the corner point coordinates, the width of each of the sub-windows, the height of each of the sub-windows and the window parameters comprises:
obtaining a contour line of the outer window frame model, a section line of the outer window frame model, a contour line of the inner window frame model, a section line of the inner window frame model, a contour line of the glass model, a contour line of a bottom edge of the glass model and a glass height of the glass model according to the window bottom edge reference line, each angular point coordinate, the width of each sub-window, the height of each sub-window and the window parameters;
generating the outer window frame model according to the contour line of the outer window frame and the section line of the outer window frame;
generating the inner window frame model according to the contour line of the inner window frame and the section line of the inner window frame;
and generating the glass model according to the bottom contour line of the glass and the height of the glass.
8. The method for automatically building a window model according to any one of claims 1-7, wherein the method further comprises:
acquiring a first direction from a starting point of the window bottom edge datum line to an end point of the window bottom edge datum line;
and in a plane perpendicular to the window model, the direction of counterclockwise rotation of 90 degrees in the first direction is the outer direction of the window model.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-8.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1-8.
CN202111272028.7A 2021-10-29 2021-10-29 Method for automatically establishing window model, electronic equipment and storage medium Pending CN113704844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111272028.7A CN113704844A (en) 2021-10-29 2021-10-29 Method for automatically establishing window model, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111272028.7A CN113704844A (en) 2021-10-29 2021-10-29 Method for automatically establishing window model, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113704844A true CN113704844A (en) 2021-11-26

Family

ID=78647630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111272028.7A Pending CN113704844A (en) 2021-10-29 2021-10-29 Method for automatically establishing window model, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113704844A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876910A (en) * 2018-06-15 2018-11-23 郑州云海信息技术有限公司 A kind of three-dimensional modeling method, device, equipment and computer readable storage medium
CN109711060A (en) * 2018-12-28 2019-05-03 中民筑友科技投资有限公司 Window frame connector automatic generation method, device and equipment based on assembled architecture
CN111833433A (en) * 2019-04-23 2020-10-27 巧夺天宫(深圳)科技有限公司 Building model creating method and device and intelligent terminal
CN212966888U (en) * 2020-08-31 2021-04-13 虹蚁(杭州)门窗科技有限公司 3D door and window model display equipment combining CAD drawing according to schematic diagram

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876910A (en) * 2018-06-15 2018-11-23 郑州云海信息技术有限公司 A kind of three-dimensional modeling method, device, equipment and computer readable storage medium
CN109711060A (en) * 2018-12-28 2019-05-03 中民筑友科技投资有限公司 Window frame connector automatic generation method, device and equipment based on assembled architecture
CN111833433A (en) * 2019-04-23 2020-10-27 巧夺天宫(深圳)科技有限公司 Building model creating method and device and intelligent terminal
CN212966888U (en) * 2020-08-31 2021-04-13 虹蚁(杭州)门窗科技有限公司 3D door and window model display equipment combining CAD drawing according to schematic diagram

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张晗: ""塑窗组装关系自动识别及参数化设计"", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *

Similar Documents

Publication Publication Date Title
US10803208B2 (en) Semantic understanding of 3D data
CN110866342B (en) Cabinet modeling method and system and electronic equipment
EP1550085B1 (en) Method of generating a computer readable model
CN109636919B (en) Holographic technology-based virtual exhibition hall construction method, system and storage medium
CN110167756B (en) Build direction based partitioning for building solid objects by additive manufacturing
CN110197534B (en) Virtual building accessory model hooking method, device, processor and terminal
CN101930627A (en) Three-dimensional dwelling size modeling method based on two-dimensional dwelling size diagram
US10452788B2 (en) Modeling a three-dimensional object having multiple materials
CN112765695B (en) Support body generation method, 3D printer, computer device, and storage medium
JP2022019748A (en) Device and method for generating dynamic virtual content in mixed reality
Liu et al. Real-time, dynamic level-of-detail management for three-axis NC milling simulation
CN114021222A (en) Building modeling method, electronic device, and computer storage medium
US20190050504A1 (en) Special-Purpose Programmed Computer For Numerical Simulation Of A Metal Forming Process Having A Predefined Load Path With Corresponding Mesh Adjustment Scheme
CN113704844A (en) Method for automatically establishing window model, electronic equipment and storage medium
CN112190944A (en) Virtual building model construction method and device and electronic device
CN114595538B (en) Processing method and device and electronic equipment
CN109461198A (en) The processing method and processing device of grid model
CN115984467A (en) Multi-room indoor house type graph reconstruction method based on unsupervised learning
CN107038176B (en) Method, device and equipment for rendering web graph page
CN114820968A (en) Three-dimensional visualization method and device, robot, electronic device and storage medium
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
CN113274734A (en) Virtual scene generation method and device and terminal equipment
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN113742804A (en) Furniture layout generating method, device, equipment and storage medium
CN117994411A (en) Virtual building processing method, device, equipment and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211126

RJ01 Rejection of invention patent application after publication