CN117611763A - Method, device, medium and equipment for generating building group model - Google Patents

Method, device, medium and equipment for generating building group model Download PDF

Info

Publication number
CN117611763A
CN117611763A CN202311590570.6A CN202311590570A CN117611763A CN 117611763 A CN117611763 A CN 117611763A CN 202311590570 A CN202311590570 A CN 202311590570A CN 117611763 A CN117611763 A CN 117611763A
Authority
CN
China
Prior art keywords
building group
dimensional
geographic data
information
building
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311590570.6A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202311590570.6A priority Critical patent/CN117611763A/en
Publication of CN117611763A publication Critical patent/CN117611763A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Landscapes

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

Abstract

The application discloses a method, a device, a medium and equipment for generating a building group model. The method comprises the following steps: obtaining geographic data of a building group to be modeled, and converting the geographic data into a GeoJSON format, wherein the geographic data comprises geographic information and attribute information of the building; analyzing geographic data in a GeoJSON format by using a three.js library, creating a three-dimensional scene of the building group, and setting a camera, adding a light source and setting building group materials and textures in the three-dimensional scene; converting the coordinates of the geographic data in the GeoJSON format into planar geographic data information of a Cartesian coordinate system by using a d3-geo library; extracting geometric information in the plane geographic data information, and creating a three-dimensional geometric body according to the geometric information and the size information of the building group; and generating a three-dimensional building group model of the building group according to the three-dimensional geometry and the three-dimensional scene.

Description

