CN115879207B - Outdoor space enclosing degree determining method, device, computer equipment and storage medium - Google Patents

Outdoor space enclosing degree determining method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN115879207B
CN115879207B CN202310146836.1A CN202310146836A CN115879207B CN 115879207 B CN115879207 B CN 115879207B CN 202310146836 A CN202310146836 A CN 202310146836A CN 115879207 B CN115879207 B CN 115879207B
Authority
CN
China
Prior art keywords
outdoor
ray
information
intersection point
outdoor space
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
CN202310146836.1A
Other languages
Chinese (zh)
Other versions
CN115879207A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN202310146836.1A priority Critical patent/CN115879207B/en
Publication of CN115879207A publication Critical patent/CN115879207A/en
Application granted granted Critical
Publication of CN115879207B publication Critical patent/CN115879207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Image Generation (AREA)
  • Apparatus Associated With Microorganisms And Enzymes (AREA)

Abstract

The application relates to an outdoor space enclosing degree determining method, an outdoor space enclosing degree determining device, computer equipment and a storage medium. The method comprises the following steps: defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points; acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm; and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree. The method can ensure the quantitative determination of the outdoor space enclosing degree.

Description

Outdoor space enclosing degree determining method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of outdoor space enclosure determination and analysis, and in particular, to an outdoor space enclosure determination method, apparatus, computer device, storage medium, and computer program product.
Background
With the continuous promotion of ecological civilization construction and high-quality development of the whole society, outdoor space design gradually changes from the traditional emphasis of aesthetic, cultural and other perceptual aspects to attention to actual perception and use feedback of a user to the space environment. However, the actual sensing and the usage feedback do not have standard measurement basis, so that the implementation of the actual outdoor space item often consumes a large amount of resources, and the trial and error cost is high.
The existing space analysis technology related to outdoor space design mainly comprises three-dimensional View analysis based on an ArcGIS platform, visual analysis based on Cesium, sky View Factor analysis and the like. The analysis techniques are characterized in that the space enclosing degree (design factors which significantly influence the design and experience of the outdoor space) cannot be directly obtained because the analysis techniques are not specially developed for the design of the outdoor space, so that the outdoor space enclosing degree cannot be quantitatively determined.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an outdoor space enclosure determination method, apparatus, computer device, computer-readable storage medium, and computer program product.
In a first aspect, the present application provides a method for determining an outdoor space enclosing degree. The method comprises the following steps:
defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm;
and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint includes:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
Acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
and taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the radiating a plurality of rays outwards from the outdoor observation viewpoint and acquiring the aspect ratio information of each ray and the boundary range of the target field includes:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
For each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring information of an intersection point of each ray and a shelter within the boundary range of the target field, and determining a total area of visible enclosure elements of the outdoor observation viewpoint based on the information of the intersection point, includes:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, when each ray of the outdoor observation viewpoint is acquired based on the outdoor space model and transmitted to the boundary of the outdoor space model, the intersection point information of the ray and a shielding object of the outdoor space model determines the sky visibility of the outdoor observation viewpoint, which includes:
Transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the determining the top coverage of the outdoor observation viewpoint according to the intersection point information of the ray in the intersection point information and the target shielding object includes:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, the enclosure factor information includes axis parameter information, and after the obtaining of the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint, the method further includes:
establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
And selecting the length of the vertical double rays corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
In a second aspect, the present application further provides an outdoor space surrounding degree determining device. The device comprises:
the definition module is used for defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
the acquisition module is used for acquiring the surrounding degree element information of the outdoor observation view point based on the outdoor observation view point aiming at each outdoor observation view point in the outdoor observation view point unit lattice, and calculating the space surrounding degree of the outdoor observation view point according to the surrounding degree element information of the outdoor observation view point through an outdoor space surrounding degree algorithm;
the determining module is used for determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining the analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring module is specifically configured to:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
and taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the acquiring module is specifically configured to:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
For each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring module is specifically configured to:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, the acquiring module is specifically configured to:
transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
And determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the acquiring module is specifically configured to:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, the enclosure factor information includes axis parameter information, and the apparatus further includes:
the computing module is used for establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
and the selection module is used for selecting the length of the vertical double ray corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
In a third aspect, the present application provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method of any of the first aspects when the processor executes the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium. On which a computer program is stored which, when being executed by a processor, implements the steps of the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of the first aspects.
The outdoor space enclosing degree determining method, the device, the computer equipment and the storage medium define the boundary of the target field in the outdoor space model based on the outdoor space model, and establish outdoor observation viewpoint cells in the range enclosed by the boundary of the target field; the outdoor viewing point unit cell includes a plurality of outdoor viewing points; acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm; and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree. The outdoor space enclosing degree of the outdoor space model is determined based on the space enclosing degree of each outdoor observation viewpoint by establishing the outdoor observation viewpoint unit cell in the outdoor space model, and the analysis result of the outdoor space is determined, so that the problem that the outdoor space enclosing degree cannot be determined is avoided, and the outdoor space enclosing degree is quantitatively determined.
Drawings
FIG. 1 is a flow chart of a method for determining outdoor space enclosure in one embodiment;
FIG. 2 is a schematic view of an outdoor space in one embodiment;
FIG. 3 is a schematic diagram of an outdoor viewing point of view cell in one embodiment;
FIG. 4 is a schematic diagram of horizontal radiation rays in one embodiment;
FIG. 5 is a schematic view of a vertical radiation ray in one embodiment;
FIG. 6 is a schematic view of an outdoor viewing point radiating rays toward the center of a grid in one embodiment;
FIG. 7 is a schematic diagram of intersection information in one embodiment;
FIG. 8 is a schematic diagram of outdoor space model boundaries in one embodiment;
FIG. 9 is a schematic diagram of a multi-ray intersection with an outdoor space model boundary in one embodiment;
FIG. 10 is a schematic view of the intersection points with the respective shields when radiating to the boundary in one embodiment;
FIG. 11 is a schematic view of a top mask intersection in one embodiment;
FIG. 12 is a flow diagram of an example outdoor space enclosure determination in one embodiment;
fig. 13 is a block diagram showing the structure of an outdoor space enclosure determining apparatus in one embodiment;
fig. 14 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The outdoor space enclosing degree determining method provided by the embodiment of the application can be applied to a terminal, a server and a system comprising the terminal and the server and is realized through interaction of the terminal and the server. The terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers. The terminal establishes outdoor observation viewpoint unit grids in the outdoor space model, determines the outdoor space enclosing degree of the outdoor space model based on the space enclosing degree of each outdoor observation viewpoint, determines the analysis result of the outdoor space, and avoids the problem that the outdoor space enclosing degree cannot be determined, thereby ensuring quantitative determination of the outdoor space enclosing degree.
In one embodiment, as shown in fig. 1, there is provided a method for determining the degree of surrounding of an outdoor space, which is described by taking application of the method to a terminal as an example, and includes the following steps:
step S101, defining a target site boundary in the outdoor space model based on the outdoor space model, and establishing an outdoor observation viewpoint cell in a range surrounded by the target site boundary.
Wherein the outdoor viewing point unit cell includes a plurality of outdoor viewing points.
In this embodiment, the terminal performs simulation modeling processing on the outdoor space through a three-dimensional modeling program, so as to obtain an outdoor space model. The terminal acquires a target field boundary range in response to a target field boundary dividing operation of a user, and defines a target field boundary in the outdoor space model. The terminal equally divides the horizontal plane of the boundary of the target field into grids formed by a plurality of cells, and takes each cell as an outdoor observation viewpoint to obtain outdoor observation viewpoint cells. As shown in fig. 2, the outdoor space is a field surrounded by a plurality of buildings, two trees are arranged in the field, the boundary of the target field of the outdoor space model is an irregular area surrounded by the plurality of buildings, as shown in fig. 3, the terminal equally divides the rectangular area into a plurality of cells to form outdoor observation viewpoint cells, and the terminal takes the midpoint position of each cell as the outdoor observation viewpoint of the cell. The outdoor space three-dimensional model may be, but is not limited to, a space three-dimensional model built by a rho modeling software and a Grasshopper plug-in. The target site boundary is a three-dimensional boundary of a target building, and the target building needing to calculate the outdoor space enclosing degree is arranged in the target site boundary range. The cell size may be, but is not limited to, a planar area of 1m x 1m, 0.5m x 0.5m, or 0.2m x 0.2 m.
Step S102, for each outdoor observation viewpoint in the outdoor observation viewpoint unit cell, acquiring the surrounding degree element information of the outdoor observation viewpoint based on the outdoor observation viewpoint, and calculating the space surrounding degree of the outdoor observation viewpoint according to the surrounding degree element information of the outdoor observation viewpoint through an outdoor space surrounding degree algorithm.
In this embodiment, the terminal acquires, for each outdoor observation point, the enclosure factor information acquired from the outdoor observation point based on the outdoor observation point. The enclosure factor information is parameter information required to be calculated by an outdoor space enclosure algorithm. The enclosure factor information comprises height-width ratio information, an enclosure factor total area, sky visibility, a top coverage outdoor space enclosure algorithm, a field area, a field perimeter and axis parameter information of the longest and shortest axes of the field plane. The specific process of acquiring the enclosure factor information of the outdoor observation point will be described in detail later. And the terminal inputs the information of each enclosing factor into an outdoor space enclosing algorithm to obtain the space enclosing of the outdoor observation viewpoint.
Wherein, the formula for calculating the degree of enclosing of the outdoor space
Figure SMS_1
In the formula (1), the components are as follows,
Figure SMS_3
Is constant and is->
Figure SMS_7
Outdoor i-point space enclosing degree, < ->
Figure SMS_11
: any point in space emits a horizontal ray to be projected and intersected with a space boundary plane, and the ratio of the height of a boundary surrounding compound corresponding to the intersection point to the horizontal distance from the intersection point to the origin of the ray is abbreviated as an aspect ratio, and the ratio is>
Figure SMS_4
Outdoor i-point height-width ratio average value +.>
Figure SMS_8
: outdoor i-point height-width ratio standard deviation +.>
Figure SMS_12
: total area of outdoor i-point enclosing element +.>
Figure SMS_14
: space area (I)>
Figure SMS_2
: outdoor i-point sky visibility, +.>
Figure SMS_6
: outdoor i-point top coverage, ->
Figure SMS_10
: space perimeter, a: the axial length. Assuming any point in space, making a horizontal straight line through the point, intersecting with the projection of a space boundary plane, and calculating the length of a line segment between intersection points>
Figure SMS_13
Corresponding to the maximum difference of (2)/>
Figure SMS_5
And->
Figure SMS_9
In formula (2), en: the degree of the surrounding of the outdoor space,
Figure SMS_15
: outdoor i-point space enclosing degree, n: the total number of viewpoints is observed.
Similarly, through the steps, the terminal obtains the space enclosing degree of each outdoor observation viewpoint.
Step S103, determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining the analysis result of the outdoor space model according to the outdoor space enclosing degree.
In this embodiment, the terminal performs an average processing on the space enclosing degrees of all the outdoor observation viewpoints, to obtain the outdoor space enclosing degree of the outdoor space model. The terminal presets an analysis template of the outdoor space model, and brings the outdoor space enclosing degree into the analysis template of the outdoor space model to obtain an analysis result of the outdoor space model.
Based on the scheme, the outdoor space enclosing degree of the outdoor space model is determined by establishing the outdoor observation viewpoint unit cells in the outdoor space model and based on the space enclosing degree of each outdoor observation viewpoint, and the analysis result of the outdoor space is determined, so that the problem that the outdoor space enclosing degree cannot be determined is avoided, and the quantitative determination of the outdoor space enclosing degree is ensured.
Optionally, based on the outdoor observation viewpoint, acquiring enclosure factor information of the outdoor observation viewpoint includes: radiating a plurality of rays outwards through an outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field; acquiring intersection point information of each ray and other shielding objects within the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information; based on the outdoor space model, when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model, the intersection point information of the ray and a shielding object of the outdoor space model is obtained, the sky visibility of the outdoor observation viewpoint is determined, and the top coverage of the outdoor observation viewpoint is determined according to the intersection point information of the ray in the intersection point information and the shielding object of the target; the height-width ratio information, the total area of visible surrounding elements, the sky visibility and the top coverage are taken as the surrounding element information of the outdoor observation view point.
In this embodiment, for each outdoor observation point, the terminal transmits 360 rays outward on average through a horizontal plane of the outdoor observation point within a boundary range of the target field, and an included angle between two adjacent rays is 1 °. And the terminal calculates the ratio of the height to the width between each ray and the intersection point of the boundary range of the target field to obtain the ratio information of the height to the width of the boundary range of the target field. And the terminal acquires information of the intersection point of each ray and the shielding object within the boundary range of the target field. The intersection point information is the position information of the intersection point of the ray and the shielding object, and the position information is the three-dimensional coordinate information of a coordinate system where the outdoor space model is located. And the terminal calculates the total area of the visible enclosing elements of the outdoor observation view point based on the intersection point information. The terminal acquires boundary information of the outdoor space model, wherein the boundary information is three-dimensional coordinate information of the outdoor space model (the three-dimensional coordinate information is three-dimensional coordinate information established in a coordinate system where the outdoor space model is located), when the terminal acquires intersection point information of each ray of an outdoor observation viewpoint and a shielding object of the outdoor space model when the rays are transmitted to the boundary of the outdoor space model, the proportion of the number of rays with intersection points and the number of rays without intersection points is calculated, and sky visibility of the outdoor observation viewpoint is obtained. And the terminal screens out the intersection point information of the rays emitted by the outdoor observation viewpoint and the target shielding object from the intersection point information, and calculates the top coverage of the outdoor observation viewpoint based on the proportion of the number of rays corresponding to the intersection point information of the rays emitted by the outdoor observation viewpoint and the target shielding object to the number of all rays. The terminal uses the height-width ratio information, the total area of visible surrounding elements, the sky visibility and the top coverage as the surrounding element information of the outdoor observation view point. The specific acquisition process of each specific enclosing factor information will be described in detail later. Similarly, through the scheme, the terminal obtains the enclosure factor information of each outdoor observation viewpoint.
Based on the scheme, the terminal collects the enclosing degree element information of the outdoor space model through each outdoor observation viewpoint, so that the subsequent enclosing degree calculation processing through an outdoor space enclosing degree algorithm is facilitated, and the calculating processing convenience of the outdoor space is improved.
Optionally, radiating a plurality of rays outwards through an outdoor observation viewpoint, and acquiring the aspect ratio information of each ray and the boundary range of the target field, including: radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through an outdoor observation viewpoint to acquire horizontal intersection point information of each horizontal ray and the boundary range of the target field; for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring vertical intersection point information of the vertical ray and a shielding object; and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information of the vertical intersection points connected through the vertical rays, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
In this embodiment, the terminal radiates a plurality of horizontal rays to the horizontal plane in the boundary range of the target field through the outdoor observation viewpoint, and acquires the horizontal intersection point information of each horizontal ray and the boundary range of the target field. As shown in fig. 4, the terminal irradiates 360 rays to a horizontal plane within the boundary range by looking at the viewpoint outdoors within the boundary range, and the terminal uses the position information of the intersection point of the rays and the boundary of the target field as the position information of the horizontal intersection point. The terminal radiates a ray to the direction vertical to the horizontal plane aiming at each horizontal intersection point information, and takes the intersection point information of the ray and the shielding object of the field range boundary as the vertical intersection point information. As shown in fig. 5, the terminal obtains a plurality of vertical intersection point information. And the terminal calculates the height-width ratio of the vertical intersection point information corresponding to each ray and the horizontal intersection point information connected with the vertical intersection point through the vertical rays through an aspect ratio calculation formula, and averages all the height-width ratios to obtain the aspect ratio information of the boundary range of the target field.
Based on the scheme, the data base is provided for the subsequent calculation of the outdoor space enclosing degree of the outdoor space model by calculating the height-width ratio information of the boundary range of the target field.
Optionally, acquiring intersection point information of each ray and a shelter within a boundary range of the target field, and determining a total area of visible enclosure elements of the outdoor observation viewpoint based on the intersection point information, including: acquiring area information of each shielding object around a target shielding object in an outdoor space model; in the outdoor space model, acquiring information of intersection points of each ray and a shielding object in the outdoor space model; and determining the total area of the visible enclosing elements of the outdoor observation viewpoint based on the number of the intersecting point information of each shielding object, the number of rays and the area information of each shielding object around the target shielding object in the outdoor space model.
In this embodiment, the terminal obtains area information of each shielding object around the target shielding object in the outdoor space model, where the area information of the shielding object may be, but is not limited to, a wall surface area. As shown in fig. 6, the terminal performs a planar gridding process for each of the blinders and radiates rays toward the center of each of the grids through the outdoor viewing point. As shown in fig. 7, the terminal obtains intersection information of each ray with the obstruction in the outdoor space model. The terminal calculates the ratio between the number of rays corresponding to the intersection point information of each shielding object and the number of rays without the intersection point information, and multiplies the ratio with the number of rays to obtain the area information of each shielding object around the target shielding object in the outdoor space model, so as to obtain the total area of the visible enclosing elements of the outdoor observation viewpoint. Based on the scheme, the terminal obtains the total area of the visible surrounding elements of each outdoor observation viewpoint.
Based on the scheme, the data base is provided for the subsequent calculation of the outdoor space enclosing degree of the outdoor space model by calculating the total area of the visible enclosing elements of the outdoor observation view point.
Optionally, based on the outdoor space model, when each ray of the outdoor observation viewpoint is acquired and transmitted to the boundary of the outdoor space model, the intersection point information of the ray and the shielding object of the outdoor space model is acquired, and the sky visibility of the outdoor observation viewpoint is determined, including: transmitting each ray of an outdoor observation viewpoint to the boundary of the outdoor space model based on the outdoor space model to obtain information of intersecting points of each ray and each shielding object of the outdoor space model; and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
In this embodiment, the terminal constructs an outdoor space model boundary of the outdoor space model based on the outdoor space model. Wherein, as shown in fig. 8, the boundary may be a hemispherical boundary. The terminal radiates rays in the three-dimensional space of the outdoor space model at all angles through an outdoor observation viewpoint, the ray included angle between every two adjacent rays is 1 degrees, and as shown in fig. 9, the terminal ensures that the final intersection point of each ray is at the boundary of the outdoor space model. As shown in fig. 10, the terminal determines intersection point information of each ray and determines whether or not intersection point information exists for each ray in addition to the intersection point information with the outdoor space model boundary. The terminal counts the number of rays for which intersection point information exists, and the number of rays for which intersection point information does not exist. And calculating the ratio of the number of rays with the intersection point information to the number of rays without the intersection point information, wherein the terminal takes the ratio as the sky visibility of the outdoor observation viewpoint.
Based on the scheme, the sky visibility of the outdoor observation view point is calculated, so that a data basis is provided for the subsequent calculation of the outdoor space enclosing degree of the outdoor space model.
Optionally, determining the top coverage of the outdoor observation viewpoint according to the intersection point information of the ray in the intersection point information and the target shielding object includes: aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information; and determining the top coverage of the outdoor observation viewpoint according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
In this embodiment, the terminal acquires, for each ray of the outdoor observation viewpoint, all intersection point information of the ray and the target shielding object, and uses intersection point information with the farthest linear distance from the outdoor observation viewpoint in all the intersection point information as top covering intersection point information; as shown in fig. 11, the terminal obtains top cover intersection point information for each ray of the outdoor viewing point. And the terminal calculates the number of rays corresponding to the top covering intersection point information and the proportion of the number of rays to all rays, and takes the proportion as the top covering degree of the outdoor observation viewpoint.
Based on the scheme, the data base is provided for the subsequent calculation of the outdoor space enclosing degree of the outdoor space model by calculating the top covering degree of the outdoor observation viewpoint.
Optionally, after acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint, the method further includes: establishing vertical double rays in a horizontal plane of a boundary range of a target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays; and selecting the length of the vertical double ray corresponding to the length difference with the largest length difference from the length differences to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
In this embodiment, the terminal randomly establishes two vertical double rays in a horizontal plane of the boundary range of the target site, and as shown in fig. 11, two ends of the vertical double rays are connected to the boundary direction of the target site. Wherein the vertical double ray may intersect a midpoint within the boundary of the target field. The terminal rotates the vertical double-ray, ensures that the two ends of the vertical double-ray are always connected with the boundary of the target field, records the length change of the vertical double-ray, and calculates the length difference value of the vertical double-ray when the length change is carried out each time. After the vertical double rays rotate 360 degrees, the terminal selects the length of each ray in the vertical double rays corresponding to the maximum length difference value from all the length difference values as the axis parameter information of the outdoor space enclosing degree algorithm, namely in the calculation process
Figure SMS_16
Corresponding to the maximum difference in (2)>
Figure SMS_17
And->
Figure SMS_18
Based on the scheme, the axis parameter information of the outdoor space enclosing degree algorithm is calculated, so that a data basis is provided for the subsequent calculation of the outdoor space enclosing degree of the outdoor space model.
The application also provides an outdoor space enclosing degree determining example, as shown in fig. 12, and the specific processing procedure includes the following steps:
step S1201, defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing an outdoor observation viewpoint cell in a range surrounded by the target field boundary.
Step S1202, radiating a plurality of horizontal rays to the horizontal plane in the boundary range of the target field through an outdoor observation viewpoint, and acquiring horizontal intersection point information of each horizontal ray and the boundary range of the target field.
In step S1203, for each horizontal intersection point information, a vertical ray is emitted to the vertical plane, and the vertical intersection point information of the vertical ray and the obstruction is acquired.
In step S1204, the aspect ratio of each piece of vertical intersection information to the horizontal intersection information of the vertical intersection connected by the vertical ray is calculated, and the aspect ratio information of the boundary range of the target site is determined based on all the aspect ratio values.
Step S1205, obtaining area information of each shielding object around the target shielding object in the outdoor space model.
In step S1206, in the outdoor space model, intersection point information of each ray and the obstruction in the outdoor space model is acquired.
Step S1207, determining the total area of the visible enclosure elements of the outdoor observation viewpoint based on the number of intersecting point information of each of the obstacles, the number of rays, and the area information of each of the obstacles around the target obstacle in the outdoor space model.
Step S1208, based on the outdoor space model, transmitting each ray of the outdoor observation viewpoint to the boundary of the outdoor space model, to obtain the intersection point information of each ray and each shielding object of the outdoor space model.
Step S1209, determining the sky visibility of the outdoor observation viewpoint according to the number of rays having the intersection point information and the number of rays having no intersection point information.
Step S1210, regarding each ray, regarding intersection point information of the ray and the target shielding object, which is farthest from the straight line distance of the outdoor observation point, as top shielding intersection point information.
Step S1211, determining the top coverage of the outdoor observation point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
In step S1212, a vertical dual-ray is established in the horizontal plane of the target field boundary, and the vertical dual-ray is rotated with the target field boundary as the ray boundary, so as to obtain the length difference of the vertical dual-ray.
In step S1213, in each length difference, the length of the vertical dual ray corresponding to the length difference with the largest length difference is selected, so as to obtain the axis parameter information of the outdoor space enclosing degree algorithm.
In step S1214, the aspect ratio information, the total area of visible surrounding elements, the sky visibility, the axis parameter information, and the top coverage are used as surrounding element information of the outdoor observation point.
In step S1215, the space enclosing degree of the outdoor observation viewpoint is calculated according to the enclosing degree element information of the outdoor observation viewpoint by the outdoor space enclosing degree algorithm.
Step S1216, determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all the outdoor observation viewpoints, and determining the analysis result of the outdoor space model according to the outdoor space enclosing degree.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. 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 in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an outdoor space enclosing degree determining device for implementing the above related outdoor space enclosing degree determining method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of the outdoor space enclosing degree determining apparatus provided below may refer to the limitation of the outdoor space enclosing degree determining method described above, and will not be repeated here.
In one embodiment, as shown in fig. 13, there is provided an outdoor space enclosure determining apparatus including: a definition module 1310, an acquisition module 1320, and a determination module 1330, wherein:
a defining module 1310, configured to define a target site boundary in an outdoor space model based on the outdoor space model, and establish an outdoor observation viewpoint cell in a range surrounded by the target site boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
an obtaining module 1320, configured to obtain, for each outdoor observation viewpoint in the outdoor observation viewpoint unit cell, surrounding degree element information of the outdoor observation viewpoint based on the outdoor observation viewpoint, and calculate, according to the surrounding degree element information of the outdoor observation viewpoint, a spatial surrounding degree of the outdoor observation viewpoint by an outdoor spatial surrounding degree algorithm;
The determining module 1330 is configured to determine an outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all the outdoor observation viewpoints, and determine an analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring module 1320 is specifically configured to:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
and taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the acquiring module 1320 is specifically configured to:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring module 1320 is specifically configured to:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, the acquiring module 1320 is specifically configured to:
transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the acquiring module 1320 is specifically configured to:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, the enclosure factor information includes axis parameter information, and the apparatus further includes:
the computing module is used for establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
And the selection module is used for selecting the length of the vertical double ray corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
The respective modules in the above-described outdoor space enclosure determination apparatus 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.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 14. The computer device includes a processor, a memory, a communication 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 communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of outdoor space enclosing degree determination. 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.
It will be appreciated by those skilled in the art that the structure shown in fig. 14 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm;
And determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint includes:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
and taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the radiating a plurality of rays outwards from the outdoor observation viewpoint and acquiring the aspect ratio information of each ray and the boundary range of the target field includes:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring information of an intersection point of each ray and a shelter within the boundary range of the target field, and determining a total area of visible enclosure elements of the outdoor observation viewpoint based on the information of the intersection point, includes:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
And determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, when each ray of the outdoor observation viewpoint is acquired based on the outdoor space model and transmitted to the boundary of the outdoor space model, the intersection point information of the ray and a shielding object of the outdoor space model determines the sky visibility of the outdoor observation viewpoint, which includes:
transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the determining the top coverage of the outdoor observation viewpoint according to the intersection point information of the ray in the intersection point information and the target shielding object includes:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
And determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, after the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint, the method further includes:
establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
and selecting the length of the vertical double rays corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
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:
defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
Acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm;
and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint includes:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
And taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the radiating a plurality of rays outwards from the outdoor observation viewpoint and acquiring the aspect ratio information of each ray and the boundary range of the target field includes:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring information of an intersection point of each ray and a shelter within the boundary range of the target field, and determining a total area of visible enclosure elements of the outdoor observation viewpoint based on the information of the intersection point, includes:
Acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, when each ray of the outdoor observation viewpoint is acquired based on the outdoor space model and transmitted to the boundary of the outdoor space model, the intersection point information of the ray and a shielding object of the outdoor space model determines the sky visibility of the outdoor observation viewpoint, which includes:
transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the determining the top coverage of the outdoor observation viewpoint according to the intersection point information of the ray in the intersection point information and the target shielding object includes:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, after the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint, the method further includes:
establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
and selecting the length of the vertical double rays corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
Defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
acquiring surrounding degree element information of the outdoor observation viewpoints based on the outdoor observation viewpoints aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit lattice, and calculating the space surrounding degree of the outdoor observation viewpoints according to the surrounding degree element information of the outdoor observation viewpoints through an outdoor space surrounding degree algorithm;
and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree.
Optionally, the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint includes:
radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
Acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
and taking the height-width ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint.
Optionally, the radiating a plurality of rays outwards from the outdoor observation viewpoint and acquiring the aspect ratio information of each ray and the boundary range of the target field includes:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
And calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
Optionally, the acquiring information of an intersection point of each ray and a shelter within the boundary range of the target field, and determining a total area of visible enclosure elements of the outdoor observation viewpoint based on the information of the intersection point, includes:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
Optionally, when each ray of the outdoor observation viewpoint is acquired based on the outdoor space model and transmitted to the boundary of the outdoor space model, the intersection point information of the ray and a shielding object of the outdoor space model determines the sky visibility of the outdoor observation viewpoint, which includes:
Transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
Optionally, the determining the top coverage of the outdoor observation viewpoint according to the intersection point information of the ray in the intersection point information and the target shielding object includes:
aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
Optionally, after the acquiring the enclosure factor information of the outdoor observation viewpoint based on the outdoor observation viewpoint, the method further includes:
establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
And selecting the length of the vertical double rays corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
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-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
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 only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method for determining the degree of enclosure of an outdoor space, the method comprising:
defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
for each outdoor observation viewpoint in the outdoor observation viewpoint unit cell, radiating a plurality of rays outwards through the outdoor observation viewpoint, and acquiring the height-width ratio information of each ray and the boundary range of the target field;
Acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information;
acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information;
taking the aspect ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint;
calculating the space enclosing degree of the outdoor observation viewpoint according to the enclosing degree element information of the outdoor observation viewpoint through an outdoor space enclosing degree algorithm;
and determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining an analysis result of the outdoor space model according to the outdoor space enclosing degree.
2. The method of claim 1, wherein radiating a plurality of rays outward through the outdoor viewing point and obtaining aspect ratio information for each ray to the target site boundary range comprises:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
3. The method of claim 1, wherein the acquiring intersection information of each ray with the obstruction within the target site boundary and determining the total area of visible enclosure elements of the outdoor viewing point based on the intersection information comprises:
acquiring area information of each shielding object around the target shielding object in the outdoor space model;
Acquiring information of intersection points of each ray and a shielding object in the outdoor space model;
and determining the total area of the visible surrounding elements of the outdoor observation viewpoint based on the number of the intersecting point information of the shielding objects, the number of rays and the area information of the shielding objects around the target shielding object in the outdoor space model.
4. The method of claim 1, wherein the acquiring, based on the outdoor space model, intersection information of each ray of the outdoor observation point to an occlusion of the outdoor space model when the ray is transmitted to the outdoor space model boundary, determining sky visibility of the outdoor observation point comprises:
transmitting each ray of the outdoor observation viewpoint to an outdoor space model boundary based on the outdoor space model to obtain intersection point information of each ray and each shielding object of the outdoor space model;
and determining the sky visibility of the outdoor observation viewpoint according to the number of rays with the intersection point information and the number of rays without the intersection point information.
5. The method of claim 2, wherein the determining the top coverage of the outdoor viewing point based on the intersection information of the ray in the intersection information and the target occlusion comprises:
Aiming at each ray, taking intersection point information with the farthest linear distance from the outdoor observation viewpoint in the intersection point information of the ray and the target shielding object as top covering intersection point information;
and determining the top coverage of the outdoor observation view point according to the number of rays corresponding to the top coverage intersection point information and the number of all rays.
6. The method according to claim 1, wherein the enclosure factor information includes axis parameter information, and the acquiring the enclosure factor information of the outdoor observation point based on the outdoor observation point further includes:
establishing vertical double rays in a horizontal plane of the boundary range of the target field, and rotating the vertical double rays by taking the boundary of the target field as a ray boundary to obtain a length difference value of the vertical double rays;
and selecting the length of the vertical double rays corresponding to the length difference value with the largest length difference value from the length difference values to obtain the axis parameter information of the outdoor space surrounding degree algorithm.
7. An outdoor space enclosure determination device, characterized by comprising:
the definition module is used for defining a target field boundary in the outdoor space model based on the outdoor space model, and establishing outdoor observation viewpoint cells in a range surrounded by the target field boundary; the outdoor viewing point unit cell includes a plurality of outdoor viewing points;
The acquisition module is used for radiating a plurality of rays outwards through the outdoor observation viewpoint aiming at each outdoor observation viewpoint in the outdoor observation viewpoint unit cell and acquiring the height-width ratio information of each ray and the boundary range of the target field; acquiring intersection point information of each ray and a shielding object in the boundary range of the target field, and determining the total area of visible enclosing elements of the outdoor observation viewpoint based on the intersection point information; acquiring intersection point information of a ray and a shielding object of the outdoor space model when each ray of the outdoor observation viewpoint is transmitted to the boundary of the outdoor space model based on the outdoor space model, determining sky visibility of the outdoor observation viewpoint, and determining top coverage of the outdoor observation viewpoint according to the intersection point information of the ray and the target shielding object in the intersection point information; taking the aspect ratio information, the total area of the visible surrounding elements, the sky visibility and the top coverage as surrounding element information of the outdoor observation viewpoint; calculating the space enclosing degree of the outdoor observation viewpoint according to the enclosing degree element information of the outdoor observation viewpoint through an outdoor space enclosing degree algorithm;
The determining module is used for determining the outdoor space enclosing degree of the outdoor space model based on the space enclosing degrees of all outdoor observation viewpoints, and determining the analysis result of the outdoor space model according to the outdoor space enclosing degree.
8. The apparatus of claim 7, wherein the obtaining module is specifically configured to:
radiating a plurality of horizontal rays to a horizontal plane in the boundary range of the target field through the outdoor observation viewpoint to obtain horizontal intersection point information of each horizontal ray and the boundary range of the target field;
for each piece of horizontal intersection point information, emitting a vertical ray to a vertical plane, and acquiring the vertical intersection point information of the vertical ray and the shielding object;
and calculating the height-width ratio of each piece of vertical intersection point information to the horizontal intersection point information connected with the vertical intersection point through a vertical ray, and determining the height-width ratio information of the boundary range of the target field based on all the height-width ratios.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
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, implements the steps of the method of any of claims 1 to 6.
CN202310146836.1A 2023-02-22 2023-02-22 Outdoor space enclosing degree determining method, device, computer equipment and storage medium Active CN115879207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310146836.1A CN115879207B (en) 2023-02-22 2023-02-22 Outdoor space enclosing degree determining method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310146836.1A CN115879207B (en) 2023-02-22 2023-02-22 Outdoor space enclosing degree determining method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115879207A CN115879207A (en) 2023-03-31
CN115879207B true CN115879207B (en) 2023-05-16

