CN112347545A - Building model processing method and device, computer equipment and storage medium - Google Patents

Building model processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112347545A
CN112347545A CN202011378457.8A CN202011378457A CN112347545A CN 112347545 A CN112347545 A CN 112347545A CN 202011378457 A CN202011378457 A CN 202011378457A CN 112347545 A CN112347545 A CN 112347545A
Authority
CN
China
Prior art keywords
building
model
building model
target
data
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.)
Withdrawn
Application number
CN202011378457.8A
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.)
Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Original Assignee
Jiuling Jiangsu Digital Intelligent 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 Jiuling Jiangsu Digital Intelligent Technology Co Ltd filed Critical Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Priority to CN202011378457.8A priority Critical patent/CN112347545A/en
Publication of CN112347545A publication Critical patent/CN112347545A/en
Withdrawn 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/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Abstract

The embodiment of the application discloses a building model processing method and device, computer equipment and a storage medium. The building model processing method comprises the following steps: receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request; carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model; determining a geometric data subset corresponding to each component group of the target building model from the geometric data set; determining a building data subset corresponding to each component group of the target building model from the building data set; constructing a processed building model of the target building model based on the geometric data set and the geometric data subset, and generating attribute information of the processed building model based on the building data set and the building data subset; and sending the processed building model to the terminal so that the terminal can display the processed building model. The efficiency of looking over building model information can be improved.

Description