Method, device, medium and equipment for generating building group model
Technical Field
The present disclosure relates to the field of building group modeling, and more particularly, to a method, apparatus, medium, and device for generating a building group model.
Background
With the continuous development of digital twin technology, visual display for buildings is becoming more and more widespread. The traditional two-dimensional-based presentation mode has the problems of flattening and non-intuitionistic, has a plurality of limitations on content display, and can not meet the requirements of users in digital twin application scenes. The three-dimensional building can provide more real space sense and dimension sense, so that people can better understand and feel the characteristics of the shape, the volume and the like of the building.
Aiming at a three-dimensional building model, the mainstream modeling mode on the market at present is as follows: oblique photography modeling, laser scanning modeling, and manual modeling. The oblique photography modeling and the laser scanning modeling both need specialized software and hardware equipment, the data volume is large, the processing and optimizing processes are complex, and the requirement on calculation resources is high. Manual modeling requires personnel to master specific skills, good art skills and modeling experience are required, and modeling speed is relatively low. In general, the above manner is costly and time consuming and is not suitable for general projects.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a method, a device, a medium and equipment for generating a building group model.
According to one aspect of the present application, there is provided a method for generating a building group model, including:
obtaining geographic data in a GeoJSON format of a building group to be modeled, wherein the geographic data comprises geographic information and attribute information of a building;
analyzing geographic data in a GeoJSON format by using a three.js library, creating a three-dimensional scene of the building group, and setting a camera, adding a light source and setting building group materials and textures in the three-dimensional scene;
converting the coordinates of the geographic data in the GeoJSON format into planar geographic data information of a Cartesian coordinate system by using a d3-geo library;
extracting geometric information in the plane geographic data information, and creating a three-dimensional geometric body according to the geometric information and the size information of the building group;
and generating a three-dimensional building group model of the building group according to the three-dimensional geometry and the three-dimensional scene.
Optionally, the method further comprises: and rendering the three-dimensional building group model according to the set parameters of the camera and the parameters of the three-dimensional building group model.
Optionally, the method further comprises: and setting an animation effect for the rendered three-dimensional building group model by using the interaction controller, wherein the animation effect comprises rotation, scaling and translation.
Optionally, the camera is a perspective camera or a quadrature camera, and the parameters of the camera include: view angle, aspect ratio, near cross-section and far cross-section.
Optionally, the light source comprises ambient light, point light sources, spotlights and parallel light.
According to another aspect of the present application, there is provided a generation apparatus of a building group model, including:
the conversion module is used for acquiring the geographic data of the building group to be modeled and converting the geographic data into a GeoJSON format, wherein the geographic data comprises geographic information and attribute information of a building;
the first creation module is used for analyzing geographic data in a GeoJSON format by using a three-dimensional js library, creating a three-dimensional scene of the building group, setting a camera, adding a light source and setting materials and textures of the building group in the three-dimensional scene;
the coordinate conversion module is used for carrying out coordinate conversion on the geographic data in the GeoJSON format by using the d3-geo library to obtain planar geographic data information of a Cartesian coordinate system;
the second creation module is used for extracting geometric information in the plane geographic data information and creating a three-dimensional geometric body according to the geometric information and the size information of the building group;
the generating module is used for generating a three-dimensional building group model of the building group according to the three-dimensional geometric body and the three-dimensional scene.
According to a further aspect of the present application, there is provided a computer readable storage medium storing a computer program for performing the method of any one of the above aspects of the present application.
According to still another aspect of the present application, there is provided an electronic device including: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of the above aspects of the present application.
Therefore, the three-dimensional building is quickly and accurately generated by accessing the real geographic basic element data, the generation efficiency and accuracy of building modeling are improved, and the development efficiency of a project group can be greatly improved. The method and the device greatly improve the generation efficiency and accuracy of the three-dimensional building group model.
Drawings
Exemplary embodiments of the present application may be more fully understood by reference to the following drawings in which:
FIG. 1 is a flow chart of a method for generating a building group model according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of a building group model generating apparatus according to an exemplary embodiment of the present application;
fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application and not all of the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in the embodiments of the present application are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present application, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in the embodiments of the present application may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in this application is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In this application, the character "/" generally indicates that the associated object is an or relationship.
It should also be understood that the description of the embodiments herein emphasizes the differences between the embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the present application may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate in conjunction with a wide variety of other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with the terminal device, computer system, server, or other electronic device include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the foregoing, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flow chart of a method for generating a building group model according to an exemplary embodiment of the present application. The present embodiment may be applied to an electronic device, as shown in fig. 1, a method 100 for generating a building group model includes the following steps:
step 101, obtaining geographic data in a GeoJSON format of a building group to be modeled, wherein the geographic data comprises geographic information and attribute information of a building;
step 102, analyzing geographic data in a GeoJSON format by using a three-dimensional library, creating a three-dimensional scene of a building group, and setting a camera, adding a light source and setting building group materials and textures in the three-dimensional scene;
step 103, converting coordinates of the geographic data in the GeoJSON format into planar geographic data information of a Cartesian coordinate system by using a d3-geo library;
104, extracting geometric information in the plane geographic data information, and creating a three-dimensional geometric body according to the geometric information and the size information of the building group;
step 105, generating a three-dimensional building group model of the building group according to the three-dimensional geometric body and the three-dimensional scene.
Optionally, the method further comprises: and rendering the three-dimensional building group model according to the set parameters of the camera and the parameters of the three-dimensional building group model.
Optionally, the method further comprises: and setting an animation effect for the rendered three-dimensional building group model by using the interaction controller, wherein the animation effect comprises rotation, scaling and translation.
Optionally, the camera is a perspective camera or a quadrature camera, and the parameters of the camera include: view angle, aspect ratio, near cross-section and far cross-section.
Optionally, the light source comprises ambient light, point light sources, spotlights and parallel light.
Specifically, the purpose of the application is to solve the problems, and provide a method for quickly generating a three-dimensional building group model, which can quickly and accurately generate a three-dimensional building by accessing real geographic basic element data, thereby improving the generation efficiency and accuracy of building modeling and greatly improving the development efficiency of project groups.
The application provides a method for generating a building group model based on GeoJSON, which comprises the following steps:
1. geographical data of a building is acquired and typically stored in the GeoJSON format. GeoJSON is a format that encodes various geographic data structures, supporting various geometric types, such as points, lines, polygons, and multiple geometries, and contains geographic information and attribute information for building groups.
2. The GeoJSON data is parsed with three. Js is a graphic engine for creating a 3D program on the Web side, which can build up 3D scenes very quickly, and consists of scenes, objects, lights, cameras and renderers.
3. A 3D scene is created, i.e. a scene object three. Scene is constructed with new operators, which is mainly used to save and track the objects to be rendered and the light sources used.
4. Setting up a suitable camera for the scene, the camera resembling an eye, placing at different positions can be achieved to observe objects at different angles. The camera can select a perspective camera or a orthographic camera, and parameters which can be set are a view angle, an aspect ratio, a near section and a far section.
5. A suitable light source is arranged for the scene, and objects can be shown in the scene by the light source. The light sources can select ambient light AmbientLight, point light source Pointlight, spotLight and parallel light DirectingAllight, different parameters can be set for different light sources, for example, ambient light can only set illumination color, and point light sources can also set position, light source intensity and the like besides illumination color.
6. The material of the object is created, and the material type such as MeshBasicMaterial, meshLambertMaterial built in three is used for creating proper material and texture for the building group, and the material can be customized.
7. And loading the GeoJSON data, traversing the features in the GeoJSON, and extracting the geometric information in the features. The three uses a cartesian coordinate system in a three-dimensional space, and the GeoJSON uses longitude and latitude as the coordinate system, so that coordinate transformation is required to be performed on the data in the process of using and loading the GeoJSON to correctly display the geographic data.
8. Coordinate transformation is performed by using a d3-geo library. The d3-geo library provides a projection function geoMercator, the spherical mercator projection is drawn by the function, and then the projection is used as a parameter to be transmitted into a projection function, so that longitude and latitude in GeoJSON can be converted into plane coordinates in the form of [ x, y, z ].
9. The Shape object in three is generated according to xyz coordinates, the object is used as a parameter to be transmitted into an extrageometric body, parameters such as height, oblique angle and the like are set, and then a three-dimensional geometric body can be created from a two-dimensional geometric body. And transmitting the generated geometry and the previously created materials and textures as parameters into a Mesh object to obtain the 3D building model.
10. Creating an appropriate Renderer, calling the Renderer (optionally CanvasRenderer, webGLRenderer or SVGRenderer) provided by three, and passing the scene and camera object as parameters into the render function, the resulting model can be rendered onto the screen.
11. Animation effects, such as rotation, scaling, etc., are set through the interactive controller Controls, so that the scene is more vivid.
In summary, the key points of the present application are:
1. analyzing GeoJSON data: it is necessary to understand the GeoJSON data structure and extract the geometry information and attribute information of the building from the GeoJSON data using a suitable method and convert it into a geometry that can be used to create a building model.
2. Scene setting: when a three.js scene, a camera and a renderer are created, the camera position is reasonably set and a light source is added, so that the building presents more real surface and shadow effects.
3. Coordinate system conversion: the coordinate system of GeoJSON is inconsistent with the coordinate system used in three.js, and appropriate coordinate conversion is required to convert the geographic coordinates to coordinates in three.js.
4. Building a building model: in order to make the building have a more appropriate appearance, it is necessary to create appropriate materials and textures for the building, and the type of materials built in three.js can be used, or customization can be performed.
5. Interaction control: in order to provide interactive operation for the user, a controller provided by three.js, such as OrbitControls, dragControls, can be called to enable the building to have dynamic effects of rotation, scaling, translation and the like.
6. Performance optimization: there may be a large number of buildings in the scene, which may lead to performance problems. Performance optimization can be performed using a BufferGeome, an InstancedMesh, and the like to improve the operating efficiency of the program.
Therefore, the three-dimensional building is quickly and accurately generated by accessing the real geographic basic element data, the generation efficiency and accuracy of building modeling are improved, and the development efficiency of a project group can be greatly improved. The method and the device greatly improve the generation efficiency and accuracy of the three-dimensional building group model.
The method generates the three-dimensional building model based on the GeoJSON data, and provides new possibility for generating the three-dimensional building model.
The visual rendering is performed by using the three.js, which provides rich rendering and interaction functions and enhances user experience. And three.js is a Web-based technology, can be used across platforms, and developers can easily develop 3D application programs with wide compatibility without installing additional software. .
Exemplary apparatus
Fig. 2 is a schematic structural diagram of an apparatus for generating a building group model according to an exemplary embodiment of the present application. As shown in fig. 2, the apparatus 200 includes:
the conversion module 210 is configured to obtain geographic data in a GeoJSON format of a building group to be modeled, where the geographic data includes geographic information and attribute information of a building;
the first creating module 220 is configured to parse the geographic data in the GeoJSON format by using a three-dimensional library, create a three-dimensional scene of the building group, and set a camera, add a light source, and set a material and texture of the building group in the three-dimensional scene;
the coordinate conversion module 230 is configured to coordinate-convert the geographic data in the GeoJSON format into planar geographic data information of a cartesian coordinate system by using a d3-geo library;
a second creating module 240, configured to extract geometric information in the planar geographic data information, and create a three-dimensional geometric body according to the geometric information and the size information of the building group;
a generating module 250, configured to generate a three-dimensional building group model of the building group according to the three-dimensional geometry and the three-dimensional scene.
Optionally, the apparatus 200 further comprises: and the rendering module is used for rendering the three-dimensional building group model according to the set parameters of the camera and the parameters of the three-dimensional building group model.
Optionally, the apparatus 200 further comprises: and the setting module is used for setting an animation effect for the rendered three-dimensional building group model by utilizing the interaction controller, wherein the animation effect comprises rotation, scaling and translation.
Optionally, the camera is a perspective camera or a quadrature camera, and the parameters of the camera include: view angle, aspect ratio, near cross-section and far cross-section.
Optionally, the light source includes ambient light, a point light source, a spotlight, and parallel light.
Exemplary electronic device
Fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present application. As shown in fig. 3, the electronic device 30 includes one or more processors 31 and memory 32.
The processor 31 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 32 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 31 to implement the methods of the software programs of the various embodiments of the present application and/or other desired functions as described above. In one example, the electronic device may further include: an input device 33 and an output device 34, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
The output device 34 can output various information to the outside. The output device 34 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device that are relevant to the present application are shown in fig. 3 for simplicity, components such as buses, input/output interfaces, etc. being omitted. In addition, the electronic device may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the present application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the present application described in the "exemplary methods" section of the present specification.
The computer program product may write program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the present application described in the above section "exemplary method" of the present specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present application have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present application. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the application is not intended to be limited to the details disclosed herein as such.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, systems, apparatuses, systems referred to in this application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, systems, apparatuses, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The methods and systems of the present application may be implemented in a number of ways. For example, the methods and systems of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present application. Thus, the present application also covers a recording medium storing a program for executing the method according to the present application.
It is also noted that in the systems, devices, and methods of the present application, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent to the present application. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. A method of generating a building group model, comprising:
obtaining geographic data in a GeoJSON format of a building group to be modeled, wherein the geographic data comprises geographic information and attribute information of the building;
analyzing the geographic data in the GeoJSON format by using a three-dimensional library, creating a three-dimensional scene of the building group, and setting a camera, adding a light source and setting building group materials and textures in the three-dimensional scene;
performing coordinate conversion on the geographic data in the GeoJSON format by using a d3-geo library to obtain planar geographic data information of a Cartesian coordinate system;
extracting geometric information in the plane geographic data information, and creating a three-dimensional geometric body according to the geometric information and the size information of the building group;
and generating a three-dimensional building group model of the building group according to the three-dimensional geometric body and the three-dimensional scene.
2. The method as recited in claim 1, further comprising: and rendering the three-dimensional building group model according to the set parameters of the camera and the parameters of the three-dimensional building group model.
3. The method as recited in claim 2, further comprising: and setting an animation effect for the rendered three-dimensional building group model by utilizing an interaction controller, wherein the animation effect comprises rotation, scaling and translation.
4. The method of claim 1, wherein the camera is a perspective camera or a quadrature camera, and wherein the parameters of the camera include: view angle, aspect ratio, near cross-section and far cross-section.
5. The method of claim 1, wherein the light source comprises ambient light, a point light source, a spotlight, and parallel light.
6. A building group model generation device, comprising:
the conversion module is used for acquiring geographic data of a building group to be modeled and converting the geographic data into a GeoJSON format, wherein the geographic data comprises geographic information and attribute information of the building;
the first creating module is used for analyzing the geographic data in the GeoJSON format by utilizing a three-dimensional library, creating a three-dimensional scene of the building group, setting a camera, adding a light source and setting materials and textures of the building group in the three-dimensional scene;
the coordinate conversion module is used for carrying out coordinate conversion on the geographic data in the GeoJSON format by using a d3-geo library to obtain planar geographic data information of a Cartesian coordinate system;
the second creation module is used for extracting geometric information in the plane geographic data information and creating a three-dimensional geometric body according to the geometric information and the size information of the building group;
and the generating module is used for generating a three-dimensional building group model of the building group according to the three-dimensional geometric body and the three-dimensional scene.
7. The apparatus as recited in claim 6, further comprising: and the rendering module is used for rendering the three-dimensional building group model according to the set parameters of the camera and the parameters of the three-dimensional building group model.
8. The apparatus as recited in claim 7, further comprising: and the setting module is used for setting an animation effect for the rendered three-dimensional building group model by utilizing the interaction controller, wherein the animation effect comprises rotation, scaling and translation.
9. A computer readable storage medium, characterized in that the storage medium stores a computer program for executing the method of any of the preceding claims 1-5.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any of the preceding claims 1-5.
CN202311590570.6A 2023-11-27 2023-11-27 Method, device, medium and equipment for generating building group model Pending CN117611763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311590570.6A CN117611763A (en) 2023-11-27 2023-11-27 Method, device, medium and equipment for generating building group model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311590570.6A CN117611763A (en) 2023-11-27 2023-11-27 Method, device, medium and equipment for generating building group model