Family

ID=85761442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310146836.1A Active CN115879207B (en) 2023-02-22 2023-02-22 Outdoor space enclosing degree determining method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115879207B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115115786A (en) * 2022-07-21 2022-09-27 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for three-dimensional model generation
CN115346008A (en) * 2022-07-20 2022-11-15 中国化学工程股份有限公司 Three-dimensional visualization processing method, device and equipment for engineering investigation and storage medium
CN115482340A (en) * 2022-10-28 2022-12-16 中广核研究院有限公司 Three-dimensional scene modeling method and device, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4803581B2 (en) * 2006-01-27 2011-10-26 独立行政法人農業・食品産業技術総合研究機構 Landscape analysis method, computer program for executing the method, and medium storing the program
CN107368625A (en) * 2017-06-19 2017-11-21 中国建筑第八工程局有限公司 A kind of multifunctional hall seat arrangement method based on BIM technology
CN110704915B (en) * 2019-09-20 2023-07-07 同济大学建筑设计研究院(集团)有限公司 Sight line analysis method, device, computer equipment and storage medium
CN110704914B (en) * 2019-09-20 2023-09-19 同济大学建筑设计研究院(集团)有限公司 Sight line analysis method, device, computer equipment and storage medium
CN112230759B (en) * 2020-09-10 2021-10-29 东南大学 Dynamic interactive urban viewing corridor identification and planning simulation method
CN115512038B (en) * 2022-07-22 2023-07-18 北京微视威信息科技有限公司 Real-time drawing method for free viewpoint synthesis, electronic device and readable storage medium
CN114937125B (en) * 2022-07-25 2022-10-25 深圳大学 Reconstructable metric information prediction method, reconstructable metric information prediction device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115346008A (en) * 2022-07-20 2022-11-15 中国化学工程股份有限公司 Three-dimensional visualization processing method, device and equipment for engineering investigation and storage medium
CN115115786A (en) * 2022-07-21 2022-09-27 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for three-dimensional model generation
CN115482340A (en) * 2022-10-28 2022-12-16 中广核研究院有限公司 Three-dimensional scene modeling method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115879207A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
Liang et al. A visualization-oriented 3D method for efficient computation of urban solar radiation based on 3D–2D surface mapping
CN111369657B (en) Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
CN113628331B (en) Data organization and scheduling method for photogrammetry model in illusion engine
US20140218360A1 (en) Bim and display of 3d models on client devices
CN106663330A (en) Systems and methods for mass distribution of 3-dimensional reconstruction over network
WO2015126663A1 (en) Real-time spatial daylighting analysis for a 3d geometric structure
US20060066608A1 (en) System and method for determining line-of-sight volume for a specified point
CN111862292A (en) Data rendering method and device for power transmission line corridor and computer equipment
CN114596423A (en) Model rendering method and device based on virtual scene gridding and computer equipment
CN115879207B (en) Outdoor space enclosing degree determining method, device, computer equipment and storage medium
CN116012520B (en) Shadow rendering method, shadow rendering device, computer equipment and storage medium
CN115984440B (en) Object rendering method, device, computer equipment and storage medium
CN116109799A (en) Method, device, computer equipment and storage medium for training adjustment model
CN115511701A (en) Method and device for converting geographic information
Huang et al. Light field modelling and interpolation using Kriging techniques
CN114781140A (en) Laser radar point cloud simulation method and device and computer equipment
Kimm Actual and experiential shadow origin tagging: A 2.5 D algorithm for efficient precinct-scale modelling
US20040181373A1 (en) Visual simulation of dynamic moving bodies
KR102446739B1 (en) Method for generating virtual reality data automatically based on information of floor plan
CN117392358B (en) Collision detection method, collision detection device, computer device and storage medium
XIAO et al. Integration method of TINs and Grids for multi-resolution surface modeling
CN117557711B (en) Method, device, computer equipment and storage medium for determining visual field
Miao et al. Spatial hashing based contact detection for numerical manifold method
CN115601512B (en) Interactive three-dimensional reconstruction method and device, computer equipment and storage medium
CN115205434B (en) Point cloud data visualization processing method and device

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