Building model processing method and device, computer equipment and storage medium
Technical Field
The application relates to the field of computer aided design, in particular to a building model processing method, a building model processing device, computer equipment and a storage medium.
Background
The BIM (building Information modeling) model, that is, the building Information model is a three-dimensional model built by architecture, engineering and civil engineering according to the Information set of the building. The BIM model is a process of designing, constructing and operating a building project by utilizing a digital model, and can greatly improve the design efficiency of the building.
At present, the building of the BIM model is to perform a weight reduction process on the building model to obtain the BIM model of the building model. The BIM model can then be displayed on line, so that a user can conveniently view the relevant information of the building model at any time. The building model can be obtained by drawing through building software, and the building software can be Revit, SketchUp and the like.
In the related art, when a weight reduction process is performed on a building model, a BIM model obtained by analyzing a single member in the building model includes information on each member. However, when the BIM model is displayed through the online platform, only information of a single component can be displayed, if information of a component group in the building model is required to be viewed, the information can be viewed only through the building software, the operation is complex, and the time consumption is long and the time is wasted when the building model is loaded through the building software.
Disclosure of Invention
The embodiment of the application provides a building model processing method and device, computer equipment and a storage medium, and the checking efficiency of building model information can be improved.
The embodiment of the application provides a building model processing method, which is applied to a server and comprises the following steps:
receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request;
carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets;
determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets;
constructing a processed building model of the target building model based on the set of geometric data and the plurality of subsets of geometric data, and generating attribute information of the processed building model based on the set of building data and the plurality of subsets of building data;
and sending the processed building model to the terminal so that the terminal displays the processed building model.
Correspondingly, the embodiment of the present application further provides another building model processing method, applied to a terminal, including:
when a model display instruction is received, displaying a selection list on a current webpage interface;
determining a target building model from a plurality of sample building models through the selection list;
sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model;
and when receiving the processed building model after lightweight processing returned by the server aiming at the model processing request, displaying the processed building model on the webpage interface.
Correspondingly, the embodiment of the present application further provides a building model processing apparatus, applied to a server, including:
the system comprises a receiving unit, a model processing unit and a processing unit, wherein the receiving unit is used for receiving a model processing request sent by a terminal and determining a target building model corresponding to the model processing request;
the processing unit is used for carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
the first determining unit is used for determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets;
a second determining unit, configured to determine, from the building data set, a building data subset corresponding to each component group of the target building model, to obtain multiple building data subsets;
a construction unit configured to construct a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generate attribute information of the processed building model based on the building data set and the plurality of building data subsets;
and the first sending unit is used for sending the processed building model to the terminal so that the terminal can display the processed building model.
Correspondingly, the embodiment of the present application further provides another building model processing apparatus, which is applied to a terminal, and includes:
the first display unit is used for displaying a selection list on a current webpage interface when a model display instruction is received;
a third determination unit for determining a target building model from a plurality of sample building models through the selection list;
a second sending unit, configured to send a model processing request to a server, where the model processing request instructs the server to perform lightweight processing on the target building model;
and the second display unit is used for displaying the processed building model on the webpage interface when receiving the lightweight processed building model returned by the server aiming at the model processing request.
Accordingly, embodiments of the present application also provide a computer device, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps of the building model processing method described above.
Accordingly, the present application also provides a storage medium storing a plurality of instructions, which are suitable for being loaded by a processor to perform the steps of the building model processing method as described above.
In the process of carrying out lightweight processing on the building model, the geometric data and the building data of each component group in the building model are generated, and the geometric data and the building data of the component groups are stored in the information set after the lightweight processing of the building model, so that when the terminal displays the building model after the lightweight processing through an application interface, the attribute information of the component groups can be quickly checked, and the checking efficiency of the building model information can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a building model processing method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a building model processing method according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of another building model processing method according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a web interface according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a selection list of building models according to an embodiment of the present application.
Fig. 6 is a schematic illustration of a processed building model according to an embodiment of the present application.
Fig. 7 is a schematic flow chart of another building model processing method according to an embodiment of the present application.
Fig. 8 is a schematic flow chart of another building model processing method according to an embodiment of the present application.
Fig. 9 is a block diagram of a structure of a building model processing apparatus according to an embodiment of the present application.
FIG. 10 is a block diagram of another building model processing apparatus according to an embodiment of the present application
Fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of another computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a building model processing method, apparatus, computer device, and storage medium, which can improve the efficiency of viewing building model information. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a data processing method provided in an embodiment of the present application, where the data processing method includes a terminal and a server, and the terminal is connected to the server through a network. The network includes network entities such as routers and gateways.
The server can receive a model processing request sent by the terminal and determine a target building model corresponding to the model processing request; carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model; determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets; determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets; constructing a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generating attribute information of the processed building model based on the building data set and the plurality of building data subsets; and sending the processed building model to the terminal so that the terminal can display the processed building model.
The terminal can display a selection list on a current webpage interface when receiving a model display instruction; determining a target building model from the plurality of sample building models by selecting the list; sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model; and when the processed building model after lightweight processing returned by the server aiming at the model processing request is received, displaying the processed building model on a webpage interface.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The following describes a building model processing method in the present application by using a specific embodiment, please refer to fig. 2, fig. 2 is a schematic flow chart of a building model processing method provided in the present application, and the method is described by taking fig. 1 as an example. The concrete flow of the building model processing method can be as follows:
101. and receiving a model processing request sent by the terminal, and determining a target building model corresponding to the model processing request.
The model processing request is used for instructing the server to process the building model, and the model processing request is sent to the server by the terminal. The triggering mode of the model processing request includes multiple types, for example, the terminal may be triggered to send the model processing request to the server by the user performing corresponding operation on the application program of the terminal.
The target building model refers to a structural model of a building drawn by building design software, for example, the target building model may be a structural model of a house.
In the embodiment of the application, the Building design software may be Revit software, and the Revit software is constructed for a Building Information Modeling (BIM), and can help architects to design, build and maintain buildings with better quality and higher energy efficiency.
Wherein the building design software may be installed in a terminal that may include a memory, a processor, and a display screen. The processor can run the architectural design software, the architectural design software can be stored in the memory in the form of a computer program, the memory also provides a running environment for the architectural design software, and the memory can store the running information of the architectural design software. Specifically, the display screen can display a design interface of the building design software, and a user can input information through the design interface to design a building.
102. And carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model.
The lightweight processing can remove the dependence of the building model on professional building design software on one hand: specifically, the model file (which may be a Revit model or the like) is parsed into another new format, and the new format can be browsed by general-purpose software such as a browser. Since professional architectural design software usually needs to be purchased and installed, not only is the purchase cost high, but also the installation of the software also needs to occupy a lot of hardware resources of the terminal.
On the other hand, the size of the original model file can be compressed: for example, the size of the original model file (which may be a Revit model) is 100M (unit: mega), and after the original model file is subjected to format conversion, the size of the file becomes 10M, so that the file transmission efficiency can be improved. From an editable building model to a lightweight model displayed in a browser, some unnecessary information, such as spatial information in a Revit model, can be removed according to actual requirements.
The geometric data is used for representing the composition structure of the building elements in the target building model, and the geometric data set comprises the composition structures of all the building elements in the target building model.
For example, the target building model may include a building element, and the structure of the building element may be a quadrangle, that is, the building element is composed of four sides. Then, the geometric data of the building element may include length data corresponding to the four sides, respectively, and positional relationship data of the four sides.
Here, the building member refers to each element constituting a building, and if the building is regarded as one product, the building member is each part of the product. For example, the building may be a complete window structure, and the building element may be a sash, a glass of the window.
The building data is used to represent the attribute information of the building elements in the target building model, and the attribute information may include the size specification, material, and identifier of the building elements. Wherein the identification may be used to distinguish between different building elements. The building data set includes attribute information of all building elements in the target building model.
For example, the target architectural model may include an architectural element, the architectural element may be a piece of glass, and the architectural data for the architectural element may include the size, name, and material of the glass.
In some embodiments, in order to improve the processing efficiency of the building model, the step "performing a weight reduction process on the target building model to obtain the geometric data set and the building data set of the target building model" may include the following steps:
obtaining a plurality of members of a target building model;
analyzing each component to generate geometric data and building data of the component;
based on the geometric data and the building data for each component, a set of geometric data and a set of building data are determined.
Wherein the plurality of members refers to a plurality of building members constituting the target building model. For example, the target building model may be a house, and the plurality of members may refer to building members such as walls, doors, door frames, glass, window frames, etc. constituting the house.
In the embodiment of the application, after the server determines the target building model according to the model processing request sent by the terminal, the information set of the target building model can be acquired. Wherein the set of information may include a plurality of items of information of the target building model. For example, the information sets may include building components, building component information, spatial relationships, and the like.
The information set of the target building model may be various items of information of the target building model generated when the target building model is drawn by the building design software. When the target building model is saved, the information set of the target building model may be saved in a file form, and then the information set of the target building model may also be saved in a file form in the same folder as the file of the target building model.
There are various ways for the server to obtain the information set of the target building model.
For example, the server may obtain the information set of the target building model from the terminal memory, or may obtain the information set of the target building model from the memory of the server when the information set of the target building model is not stored in the terminal memory.
The analyzing processing of each component refers to acquiring component information of each component from the information set of the target building model, and then extracting geometric data and building data of the component from the component information.
Specifically, a plurality of building elements may be obtained from the information set of the target building element, and a plurality of elements may be obtained, and further, building element information corresponding to each building element may be obtained from the information set, and then geometric data and building data of the building elements may be extracted from the building element information according to different data types, so that geometric data and building data of each element may be obtained.
After the geometric data and the building data corresponding to each member in the target building model are acquired, the combined data of all the members can be combined to obtain a geometric data set, and the building data of all the members are combined to obtain a building data set.
103. And determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets.
Wherein the member group consists of a plurality of members, for example, a window consisting of glass, a window frame and a handle. The window can then be a set of components, and the glass, sash and handle are the components that make up the window.
In some embodiments, in order to retain complete information of the target building model, the step "determining from the set of geometric data that each member group of the target building model corresponds to a subset of geometric data" may comprise the operations of:
determining a plurality of component members in each member group;
matching the component members of each member group with the members of the target building model;
and extracting the geometric data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the geometric data set to obtain a geometric data subset of the member groups.
The geometric data set includes the geometric data of each member in the target building model, which has been described in the above steps.
Wherein, the plurality of component elements of each element group refer to a plurality of building elements forming the element group.
For example, the member group may be an entire window structure, and then the plurality of constituent members of the member group may be: window frames, glass, handles, and the like.
The component groups in the target building model may be obtained from an information set of the target building model, and the information set may further include all component groups of the target building components.
After all of the component groups of the target building model are acquired, the component members included in each component group may be determined.
For example, the set of components of the target architectural model may include: a first member group, a second member group, a third member group, etc., wherein the first member group may include a component member 1a, a component member 1b, a component member 1c, etc.; the second member group may include component member 2a, component member 2b, component member 2c, and the like; the third member group may include the constituent member 3a, the constituent member 3b, and the like.
Further, each component has a corresponding component identifier. Then, when matching the component structure of each component group with the components of the target building model, it may refer to matching the component identification of each component structure of each component group with the component identifications of all the components in the target building model.
For example, the set of components may be a first set of components, which may include: a first constituent member, a second constituent member, and a third constituent member. Here, the first constituent member may be identified as "1 a", the second constituent member may be identified as "1 b", and the third constituent member may be identified as "1 c". The components of the target architectural model may include: a first member, a second member, a third member, and a fourth member. Here, the member identification of the first member may be "1 a", the identification of the second member may be "1 b", the identification of the third member may be "1 c", and the identification of the fourth member may be "1 d". Matching the component members of the group of component members with the component members of the target building model based on the component identifications may determine that the first component member matches the first component member successfully, the second component member matches the second component member successfully, and the third component member matches the third component member successfully.
When the components in the component group are successfully matched with the components in the target building model, the geometric data corresponding to the components successfully matched with the components can be acquired from the geometric data set of the target building components, so as to obtain the geometric data of the components. Then, the geometric data of the component members belonging to the same member group are combined, so that the geometric data subset corresponding to the member group can be obtained.
104. And determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets.
The definition of the component group has been explained in the previous step, and is not described herein again.
In some embodiments, in order to retain complete information of the target building model, the step "determining a building data subset corresponding to each component group of the target building model from the building data set" may include the following operations:
determining a plurality of component members in each member group;
matching the component members of each member group with the members of the target building model;
and extracting the building data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the building data set to obtain a building data subset of the member groups.
The building data set includes the building data of each member in the target building model, which has been described in the above steps.
In step 103, the detailed description is given, and reference may be made to the implementation in step 103, which is not repeated herein.
When the component in the component group is successfully matched with the component in the target building model, the building data corresponding to the component successfully matched with the component can be acquired from the building data set of the target building component, so as to obtain the building data of the component. Then, the building data of the component members belonging to the same member group are combined, so that the building data subset corresponding to the member group can be obtained.
105. And constructing a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generating attribute information of the processed building model based on the building data set and the plurality of building data subsets.
The processed building model refers to a geometric structure model obtained by performing lightweight processing on a target building model, and can be used for displaying in different application programs.
For example, the target building model needs to be displayed through building design software, the processed building model can be displayed in a browser, and the problem that the target building model is checked when the building design software is not installed in a terminal can be solved.
The processed building model includes a member group structure, and therefore, the attribute information of the processed building model includes attribute information of a single member and attribute information of a member group.
For example, a window is a component group that integrates glass, window frames, handles, etc. The glass, the window frame and the handle belong to a single component and respectively have own attribute information, but the window obtained by combining the glass, the window frame and the handle not only comprises the attribute information of the glass, the window frame and the handle, but also records the attribute information of the window.
In some embodiments, in order to preserve the complete structure of the target architectural model when exposed, the step of "building the processed architectural model of the target architectural model based on the set of geometric data and the plurality of subsets of geometric data" may comprise the following operations:
generating a member structure for each member from the set of geometric data;
generating a component group structure of each component group according to the plurality of geometrical data subsets;
and combining the component structure and the component group structure to obtain a processed building model of the target building model.
The structural element structure refers to the expression form of the structural element when the structural element is displayed, namely a geometric figure.
The geometric data set comprises geometric data of all the components, the geometric data corresponding to each component is determined from the geometric data set, and then the component structure of the component is generated according to the geometric data corresponding to the component.
For example, the geometry data set includes first data, second data, and the like, the first data being geometry data of the first component, and the second data being geometry data of the second component. The first geometric data represents four line segments with lengths, and the position relationship of the four line segments can generate a member structure of the first member according to the first geometric data, and the member structure can be a quadrangle; the second geometry data represents a circle with a set radius length, and the component structure of the second component may be generated from the second geometry data, which may be a circle.
The component group structure refers to the representation form of the component group when being displayed, and can also be a geometric figure.
The geometric data subset includes geometric data of each component in a component group and a positional relationship of the component, and a component structure of each component may be generated according to the geometric data of each component, and then the component structures of all the components are arranged according to the positional relationship of the components, so as to obtain a component group structure.
For example, the member group includes a first constituent member and a second constituent member, the geometric data included in the geometric data subset includes third data of the first constituent member, the geometric data of the second constituent member is fourth data, and the positional relationship between the first constituent member and the second constituent member may be adjacent to each other up and down. The component structure of the first component can be generated as a triangle according to the third data, the component structure of the second component can be generated as a quadrangle according to the fourth data, and then the component group structure of the component group can be obtained as a triangle and a quadrangle which are adjacent up and down according to the position relationship of the first component and the second component.
After the component structure of each single component and the component group structure of each component group are generated, all the component structures and the component group structures are combined according to the position information in the target building model, so that the processed building model of the target building model can be obtained, and unnecessary information in the target building model is removed from the processed building model, so that the viewing efficiency of the target building model is improved.
106. And sending the processed building model to the terminal so that the terminal can display the processed building model.
After the processed building model of the target building model is generated according to the above steps, the processed building model may be transmitted to the terminal so that the terminal may display the processed building model.
The embodiment of the application discloses a building model processing method, which comprises the following steps: receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request; carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model; determining a geometric data subset corresponding to each component group of the target building model from the geometric data set; determining a building data subset corresponding to each component group of the target building model from the building data set; constructing a processed building model of the target building model based on the geometric data set and the geometric data subset, and generating attribute information of the processed building model based on the building data set and the building data subset; and sending the processed building model to the terminal so that the terminal can display the processed building model. In the embodiment of the application, in the process of carrying out lightweight processing on the building model, the geometric data and the building data of each component group in the building model are generated, and the geometric data and the building data of the component groups are stored in the information set after the lightweight processing of the building model, so that the complete information of the building model is reserved, and the processing efficiency of the building model is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another building model processing method according to an embodiment of the present application. Taking the application of the building model processing method to a terminal as an example, the specific scene application of the building model processing method can be as follows:
201. and when a model display instruction is received, displaying the selection list on the current webpage interface.
The model display instruction is used for displaying the target building model on a display interface of the terminal, the model display instruction can be triggered through user operation, the display interface of the terminal can include multiple types, and for example, the display interface can be a web interface.
The web interface refers to a display interface of a browser application program. A browser application is an application that displays files on a web server or file system and allows a user to interact with the files. It is used to display text, images and other information within the world wide web or local area network, etc. These words or images can be hyperlinks to other web sites, and the user can browse various information quickly and easily.
The user operation may be an operation performed by a user on a web interface.
For example, please refer to fig. 4, and fig. 4 is a schematic diagram of a web interface according to an embodiment of the present disclosure. In the web interface a, a loading control B may be provided, where the loading control B is used to load the building model, and a user may trigger a model display instruction by clicking the loading control B. The web interface a may also display other information such as various characters and images, which are not specifically shown in fig. 4.
Wherein, the selection list refers to a list comprising a plurality of sample building models.
For example, please refer to fig. 5, fig. 5 is a schematic diagram illustrating a selection list of building models according to an embodiment of the present disclosure. In the web interface a shown in fig. 5, when the user clicks the loading control B, a selection list C may be presented on the web interface a, where the selection list C may include a plurality of building models, such as: a first sample building model, a second sample building model, and a third sample building model.
202. A target building model is determined from the plurality of sample building models by selecting the list.
The target building model refers to a selected one of the multiple sample building models in the selection list, and the target building model can be selected through a selection operation of the user on the selection list.
For example, the selection list may include a first sample building model, a second sample building model, and a third sample building model, and when it is detected that the user clicks the first sample building model in the selection list, it may be determined that the user selects the first sample building model, that is, the first sample building model is the target building model.
203. And sending a model processing request to a server.
Wherein the model processing request instructs the server to perform the weight reduction processing on the target building model. Specifically, after the target building model is loaded to the web interface according to the user operation, the target building model may be sent to a specific website corresponding to the web interface, and the specific website may send the target building model to the background server, so that the background server performs the lightweight processing on the target building model.
The specific website corresponding to the web interface refers to an interface website for sending the target building model to the background server in the browser application program corresponding to the web interface.
204. And when the processed building model after lightweight processing returned by the server aiming at the model processing request is received, displaying the processed building model on a webpage interface.
The processed building model is displayed on a Web interface, and a browser corresponding to the Web interface can support a WebGL (Web Graphics Library) technology.
WebGL is a 3D (3 Dimensions) drawing protocol, the drawing technical standard allows JavaScript and OpenGL ES 2.0 to be combined together, and by adding one JavaScript binding of OpenGL ES 2.0, WebGL can provide hardware 3D accelerated rendering for HTML5 Canvas, so that a Web developer can more smoothly display 3D scenes and models in a browser by means of a system graphics card, and complicated navigation and data visualization can be created. Obviously, the WebGL technical standard eliminates the trouble of developing web page-specific rendering plug-ins, can be used to create web site pages with complex 3D structures, and can even be used to design 3D web games, and the like.
For example, referring to fig. 6, fig. 6 is a schematic view showing a processed building model according to an embodiment of the present disclosure. In fig. 6, the web interface a may include a building model presentation area F and a function menu area E. The building model display area F can display the processed building model D so that a user can view the building model; the function menu area E may include a plurality of function buttons, and the user may perform different operations on the processed building model by clicking different function buttons.
In some embodiments, in order to improve the information display efficiency of the building model, after the step of "displaying the processed building model on the web interface", the following steps may be further included:
when the clicking operation of the processed building model on the webpage interface is detected, acquiring the clicking position of the clicking operation on the webpage interface;
determining the structure of the processed building model corresponding to the click position;
judging whether the structure belongs to a component group structure;
if the structure belongs to the component group structure, displaying a first control and a second control on a webpage interface according to the clicking position;
when the selection operation of a user on the first control is detected, displaying the attribute information of the component corresponding to the structure on a webpage interface;
and when the selection operation of the user on the second control is detected, displaying the attribute information of the component group corresponding to the structure on the webpage interface.
The click operation refers to the operation of the processed building model by the user, and can be executed in various ways.
For example, the user may touch the processed building model by touching the terminal display screen with a finger, or the user may touch the processed building model by touching the terminal display screen with a stylus pen, or the user may click the processed building model through an external control device (such as a mouse) of the terminal.
In the embodiment of the application, in order to reduce the contact area between the click operation and the processed building model, the click operation may be performed on the processed building model through an external device of the terminal. Because the area occupied by part of the component structures of the processed building model is small, when a user touches the processed building model through a finger, the contact area of the finger and the processed building model is large, and the finger covers a plurality of component structures, so that the terminal cannot determine the target component structure determined by the current click operation, and the component information cannot be displayed.
When the external equipment of the terminal executes the click operation on the processed building model, the contact area of the external equipment with the processed building model is small, and the external equipment cannot cover a plurality of member structures simultaneously, so that the terminal can identify the member structure corresponding to the current click operation, information corresponding to the member structure can be displayed, and the information viewing efficiency is improved.
The click position refers to a coordinate of the click operation on the web interface, for example, coordinate axes can be established on two adjacent sides of the display screen of the terminal, and the coordinate of the click operation can be determined.
The structure of the processed building model corresponding to the click position refers to a component structure of the processed building model.
For example, in fig. 6, the processed building model is a house, which may include structures such as a roof, a door, a window, and a wall, and when the click position of the click operation corresponds to the roof region, the structure corresponding to the click operation may be determined to be the roof.
Since the treated building model includes a member structure, i.e., a structure of a single member, and a member group structure, the member group structure refers to a structure in which a plurality of members are combined together. If the attribute information corresponding to the component structure is different from the attribute information corresponding to the component group structure, it is necessary to determine whether the structure corresponding to the user click operation is the component structure or the component group structure.
When the structure corresponding to the user click operation is a member structure, the attribute information of the member structure may be acquired, and then the attribute information of the member structure may be directly displayed at the click position of the click operation.
When the structure corresponding to the clicking operation of the user belongs to the component group structure, the first control and the second control can be displayed at the clicking position of the clicking operation.
The first control is used for displaying the attribute information of the component, and the second control is used for displaying the attribute information of the component group.
For example, referring to fig. 7, fig. 7 is a schematic interface diagram illustrating a click operation performed on a processed building model according to an embodiment of the present application. In fig. 7, by performing a click operation on the processed building model D, it is possible to determine that the structure of the selected processed building model D is a window according to the click position S of the click operation. The window is a member group structure, and the window can comprise a window frame, glass and other member structures. Then, when it is determined that the structure corresponding to the clicking operation is a component group structure, a first control G and a second control H are displayed near the clicking position, where the first control G is used for displaying attribute information corresponding to the component structure, and the second control H is used for displaying attribute information corresponding to the component group structure.
The embodiment of the application discloses a building model processing method, which comprises the following steps: when a model display instruction is received, displaying a selection list on a current webpage interface; determining a target building model from the plurality of sample building models by selecting the list; sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model; and when the processed building model after lightweight processing returned by the server aiming at the model processing request is received, displaying the processed building model on a webpage interface. According to the embodiment of the application, when the terminal displays the building model subjected to lightweight processing through the application interface, the attribute information of the component group can be quickly checked, so that the checking efficiency of the building model information can be improved.
As shown in fig. 8, fig. 8 is a schematic flow chart of another building model processing method according to the embodiment of the present application. Taking the interaction between a server and a terminal as an example, the building model processing method is provided, and the specific flow is as follows:
301. and when the model loading operation of the user on the current webpage interface is detected, determining a target building model corresponding to the model loading operation.
The web interface refers to an application interface opened by a user, and the application may be a browser application.
The model loading operation is used for loading a building model file to a browser, wherein the building model file refers to a file in which a building model drawn by building design software is stored, and the building model file can be acquired in various ways.
For example, the building model file may be obtained from a local file library of the terminal, or may be downloaded from the internet, or may be shared by other terminals.
The web interface may include a model loading control, and when it is detected that the user clicks the model loading control, a model selection list may be presented on the web interface, where the model selection list may include a plurality of building model files. Such as a first building file, a second building file, a third building file, etc.
For example, a user may click on a first building file in the model selection list, and the first building file may be determined to be the target building model.
302. And sending a model processing request to a server.
Wherein the model processing request instructs the server to perform the weight reduction processing on the target building model.
After the target building model is determined according to the model loading operation of the user, the browser can be triggered to send a model processing request to the server.
303. And performing lightweight processing on the target building model to obtain a processed building model of the target building model and an attribute information set of the processed building model.
The processed building model comprises a component structure and a component group structure of the target building model, and the attribute information set of the processed building model comprises attribute information of the component structure and attribute information of the component allowable structure.
The method for performing the lightweight processing on the target building model has been specifically described in the above embodiments, and reference may be made to the above embodiments, which are not repeated herein.
304. And sending the processed building model and the attribute information set of the processed building model to a terminal.
After the server performs the weight reduction processing on the target building model, a weight reduction result is obtained, that is, the processed building model and the attribute information set of the processed building model are obtained, and the processed building model and the attribute information set of the processed building model can be returned to the terminal.
305. And displaying the processed building model on a webpage interface.
After the terminal receives the processed building model returned by the server according to the model processing request, the processed building model can be displayed on a webpage interface.
For example, the target building model is a house including each building structure constituting the house when displayed by the building design software. Then, after the target building model is subjected to lightweight processing through the server, a processed building model is obtained, and the format of the processed building model is a model format which supports displaying in a browser or other application platforms.
For example, the format of the model after the target building model drawn by the building design software is saved is format a, the format of the building model which is opened by a browser or other application support is format B, and the target building model in format a can be converted into the processed model in format B by transmitting the target building model to the server side for weight reduction. At this point, the processed architectural model of Format B may be opened and exposed in a browser or other application.
306. And when the fact that the user clicks the processed building model is detected, determining a structure corresponding to the clicking operation.
Since the processed building model includes a member structure and a member group structure, the structure corresponding to the click operation may be the member structure or the member group structure.
For example, when it is detected that the user performs a click operation on the processed building, a structure corresponding to the click operation may be determined according to a click position of the click operation.
307. And if the structure corresponding to the clicking operation is the component group structure, displaying a third control at the clicking position of the clicking operation.
In an embodiment, for convenience of user operation, when the structure corresponding to the user click operation is a component group structure, a third control may be displayed near a click position of the click operation.
The third control element is used for executing the grouping disassembling operation on the component group structure, and the grouping disassembling operation is also to split one component group structure into a plurality of component structures.
For example, the structure corresponding to the user click operation may be a door structure, and since the door structure includes a door frame, a handle, and a door panel, the door structure may be determined to be a component group structure, and then the structure corresponding to the user click operation may be determined to be a component group structure. At this point, a third control may be displayed next to the door structure.
308. And when the operation of the user on the third control is detected, performing the grouping disassembling operation on the component group structure, and displaying the attribute information of all the component structures in the grouped component group structure on a webpage interface.
The component group structure is subjected to the disassembling operation, and one component group can be split into a plurality of components by disassembling the association relationship of a plurality of component structures forming the component group structure.
For example, the structure corresponding to the user click operation is a door structure, the terminal displays a third control beside the door structure, and the user performs click operation on the third control, so that the door structure can be disassembled according to the user click operation, and the door structure is split into three component structures, namely a door frame, a handle and a door panel.
And obtaining a plurality of component structures after the component group structures are subjected to the grouping operation, acquiring attribute information corresponding to the plurality of component structures from the attribute information set of the processed building model, and displaying the attribute information of the plurality of components beside the original component group structures. Wherein, the original component group is the component group structure formed before the plurality of components are disassembled.
By the mode, the condition that the user views the attribute information of the component group and the attribute information of the component is also met, and the user can perform the operation of disassembling the component group and recovering the disassembly can be realized. The method and the device meet the user operation requirements when the building model is displayed on the browser webpage interface, and improve the user experience.
The embodiment of the application discloses a building model processing method, which comprises the following steps: when the terminal detects the model loading operation of a user on the current webpage interface, determining a target building model corresponding to the model loading operation, and sending a model processing request to the server; the server performs lightweight processing on the target building model to obtain a processed model of the target building model and an attribute information set of the processed model, and sends the processed building model and the attribute information set of the processed model to the terminal; the terminal displays the processed building model on a webpage interface, determines a structure corresponding to a click operation when the click operation of a user on the processed building model is detected, displays a third control piece at the click position of the click operation if the structure corresponding to the click operation is a component group structure, performs an ungrouping operation on the component group structure when the operation of the user on the third control piece is detected, and displays attribute information of all component structures in the ungrouped component group structure on the webpage interface. According to the embodiment of the application, the building model is loaded to the webpage interface, the building model is sent to the server side to be subjected to lightweight processing, the processed model is obtained, when the lightweight processing is carried out on the building model, the component group structure of the building model is reserved, and the attribute information corresponding to the component group structure is generated, so that when the processed model is displayed on the webpage interface, different structural information is displayed according to different requirements of a user, and the user experience is greatly improved.
In order to better implement the building model processing method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the building model processing. The terms are the same as those in the building model processing method, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 9, fig. 9 is a block diagram of a building model processing apparatus according to an embodiment of the present application, where the apparatus includes:
a receiving unit 401, configured to receive a model processing request sent by a terminal, and determine a target building model corresponding to the model processing request;
a processing unit 402, configured to perform lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
a first determining unit 403, configured to determine, from the geometric data sets, a geometric data subset corresponding to each component group of the target building model, to obtain multiple geometric data subsets;
a second determining unit 404, configured to determine, from the building data set, a building data subset corresponding to each component group of the target building model, to obtain multiple building data subsets;
a construction unit 405, configured to construct a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generate attribute information of the processed building model based on the building data set and the plurality of building data subsets;
a first sending unit 406, configured to send the processed building model to the terminal, so that the terminal displays the processed building model.
In some embodiments, the first determining unit 403 may include:
a first determining subunit, configured to determine a plurality of component members in each member group;
a first matching subunit, configured to match the constituent members of each member group with the members of the target building model;
and the first extraction subunit is used for extracting the geometric data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the geometric data set to obtain a geometric data subset of the member groups.
In some embodiments, the second determining unit 404 may include:
a second determining subunit, configured to determine a plurality of component members in each member group;
a second matching subunit, configured to match the constituent members of each member group with the members of the target building model;
and the second extraction subunit is used for extracting the building data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the building data set to obtain the building data subset of the member groups.
In some embodiments, processing unit 402 may include:
an acquisition subunit for acquiring a plurality of members of the target building model;
the analysis subunit is used for analyzing each component to generate geometric data and building data of the component;
a third determining subunit for determining the set of geometric data and the set of building data based on geometric data and building data of each component.
In some embodiments, the building unit 405 may include:
a first generating subunit, configured to generate a component structure of each component according to the set of geometric data;
a second generating subunit, configured to generate a component group structure of each component group according to the plurality of subsets of geometric data;
and the combination subunit is used for combining the component structure and the component group structure to obtain a processed building model of the target building model.
The embodiment of the application discloses building model processing apparatus, this building model processing apparatus includes: a receiving unit 401 receives a model processing request sent by a terminal, and determines a target building model corresponding to the model processing request; the processing unit 402 performs lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model; the first determining unit 403 determines, from the geometric data sets, a geometric data subset corresponding to each component group of the target building model, to obtain a plurality of geometric data subsets; a second determining unit 404 determines a building data subset corresponding to each component group of the target building model from the building data set, so as to obtain a plurality of building data subsets; the construction unit 405 constructs a processed building model of the target building model based on the set of geometric data and the plurality of subsets of geometric data, and generates attribute information of the processed building model based on the set of building data and the plurality of subsets of building data; the first sending unit 406 sends the processed building model to the terminal, so that the terminal displays the processed building model. In the embodiment of the application, in the process of carrying out lightweight processing on the building model, the geometric data and the building data of each component group in the building model are generated, and the geometric data and the building data of the component groups are stored in the information set after the lightweight processing of the building model, so that the complete information of the building model is reserved, and the processing efficiency of the building model is improved.
Referring to fig. 10, fig. 10 is a block diagram of another building model processing apparatus according to an embodiment of the present application, the apparatus including:
the first display list 501 is used for displaying a selection list on a current webpage interface when a model display instruction is received;
a third determining unit 502 for determining a target building model from the plurality of sample building models by means of the selection list;
a second sending unit 503, configured to send a model processing request to a server, where the model processing request instructs the server to perform weight reduction processing on the target building model;
a second display unit 504, configured to display the processed building model on the web interface when receiving the lightweight processed building model returned by the server in response to the model processing request.
In some embodiments, the apparatus further comprises:
the detection unit is used for acquiring the click position of the click operation on the webpage interface when the click operation on the processed building model on the webpage interface is detected;
a fourth determining unit, configured to determine a structure of the processed building model corresponding to the click position;
the judging unit is used for judging whether the structure belongs to a component group structure;
the third display unit is used for displaying a first control and a second control on the webpage interface according to the clicking position if the structure belongs to a component group structure, wherein the first control is used for displaying the attribute information of the components, and the second control is used for displaying the attribute information of the component group;
the first execution unit is used for displaying the attribute information of the component corresponding to the structure on the webpage interface when the selection operation of the first control by the user is detected;
and the second execution unit is used for displaying the attribute information of the component group corresponding to the structure on the webpage interface when the selection operation of the user on the second control is detected.
The embodiment of the application discloses building model processing apparatus, this building model processing apparatus includes: when a first display list 501 receives a model display instruction, displaying a selection list on a current webpage interface; the third determining unit 502 determines a target building model from the plurality of sample building models through the selection list; a second transmitting unit 503 transmits a model processing request to a server, the model processing request instructing the server to perform weight reduction processing on the target building model; when receiving the lightweight processed building model returned by the server in response to the model processing request, the second display unit 504 displays the processed building model on the web interface. According to the embodiment of the application, when the terminal displays the building model subjected to lightweight processing through the application interface, the attribute information of the component group can be quickly checked, so that the checking efficiency of the building model information can be improved.
The embodiment of the application also provides computer equipment, and the computer equipment can be a terminal. As shown in fig. 11, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly 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 (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 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 volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 11 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when a model display instruction is received, displaying a selection list on a current webpage interface;
determining a target building model from the plurality of sample building models by selecting the list;
sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model;
and when the processed building model after lightweight processing returned by the server aiming at the model processing request is received, displaying the processed building model on a webpage interface.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Therefore, the terminal of the embodiment can realize the steps of building model processing, and improve the viewing efficiency of the building model information.
The embodiment of the present application further provides a computer device, which may be a server, as shown in fig. 12, which shows a schematic structural diagram of the server according to the embodiment of the present application, and specifically:
the server may include components such as a processor 701 of one or more processing cores, memory 702 of one or more computer-readable storage media, a power supply 703, and an input unit 704. Those skilled in the art will appreciate that the server architecture shown in FIG. 12 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 701 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the server. Optionally, processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 702 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 volatile solid state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
The server further includes a power source 703 for supplying power to each component, and preferably, the power source 703 may be logically connected to the processor 701 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 703 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The server may also include an input unit 704, and the input unit 704 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 701 in the server loads the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 701 runs the application program stored in the memory 702, thereby implementing various functions as follows:
receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request;
carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets;
determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets;
constructing a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generating attribute information of the processed building model based on the building data set and the plurality of building data subsets;
and sending the processed building model to the terminal so that the terminal can display the processed building model.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Therefore, the server of the embodiment can realize the steps of building model processing, and improve the viewing efficiency of the building model information.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the data processing methods provided by the present application. For example, the instructions may perform the steps of:
when a model display instruction is received, displaying a selection list on a current webpage interface; determining a target building model from the plurality of sample building models by selecting the list; sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model; and when the processed building model after lightweight processing returned by the server aiming at the model processing request is received, displaying the processed building model on a webpage interface.
Alternatively, the first and second electrodes may be,
receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request; carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model; determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets; determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets; constructing a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generating attribute information of the processed building model based on the building data set and the plurality of building data subsets; and sending the processed building model to the terminal so that the terminal can display the processed building model.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any building model processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any building model processing method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The building model processing method, apparatus, computer device and storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A building model processing method is applied to a server and is characterized by comprising the following steps:
receiving a model processing request sent by a terminal, and determining a target building model corresponding to the model processing request;
carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets;
determining a building data subset corresponding to each component group of the target building model from the building data set to obtain a plurality of building data subsets;
constructing a processed building model of the target building model based on the set of geometric data and the plurality of subsets of geometric data, and generating attribute information of the processed building model based on the set of building data and the plurality of subsets of building data;
and sending the processed building model to the terminal so that the terminal displays the processed building model.
2. The method of claim 1, wherein the set of geometric data includes geometric data for each member of the target architectural model;
the determining, from the set of geometric data, a subset of geometric data corresponding to each component group of the target architectural model includes:
determining a plurality of component members in each member group;
matching the constituent members of each member group with the members of the target building model;
and extracting the geometric data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the geometric data set to obtain a geometric data subset of the member groups.
3. The method of claim 1, wherein the set of building data includes building data for each component in the target building model;
the determining, from the building data set, a building data subset corresponding to each component group of the target building model includes:
determining a plurality of component members in each member group;
matching the constituent members of each member group with the members of the target building model;
and extracting the building data corresponding to the members of the target building model successfully matched with the constituent members of each member group from the building data set to obtain a building data subset of the member groups.
4. The method of claim 1, wherein the lightening the target building model to obtain a set of geometric data and a set of building data of the target building model comprises:
obtaining a plurality of members of the target building model;
analyzing each component to generate geometric data and building data of the component;
determining the set of geometric data and the set of building data based on geometric data and building data for each component.
5. The method of claim 1, wherein constructing the processed building model of the target building model based on the set of geometric data and the plurality of subsets of geometric data comprises:
generating a member structure for each member from the set of geometric data;
generating a component group structure for each component group according to the plurality of geometrical data subsets;
and combining the component structure and the component group structure to obtain a processed building model of the target building model.
6. A method for processing a building model, applied to a terminal, includes:
when a model display instruction is received, displaying a selection list on a current webpage interface;
determining a target building model from a plurality of sample building models through the selection list;
sending a model processing request to a server, wherein the model processing request instructs the server to carry out lightweight processing on the target building model;
and when receiving the processed building model after lightweight processing returned by the server aiming at the model processing request, displaying the processed building model on the webpage interface.
7. The method of claim 6, further comprising, after said presenting said processed building model at said web interface:
when the clicking operation of the processed building model on the webpage interface is detected, the clicking position of the clicking operation on the webpage interface is obtained;
determining the structure of the processed building model corresponding to the click position;
judging whether the structure belongs to a component group structure;
if the structure belongs to a component group structure, displaying a first control and a second control on the webpage interface according to the clicking position, wherein the first control is used for displaying the attribute information of the components, and the second control is used for displaying the attribute information of the component group;
when the selection operation of the user on the first control is detected, displaying the attribute information of the component corresponding to the structure on the webpage interface;
and when the selection operation of the user on the second control is detected, displaying the attribute information of the component group corresponding to the structure on the webpage interface.
8. A building model processing device applied to a server is characterized by comprising:
the system comprises a receiving unit, a model processing unit and a processing unit, wherein the receiving unit is used for receiving a model processing request sent by a terminal and determining a target building model corresponding to the model processing request;
the processing unit is used for carrying out lightweight processing on the target building model to obtain a geometric data set and a building data set of the target building model;
the first determining unit is used for determining a geometric data subset corresponding to each component group of the target building model from the geometric data set to obtain a plurality of geometric data subsets;
a second determining unit, configured to determine, from the building data set, a building data subset corresponding to each component group of the target building model, to obtain multiple building data subsets;
a construction unit configured to construct a processed building model of the target building model based on the geometric data set and the plurality of geometric data subsets, and generate attribute information of the processed building model based on the building data set and the plurality of building data subsets;
and the first sending unit is used for sending the processed building model to the terminal so that the terminal can display the processed building model.
9. A building model processing device applied to a terminal is characterized by comprising:
the first display unit is used for displaying a selection list on a current webpage interface when a model display instruction is received;
a third determination unit for determining a target building model from a plurality of sample building models through the selection list;
a second sending unit, configured to send a model processing request to a server, where the model processing request instructs the server to perform lightweight processing on the target building model;
and the second display unit is used for displaying the processed building model on the webpage interface when receiving the lightweight processed building model returned by the server aiming at the model processing request.
10. A computer apparatus comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps of the building model processing method of any one of claims 1 to 7.
11. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the building model processing method according to any one of claims 1 to 7.
CN202011378457.8A 2020-11-30 2020-11-30 Building model processing method and device, computer equipment and storage medium Withdrawn CN112347545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011378457.8A CN112347545A (en) 2020-11-30 2020-11-30 Building model processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011378457.8A CN112347545A (en) 2020-11-30 2020-11-30 Building model processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112347545A true CN112347545A (en) 2021-02-09

Family

ID=74366225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011378457.8A Withdrawn CN112347545A (en) 2020-11-30 2020-11-30 Building model processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112347545A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926083A (en) * 2021-02-24 2021-06-08 万翼科技有限公司 Interactive processing method based on building information model and related device
CN113434949A (en) * 2021-08-27 2021-09-24 杭萧钢构股份有限公司 Steel structure construction equipment group set type scheduling method and system
CN113626406A (en) * 2021-07-09 2021-11-09 中国科学院自动化研究所 Information acquisition method and device based on building site, building and component relation model

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926083A (en) * 2021-02-24 2021-06-08 万翼科技有限公司 Interactive processing method based on building information model and related device
CN112926083B (en) * 2021-02-24 2023-01-24 万翼科技有限公司 Interactive processing method based on building information model and related device
CN113626406A (en) * 2021-07-09 2021-11-09 中国科学院自动化研究所 Information acquisition method and device based on building site, building and component relation model
CN113626406B (en) * 2021-07-09 2023-12-26 中国科学院自动化研究所 Information acquisition method and device based on construction site, building and component relation model
CN113434949A (en) * 2021-08-27 2021-09-24 杭萧钢构股份有限公司 Steel structure construction equipment group set type scheduling method and system
CN113434949B (en) * 2021-08-27 2021-11-09 杭萧钢构股份有限公司 Steel structure construction equipment group set type scheduling method and system

Similar Documents

Publication Publication Date Title
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN106970790B (en) Application program creating method, related equipment and system
CN108345543B (en) Data processing method, device, equipment and storage medium
CN112347545A (en) Building model processing method and device, computer equipment and storage medium
CN112257135B (en) Model loading method and device based on multithreading, storage medium and terminal
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN107247691B (en) Text information display method and device, mobile terminal and storage medium
CN111338646B (en) Management method of micro-service architecture and related device
CN109857403B (en) Page updating method and device, page processing method and device
CN109375907B (en) Audit flow development method, service audit method, device, equipment and medium
CN107666406B (en) Intelligent card display method and device
CN105446726A (en) Method and device for generating webpage
CN111580815A (en) Editing method of page elements and related equipment
CN113377469A (en) Business interface display method and device for mobile application, terminal and storage medium
CN113742014A (en) Interface rendering method and device, electronic equipment and storage medium
CN110300047B (en) Animation playing method and device and storage medium
CN112749074A (en) Test case recommendation method and device
CN105631059B (en) Data processing method, data processing device and data processing system
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
CN113010825A (en) Data processing method and related device
CN113436346A (en) Distance measuring method and device in three-dimensional space and storage medium
CN107741895B (en) Server management method, device and equipment
CN114417201A (en) Message processing method and device, computer equipment and storage medium
CN114676371A (en) Page element information replacement method and device, computer equipment and storage medium
CN113617020A (en) Game control method, device, storage medium, server and terminal

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210209

WW01 Invention patent application withdrawn after publication