Publications (1)

Publication Number Publication Date
CN117611763A true CN117611763A (en) 2024-02-27

Family

ID=89945806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311590570.6A Pending CN117611763A (en) 2023-11-27 2023-11-27 Method, device, medium and equipment for generating building group model

Country Status (1)

Country Link
CN (1) CN117611763A (en)

Similar Documents

Publication Publication Date Title
CN107506517B (en) Building model display method, building model display device, building model data processing method, building model data processing device, building model data processing medium, building model data processing equipment and building model data processing system
US20190004793A1 (en) Application system that enables a plurality of runtime versions of an application
CN107393013B (en) Virtual roaming file generation and display method, device, medium, equipment and system
CN111324965A (en) Cloud-based universal parameterized model analysis method and design system
US20220080318A1 (en) Method and system of automatic animation generation
KR20070011062A (en) Model 3d construction application program interface
CN115659445A (en) Method for rendering and displaying CAD model on webpage in lightweight mode based on Open Cascade
Boutsi et al. Interactive online visualization of complex 3D geometries
Liu et al. Function-defined shape metamorphoses in visual cyberworlds
Levkowitz et al. Cloud and mobile web-based graphics and visualization
CN117390322A (en) Virtual space construction method and device, electronic equipment and nonvolatile storage medium
Rodrigues et al. A case study of 3D technologies in higher education: Scanning the metalwork collection of museums sheffield and its implications to teaching and learning
US8379028B1 (en) Rigweb
WO2023159595A9 (en) Method and device for constructing and configuring three-dimensional space scene model, and computer program product
CN114463104B (en) Method, apparatus, and computer-readable storage medium for processing VR scene
Dirksen Learn Three. js: Programming 3D animations and visualizations for the web with HTML5 and WebGL
CN117611763A (en) Method, device, medium and equipment for generating building group model
CN114461959A (en) WEB side online display method and device of BIM data and electronic equipment
CN115018975A (en) Data set generation method and device, electronic equipment and storage medium
Stefan et al. Prototyping 3D virtual learning environments with X3D-based content and visualization tools
CN113076631A (en) Robot simulator generation method, robot model simulation method and device
Ferreira A WebGL application based on BIM IFC
Liu et al. Function-based representation of complex geometry and appearance
WO2023168999A1 (en) Rendering method and apparatus for virtual scene, and electronic device, computer-readable storage medium and computer program product
Hering et al. 3DCIS: A real-time browser-rendered 3d campus information system based on webgl

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication