CN109448120B - Processing method and device for three-dimensional building model and computer equipment - Google Patents

Processing method and device for three-dimensional building model and computer equipment Download PDF

Info

Publication number
CN109448120B
CN109448120B CN201811290037.7A CN201811290037A CN109448120B CN 109448120 B CN109448120 B CN 109448120B CN 201811290037 A CN201811290037 A CN 201811290037A CN 109448120 B CN109448120 B CN 109448120B
Authority
CN
China
Prior art keywords
building model
information
layer
dimensional building
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811290037.7A
Other languages
Chinese (zh)
Other versions
CN109448120A (en
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.)
Guangzhou Frontop Animation Technology Co ltd
Original Assignee
Guangzhou Frontop Animation 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 Guangzhou Frontop Animation Technology Co ltd filed Critical Guangzhou Frontop Animation Technology Co ltd
Priority to CN201811290037.7A priority Critical patent/CN109448120B/en
Publication of CN109448120A publication Critical patent/CN109448120A/en
Application granted granted Critical
Publication of CN109448120B publication Critical patent/CN109448120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a method, a device, a computer device and a computer readable storage medium for processing a three-dimensional building model, wherein the method comprises the following steps: the method comprises the steps of obtaining information of patterns and sizes of single-layer building models in a three-dimensional building model to be processed, obtaining preset information of layers to be changed, information of initial positions in the three-dimensional building model to be changed and information of directions to be changed, taking the initial positions in the three-dimensional building model as starting points, changing the single-layer building model of the layers towards the directions to be changed according to the information of the patterns and the sizes of the single-layer building models, and generating the processed three-dimensional building model. The processing method of the three-dimensional building model can realize batch modification of the building layers of the three-dimensional building model according to the information of the starting points and the directions of the layer number modification input by a user, and improves the efficiency of layer modification of the three-dimensional building model.

Description

Processing method and device for three-dimensional building model and computer equipment
Technical Field
The present invention relates to the field of three-dimensional modeling technology, and in particular, to a method and apparatus for processing a three-dimensional building model, a computer device, and a computer readable storage medium.
Background
Three-dimensional modeling techniques are widely used in various industries, such as the real estate industry, where it is often desirable to make three-dimensional models of buildings for designing or displaying the buildings, and so forth.
In the process of building three-dimensional model making, modification processing such as adding or deleting the layer number of the building is often needed, the existing three-dimensional model making software needs to manually modify the building model layer by layer to the required layer number, and the layer number modification efficiency of the three-dimensional building model is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a computer-readable storage medium for processing a three-dimensional building model.
A method of processing a three-dimensional building model, comprising the steps of:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in a three-dimensional building model to be changed, and information of a direction to be changed;
and changing the number of layers of the single-layer building model towards the direction to be changed according to the style and the size information of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
According to the processing method of the three-dimensional building model, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed is extracted, the information of the number of layers to be changed preset by a user, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are obtained, the initial position in the three-dimensional building model is used as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the batch modification of the building layers of the three-dimensional building model according to the information of the number of layers to be changed input by the user can be realized, and the efficiency of changing the three-dimensional building model into layers is improved.
In one embodiment, the information of the number of layers that need to be changed includes information of the number of layers that need to be increased;
the method for generating the processed three-dimensional building model comprises the following steps of taking an initial position in the three-dimensional building model as a starting point, changing the number of layers of the single-layer building model towards the direction needing to be changed according to the information of the style and the size of the single-layer building model, and generating the processed three-dimensional building model, wherein the method comprises the following steps:
acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and copying the single-layer building model with the number of layers according to the style and the size information of the single-layer building model, and inserting the single-layer building model into the basic surface to generate the processed three-dimensional building model.
According to the technical scheme of the embodiment, when a user needs to increase the number of layers of the three-dimensional building model, a plane perpendicular to the direction at the initial position is obtained to be a basic surface, and a single-layer building model with the number of layers is copied based on the basic surface and is inserted into the basic surface to generate the processed three-dimensional building model. The layering treatment of the three-dimensional building model can be rapidly realized; and because the user can specify the layering direction, not only can the layer number on the height of the three-dimensional building model be increased, but also the length or the width of the three-dimensional building model can be expanded in the transverse direction.
In one embodiment, the information of the number of layers that need to be changed includes information of the number of layers that need to be reduced;
the method for generating the processed three-dimensional building model comprises the following steps of taking an initial position in the three-dimensional building model as a starting point, changing the number of layers of the single-layer building model towards the direction needing to be changed according to the information of the style and the size of the single-layer building model, and generating the processed three-dimensional building model, wherein the method comprises the following steps:
acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and deleting the single-layer building model with the basic surface as a reference and the number of layers facing the direction to be changed according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
According to the technical scheme of the embodiment, when a user needs to reduce the number of layers of the three-dimensional building model, a plane perpendicular to the direction at the initial position is obtained to be a basic surface, a single-layer building model with the number of layers in the direction which is oriented to the layer to be changed by taking the basic surface as a reference is deleted on the basis of the basic surface, and the processed three-dimensional building model is generated. The layer reduction treatment of the three-dimensional building model can be rapidly realized.
In one embodiment, the method for processing a three-dimensional building model further includes:
displaying the three-dimensional building model to be processed;
copying the three-dimensional building model to be processed to obtain a reference three-dimensional building model, and displaying the reference three-dimensional building model; wherein the reference three-dimensional building model and the three-dimensional building model to be processed are displayed on the same display interface;
when the processed three-dimensional building model is generated, the reference three-dimensional building model is updated with the processed three-dimensional building model, and the updated reference three-dimensional building model is displayed.
According to the technical scheme, the original three-dimensional building model to be processed is displayed on the same display interface, the three-dimensional building model obtained after the layer changing processing is synchronously displayed on the updated reference three-dimensional building model, and a user can conveniently know the comparison effect of the three-dimensional building model before and after the layer changing processing.
In one embodiment, the information of the initial position includes coordinate values in three directions of x, y and z in a preset three-dimensional coordinate system;
the information of the direction of the layer to be changed comprises information of x direction, y direction or z direction;
the x direction corresponds to the direction of wide extension of the three-dimensional building model, the y direction corresponds to the direction of long extension of the three-dimensional building model, and the z direction corresponds to the direction of high extension of the three-dimensional building model.
According to the technical scheme, the three coordinate axes of the x, y and z of the corresponding three-dimensional coordinate system are correspondingly arranged according to the width, length and height of the three-dimensional building model, when the information of the direction needing to be changed is arranged, any one direction can be selected for arrangement, so that the operation of adding or deleting the building layers in the three directions of the width, length and height of the three-dimensional building model can be realized, and the building layers of the three-dimensional building model are more flexibly processed.
A processing apparatus for a three-dimensional building model, comprising:
the single-layer information acquisition module is used for acquiring the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed;
the layer-changing information acquisition module is used for acquiring preset layer number information needing to be changed, initial position information in the three-dimensional building model needing to be changed and direction information needing to be changed;
and the building layer changing module is used for changing the single-layer building model of the layer number towards the direction by taking the initial position in the three-dimensional building model as a starting point according to the information of the style and the size of the single-layer building model, and generating the processed three-dimensional building model.
According to the processing device of the three-dimensional building model, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed is extracted, the information of the number of layers to be changed preset by a user, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are obtained, the initial position in the three-dimensional building model is used as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the batch modification of the building layers of the three-dimensional building model according to the information of the number of layers to be changed input by the user can be realized, and the efficiency of changing the three-dimensional building model into layers is improved.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in a three-dimensional building model to be changed, and information of a direction to be changed;
and changing the number of layers of the single-layer building model towards the direction to be changed according to the style and the size information of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
When the processor of the computer equipment executes the program, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed can be extracted, the information of the number of layers to be changed preset by a user, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are acquired, the initial position in the three-dimensional building model serves as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the information of the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the building layers of the three-dimensional building model can be modified in batches according to the information of the number of layers to be changed and the information of the direction to be input by the user, and the efficiency of changing the three-dimensional building model is improved.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in a three-dimensional building model to be changed, and information of a direction to be changed;
and changing the number of layers of the single-layer building model towards the direction to be changed according to the style and the size information of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
The computer readable storage medium stores a computer program, and through implementing the steps, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed can be extracted, the information of the number of layers to be changed preset by a user and the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are obtained, the initial position in the three-dimensional building model is used as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the information of the starting point and the direction to be changed according to the number of layers input by the user can be realized, the building layers of the three-dimensional building model are modified in batches, and the efficiency of changing the three-dimensional building model is improved.
Drawings
FIG. 1 is an internal block diagram of a computer device in one embodiment;
FIG. 2 is a flow diagram of a method of processing a three-dimensional building model in one embodiment;
FIG. 3 is a flow chart of a three-dimensional building model layering step in one embodiment;
FIG. 4 is a schematic flow chart of a three-dimensional building model layering step in another embodiment;
FIG. 5 is a flow chart illustrating a display step of a three-dimensional building model according to another embodiment;
FIG. 6 is a block diagram of a processing device for a three-dimensional building model in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The processing method of the three-dimensional building model provided by the invention can be applied to computer equipment, wherein the computer equipment can be a terminal, for example, but not limited to various personal computers, notebook computers, tablet computers, special equipment and the like. The internal structure of which may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing a three-dimensional building model. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, as shown in fig. 2, a method for processing a three-dimensional building model is provided, and the method is applied to the processor in fig. 1 for illustration, and includes the following steps:
s210, acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
wherein the three-dimensional building model to be processed is a three-dimensional model requiring modification of a building layer. The three-dimensional building model to be processed can be obtained by opening an existing three-dimensional building model or a newly built three-dimensional building model. In this step, the repeating unit of the single-layer building model in the three-dimensional building model to be processed may be extracted, and the relevant information of the pattern and the size of the repeating unit may be obtained, for example, the layer length, the layer width, the layer height, the door and window information, the wall information, and the like.
S220, acquiring preset information of the number of layers to be changed, information of an initial position in the three-dimensional building model to be changed, and information of a direction to be changed;
the information of the number of layers to be changed, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed can be manually input by a user, specifically, the information of the number of layers to be changed can be obtained through input of the user in a dialog box, the information of the initial position in the three-dimensional building model can be obtained through detecting a cursor click position of the user, the information of the cursor click position can be obtained through detecting three-dimensional coordinates of the corresponding position on the currently displayed three-dimensional building model, the information of the direction to be changed can be obtained through input of the user in the dialog box, and the information of the direction to be changed can also be obtained through detecting a movement gesture of a cursor of the user. After the user inputs information of the number of layers, the initial position and the direction to be changed, the processor records the information for subsequent modification processing of the building layers of the three-dimensional building model according to the information input by the user.
S230, using the initial position in the three-dimensional building model as a starting point, changing the single-layer building model of the layer number towards the direction needing to be changed according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
According to the processing method of the three-dimensional building model, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed is extracted, the information of the number of layers to be changed preset by a user, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are obtained, the initial position in the three-dimensional building model is used as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the batch modification of the building layers of the three-dimensional building model according to the information of the number of layers to be changed input by the user can be realized, and the efficiency of changing the three-dimensional building model into layers is improved.
In one embodiment, the information of the number of layers that need to be changed includes information of the number of layers that need to be increased;
as shown in fig. 3, the method for generating a processed three-dimensional building model from a single-layer building model in which the number of layers is changed in a direction to be changed according to information of a style and a size of the single-layer building model by using an initial position in the three-dimensional building model as a starting point includes:
s231, acquiring a plane perpendicular to the direction at the initial position as a basic plane;
s232, copying the single-layer building model of the layer number according to the style and the size information of the single-layer building model, inserting the single-layer building model into the basic surface, and generating the processed three-dimensional building model.
According to the technical scheme of the embodiment, when a user needs to increase the number of layers of the three-dimensional building model, a plane perpendicular to the direction at the initial position is obtained to be a basic surface, and a single-layer building model with the number of layers is copied based on the basic surface and is inserted into the basic surface to generate the processed three-dimensional building model. The layering treatment of the three-dimensional building model can be rapidly realized; and because the user can specify the layering direction, not only can the layer number on the height of the three-dimensional building model be increased, but also the length or the width of the three-dimensional building model can be expanded in the transverse direction.
In one embodiment, the information of the number of layers that need to be changed includes information of the number of layers that need to be reduced;
as shown in fig. 4, the method for generating a processed three-dimensional building model from a single-layer building model in which the number of layers is changed in a direction to be changed based on information of the style and size of the single-layer building model by using an initial position in the three-dimensional building model as a starting point includes:
s233, acquiring a plane perpendicular to the direction at the initial position as a basic plane;
and S234, deleting the single-layer building model in the direction of the layer to be changed based on the basic surface according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
According to the technical scheme of the embodiment, when a user needs to reduce the number of layers of the three-dimensional building model, a plane perpendicular to the direction at the initial position is obtained to be a basic surface, a single-layer building model with the number of layers in the direction which is oriented to the layer to be changed by taking the basic surface as a reference is deleted on the basis of the basic surface, and the processed three-dimensional building model is generated. The layer reduction treatment of the three-dimensional building model can be rapidly realized.
In one embodiment, as shown in fig. 5, the method for processing a three-dimensional building model further includes:
s510, displaying the three-dimensional building model to be processed;
s520, copying the three-dimensional building model to be processed to obtain a reference three-dimensional building model, and displaying the reference three-dimensional building model; wherein the reference three-dimensional building model and the three-dimensional building model to be processed are displayed on the same display interface;
s530, when the processed three-dimensional building model is generated, updating the reference three-dimensional building model using the processed three-dimensional building model, and displaying the updated reference three-dimensional building model.
According to the technical scheme, the original three-dimensional building model to be processed is displayed on the same display interface, the three-dimensional building model obtained after the layer changing processing is synchronously displayed on the updated reference three-dimensional building model, and a user can conveniently know the comparison effect of the three-dimensional building model before and after the layer changing processing.
In one embodiment, the information of the initial position includes coordinate values in three directions of x, y and z in a preset three-dimensional coordinate system;
the information of the direction of the layer to be changed comprises information of x direction, y direction or z direction;
wherein the x-direction corresponds to a direction of wide extension of the three-dimensional building model, the y-direction corresponds to a direction of long extension of the three-dimensional building model, and the z-direction corresponds to a direction of high extension of the three-dimensional building model.
According to the technical scheme, the three coordinate axes of the x, y and z of the corresponding three-dimensional coordinate system are correspondingly arranged according to the width, length and height of the three-dimensional building model, when the information of the direction needing to be changed is arranged, any one direction can be selected for arrangement, so that the operation of adding or deleting the building layers in the three directions of the width, length and height of the three-dimensional building model can be realized, and the building layers of the three-dimensional building model are more flexibly processed.
It should be understood that, although the steps in the above embodiment are sequentially arranged by number, the steps are not necessarily sequentially performed in the order of number. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of the above embodiments may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 6, there is provided a processing apparatus 600 of a three-dimensional building model, including:
a single-layer information obtaining module 610, configured to obtain information of a style and a size of a single-layer building model in the three-dimensional building model to be processed;
the layer-changing information obtaining module 620 is configured to obtain preset information of the number of layers to be changed, information of an initial position in the three-dimensional building model to be changed, and information of a direction to be changed;
the building layer changing module 630 is configured to change the single-layer building model of the number of layers toward the direction according to the style and the size information of the single-layer building model with the initial position in the three-dimensional building model as a starting point, and generate a processed three-dimensional building model.
In one embodiment, the information of the number of layers to be changed includes information of the number of layers to be increased;
the building modification module 630 includes:
the first basic surface acquisition module is used for acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and the building layering module is used for copying the single-layer building model with the number of layers according to the style and the size information of the single-layer building model and inserting the single-layer building model into the basic surface to generate a processed three-dimensional building model.
In one embodiment, the information of the number of layers to be changed includes information of the number of layers to be reduced;
the building modification module 630 includes:
the second basic surface acquisition module is used for acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and the building layer reduction module is used for deleting the single-layer building model with the basic surface as a reference towards the layer number in the direction according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
In one embodiment, the processing device of the three-dimensional building model further includes:
the original model display module is used for displaying the three-dimensional building model to be processed;
the reference model display module is used for copying the three-dimensional building model to be processed to obtain a reference three-dimensional building model and displaying the reference three-dimensional building model; wherein the reference three-dimensional building model and the three-dimensional building model to be processed are displayed on the same display interface;
and the reference model updating module is used for updating the reference three-dimensional building model by using the processed three-dimensional building model and displaying the updated reference three-dimensional building model when the processed three-dimensional building model is generated.
In one embodiment, the information of the initial position includes coordinate values in three directions of x, y and z in a preset three-dimensional coordinate system; the information of the direction of the layer to be changed comprises information of x direction, y direction or z direction; the x direction corresponds to the direction of wide extension of the three-dimensional building model, the y direction corresponds to the direction of long extension of the three-dimensional building model, and the z direction corresponds to the direction of high extension of the three-dimensional building model.
For specific limitations of the processing apparatus for the three-dimensional building model, reference may be made to the above limitations of the processing method for the three-dimensional building model, and no further description is given here. The respective modules in the processing device of the three-dimensional building model may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
The processing device of the three-dimensional building model of the invention corresponds to the processing method of the three-dimensional building model of the invention one by one, and the technical characteristics and the beneficial effects described in the embodiment of the processing method of the three-dimensional building model are applicable to the embodiment of the processing device of the three-dimensional building model.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in a three-dimensional building model to be changed, and information of a direction to be changed;
and changing the number of layers of the single-layer building model towards the direction to be changed according to the style and the size information of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
When the processor of the computer equipment executes the program, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed can be extracted, the information of the number of layers to be changed preset by a user, the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are acquired, the initial position in the three-dimensional building model serves as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the information of the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the building layers of the three-dimensional building model can be modified in batches according to the information of the number of layers to be changed and the information of the direction to be input by the user, and the efficiency of changing the three-dimensional building model is improved.
The computer device provided by the embodiment of the invention has the advantages that the computer executable instructions are not limited to the operation of the processing method of the three-dimensional building model, can also execute the related operation in the processing method of the three-dimensional building model provided by any embodiment of the invention, and have corresponding functions and beneficial effects.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in a three-dimensional building model to be changed, and information of a direction to be changed;
and changing the number of layers of the single-layer building model towards the direction to be changed according to the style and the size information of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
The computer readable storage medium stores a computer program, and through implementing the steps, the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed can be extracted, the information of the number of layers to be changed preset by a user and the information of the initial position in the three-dimensional building model to be changed and the information of the direction to be changed are obtained, the initial position in the three-dimensional building model is used as a starting point, the single-layer building model with the number of layers to be changed is changed towards the direction to be changed according to the style and the size of the single-layer building model, and the processed three-dimensional building model is generated, so that the information of the starting point and the direction to be changed according to the number of layers input by the user can be realized, the building layers of the three-dimensional building model are modified in batches, and the efficiency of changing the three-dimensional building model is improved.
The storage medium containing the computer executable instructions provided by the embodiment of the invention is not limited to the operation of the processing method of the three-dimensional building model, but can also execute the related operation in the processing method of the three-dimensional building model provided by any embodiment of the invention, and has corresponding functions and beneficial effects.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-volatile computer-queriable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A method of processing a three-dimensional building model, comprising:
acquiring information of the style and the size of a single-layer building model in a three-dimensional building model to be processed;
acquiring preset information of the number of layers to be changed, information of an initial position in the three-dimensional building model to be changed, and information of a direction to be changed; the information of the direction of the layer to be changed comprises at least one of a wide extending direction, a long extending direction and a high extending direction corresponding to the three-dimensional building model;
and changing the single-layer building model of the layer number towards the direction needing to be changed according to the information of the style and the size of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
2. The method for processing a three-dimensional building model according to claim 1, wherein the information of the number of layers to be changed includes information of the number of layers to be increased;
the step of generating a processed three-dimensional building model by using the initial position in the three-dimensional building model as a starting point and changing the single-layer building model of the layer number towards the direction according to the information of the style and the size of the single-layer building model, wherein the step of generating the processed three-dimensional building model comprises the following steps:
acquiring a plane perpendicular to the direction at the initial position as a basic plane;
and copying the single-layer building model of the layer number according to the style and the size information of the single-layer building model, inserting the single-layer building model into the basic surface, and generating a processed three-dimensional building model.
3. The method for processing a three-dimensional building model according to claim 1, wherein the information of the number of layers to be changed includes information of the number of layers to be reduced;
the step of generating a processed three-dimensional building model by using the initial position in the three-dimensional building model as a starting point and changing the single-layer building model of the layer number towards the direction according to the information of the style and the size of the single-layer building model, wherein the step of generating the processed three-dimensional building model comprises the following steps:
acquiring a plane perpendicular to the direction at the initial position as a basic plane;
and deleting the single-layer building model with the basic surface as a reference towards the layer number in the direction according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
4. A method of processing a three-dimensional building model according to any one of claims 1 to 3, further comprising:
displaying the three-dimensional building model to be processed;
copying the three-dimensional building model to be processed to obtain a reference three-dimensional building model, and displaying the reference three-dimensional building model; the reference three-dimensional building model and the three-dimensional building model to be processed are displayed on the same display interface;
when generating the processed three-dimensional building model, updating the reference three-dimensional building model by using the processed three-dimensional building model, and displaying the updated reference three-dimensional building model.
5. A method of processing a three-dimensional building model according to any one of claims 1 to 3, wherein the information of the initial position includes coordinate values in three directions of x, y and z in a preset three-dimensional rectangular coordinate system;
the information of the direction needing to be changed comprises information of the x direction, the y direction or the z direction;
wherein the x-direction corresponds to a direction of wide extension of the three-dimensional building model, the y-direction corresponds to a direction of long extension of the three-dimensional building model, and the z-direction corresponds to a direction of high extension of the three-dimensional building model.
6. A processing apparatus for a three-dimensional building model, comprising:
the single-layer information acquisition module is used for acquiring the information of the style and the size of the single-layer building model in the three-dimensional building model to be processed;
the layer-changing information acquisition module is used for acquiring preset layer number information needing to be changed, initial position information in the three-dimensional building model needing to be changed and direction information needing to be changed; the information of the direction of the layer to be changed comprises at least one of a wide extending direction, a long extending direction and a high extending direction corresponding to the three-dimensional building model;
and the building layer changing module is used for changing the single-layer building model of the layer number towards the direction needing layer changing according to the information of the style and the size of the single-layer building model by taking the initial position in the three-dimensional building model as a starting point, and generating the processed three-dimensional building model.
7. The apparatus according to claim 6, wherein the information of the number of layers to be changed includes information of the number of layers to be increased;
the building layer-changing module comprises:
the first basic surface acquisition module is used for acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and the building layering module is used for copying the single-layer building model with the number of layers according to the style and the size information of the single-layer building model and inserting the single-layer building model into the basic surface to generate a processed three-dimensional building model.
8. The apparatus according to claim 6, wherein the information of the number of layers to be changed includes information of the number of layers to be reduced;
the building layer-changing module comprises:
the second basic surface acquisition module is used for acquiring a plane perpendicular to the direction at the initial position as a basic surface;
and the building layer reduction module is used for deleting the single-layer building model with the basic surface as a reference towards the layer number in the direction according to the style and the size information of the single-layer building model, and generating the processed three-dimensional building model.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, realizes the steps of the method for processing a three-dimensional building model according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the steps of the method for processing a three-dimensional building model according to any one of claims 1 to 5.
CN201811290037.7A 2018-10-31 2018-10-31 Processing method and device for three-dimensional building model and computer equipment Active CN109448120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811290037.7A CN109448120B (en) 2018-10-31 2018-10-31 Processing method and device for three-dimensional building model and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811290037.7A CN109448120B (en) 2018-10-31 2018-10-31 Processing method and device for three-dimensional building model and computer equipment

Publications (2)

Publication Number Publication Date
CN109448120A CN109448120A (en) 2019-03-08
CN109448120B true CN109448120B (en) 2023-09-08

Family

ID=65549150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811290037.7A Active CN109448120B (en) 2018-10-31 2018-10-31 Processing method and device for three-dimensional building model and computer equipment

Country Status (1)

Country Link
CN (1) CN109448120B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085852B (en) * 2019-05-28 2021-11-09 贝壳找房(北京)科技有限公司 Method, device and system for displaying three-dimensional models of house before and after decoration on same screen
WO2020238022A1 (en) 2019-05-28 2020-12-03 贝壳找房(北京)科技有限公司 Three-dimensional space view display method, apparatus, and storage medium
CN113127949B (en) * 2019-12-31 2023-05-09 久瓴(上海)智能科技有限公司 Building model processing method, device, computer equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671600B1 (en) * 1999-02-12 2003-12-30 Gtm Construction Production method using global positioning system
CN102436674A (en) * 2010-09-29 2012-05-02 国际商业机器公司 Method and system for establishing model data
WO2015149302A1 (en) * 2014-04-02 2015-10-08 中国科学院自动化研究所 Method for rebuilding tree model on the basis of point cloud and data driving
CN105912118A (en) * 2016-04-12 2016-08-31 童雷 Method and device for surround sound-image control based on natural user interface
CN107590355A (en) * 2017-10-27 2018-01-16 巧夺天宫(深圳)科技有限公司 Architectural design method, design system and electronic equipment based on BIM
CN108427782A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 A kind of three-dimensional building model treatment method and device based on BIM
CN108648279A (en) * 2018-03-22 2018-10-12 平安科技(深圳)有限公司 House three-dimensional virtual tapes see method, apparatus, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4488996B2 (en) * 2005-09-29 2010-06-23 株式会社東芝 Multi-view image creation apparatus, multi-view image creation method, and multi-view image creation program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671600B1 (en) * 1999-02-12 2003-12-30 Gtm Construction Production method using global positioning system
CN102436674A (en) * 2010-09-29 2012-05-02 国际商业机器公司 Method and system for establishing model data
WO2015149302A1 (en) * 2014-04-02 2015-10-08 中国科学院自动化研究所 Method for rebuilding tree model on the basis of point cloud and data driving
CN105912118A (en) * 2016-04-12 2016-08-31 童雷 Method and device for surround sound-image control based on natural user interface
CN108427782A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 A kind of three-dimensional building model treatment method and device based on BIM
CN107590355A (en) * 2017-10-27 2018-01-16 巧夺天宫(深圳)科技有限公司 Architectural design method, design system and electronic equipment based on BIM
CN108648279A (en) * 2018-03-22 2018-10-12 平安科技(深圳)有限公司 House three-dimensional virtual tapes see method, apparatus, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109448120A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109448120B (en) Processing method and device for three-dimensional building model and computer equipment
CN105630939B (en) A kind of general painting canvas input interface design method and device
CN110955418A (en) Code generation method and device, computer equipment and storage medium
US20100238167A1 (en) System and method for converting dimensions
CN112465466B (en) Method, device, computer equipment and storage medium for executing flow task
CN113129427A (en) Building model processing method and device, computer equipment and readable storage medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN112287430B (en) Building wall generation method and device, computer equipment and storage medium
CN115145391B (en) AI deep learning-based virtual reality treadmill self-adaptation method and system
CN110826119A (en) Information processing method and device, computer equipment and readable storage medium
CN110704898A (en) Method for placing connecting node between tiger window model and roof truss girder model and product
CN116227304A (en) Simulation method, device, equipment and storage medium of multi-scale coupling model
CN112836265A (en) Interior wall generation method and device, computer equipment and storage medium
CN111125809B (en) Building steel column generation method and device, computer equipment and storage medium
CN113987652A (en) Wall model generation method and device
CN112464324B (en) Adjacent relation acquisition method, adjacent state set generation method and related products
CN110765513B (en) Method for placing connecting node of wall keel model and L-shaped top guide beam model and product
CN112287428B (en) Building wall generation method and device, computer equipment and storage medium
CN111931010B (en) Dynamic binding method, device, equipment and storage medium for anchor point and line
CN114091403B (en) Chip simulation method and device
CN111190574A (en) Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly
CN110750817B (en) Connecting piece placement method, adjacent relation determination method, device, equipment and medium
CN115576473B (en) Waveform display method, computer device, and storage medium
CN117272758B (en) Depth estimation method, device, computer equipment and medium based on triangular grid
CN112464326B (en) Method, device, computer equipment and storage medium for identifying roof and wall

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant