A method for determining the best floor and viewing angle of an observation deck based on line of sight analysis
Through the method based on line of sight analysis, Dynamo and Revit construct the line of sight simulation cone, the problem of low positioning accuracy of traditional observation decks is solved, and the optimal floor and perspective positioning of the observation deck is achieved more efficient and accurate.
Patent Information
- Application Number
- CN202210002666.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-01-04
AI Technical Summary
The accuracy of the optimal floor viewing and viewing angle positioning methods of traditional buildings is greatly affected by human subjective factors, and the relationship between the building and the surrounding environment cannot be fully considered, resulting in insufficient positioning.
Using a method based on line of sight analysis, the line of sight simulation cone is constructed through Dynamo visual programming, combined with the Revit three-dimensional model, the viewpoint origin and line of sight parameters are adjusted, and the parameterized prediction model is generated to locate the best floor and view angle.
It improves the accuracy and efficiency of determining the optimal floor and perspective of the building, reduces the influence of human subjective factors, and can more accurately consider the relationship between the building and the surrounding environment.
Smart Images

Figure CN114444178B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of positioning technology, and more specifically, relates to a method for determining the best floor and viewing angle of an observation platform based on line of sight analysis. Background Art
[0002] An observation deck is a natural place to stay without any artificial carving or a purely artificial building or structure set up in a specific location. It is mainly a place for observing and enjoying the scenery. In recent years, with the rapid rise of urban high-rise buildings, especially as landmark buildings that showcase urban culture and urban heritage, building observation decks have now become a beautiful new landscape.
[0003] With the acceleration of the pace of urban life and the continuous increase in work pressure, the viewing floor of the building has become one of the iconic designs of humanized office space. For the staff, the viewing floor of the building can well relieve everyone's work tension and fatigue, allowing employees to rest and relax, and enter the working state faster, better meeting the functional requirements of the building. The key to the design of the viewing floor of the building lies in the selection of floors. The selected floors need to consider the relationship between the building and the surrounding environment, the landscape of regional culture and local culture, and the effect of architectural aesthetics. Architects generally design the viewing floor of the building directly at the golden section of the part above 1 / 2 of the main building based on design experience. This design positioning does not fully consider the influence of the above external factors, is greatly affected by human subjective factors, and is not accurate enough. Therefore, a method of changing the traditional viewing floor positioning is needed to improve the accuracy of the best viewing floor and viewing angle positioning of the building. Summary of the invention
[0004] 1. Problem to be solved
[0005] The purpose of the present invention is to solve the problem that the accuracy of the traditional method for determining the best floor and viewing angle for viewing in a building is greatly affected by human subjective factors and the accuracy is not high, and a method for determining the best floor and viewing angle of an observation deck based on line of sight analysis is provided. The technical solution of the present invention can effectively solve the above problems and improve the accuracy of the best floor and viewing angle for viewing in a building.
[0006] 2. Technical solution
[0007] In order to solve the above problems, the technical solution adopted by the present invention is as follows:
[0008] A method for determining the best floor and viewing angle of an observation deck based on line of sight analysis of the present invention comprises the following steps:
[0009] Step 1: Use Dynamo visual programming to create a sightline simulation cone structure model;
[0010] Step 2: Import the built 3D visualization model of the building into Dynamo and read the 3D model;
[0011] Step 3: Use the variable sliding definition box to parametrically adjust the cone origin O coordinate (X, Y, Z), and adjust the viewpoint origin to the preset floor position of the building's three-dimensional model;
[0012] Step 4: Import the 3D visualization model of the existing buildings and facilities around the building viewpoint into Dynamo;
[0013] Step 5: Generate ray vectors using the viewpoint origin set in step 3, perform collision simulation with the 3D model of the surrounding existing buildings and facilities to form collision points; filter out invalid points to form a valid point set list file, and finally regenerate a color-mapped sightline simulation cone in the 3D modeling software;
[0014] Step 6: Finally, use Dynamo Player to directly adjust the sightline parameters in the 3D modeling software to locate the best floor and viewing angle of the building's observation deck.
[0015] Furthermore, in step 1, the construction process of the parameterized sight line simulation cone model is as follows:
[0016] S1: Call the viewpoint parameters in the Dynamo visual programming function library, including the viewpoint horizontal position, the Y variable sliding definition box and the viewpoint height, to form the viewpoint origin O coordinates (X, Y, Z);
[0017] S2: Call the bird’s-eye view angle in the Dynamo visual programming function library and adjust it according to the angle parameters to control the viewing angle of the viewing floor;
[0018] S3: Call the sight distance L in the Dynamo visual programming function library, and adjust it according to the L sight distance parameter to control the length of the ray emitted from the viewpoint origin;
[0019] S4: Call the angle α between the sight lines in the Dynamo visual programming function library, and adjust the angle parameter according to α to control the density of rays emitted from the viewpoint origin;
[0020] S5: Call the coding box in Dynamo visual programming to compile the viewpoint origin coordinates, the overlooking angle, the sight distance and the average angle between sights into control codes to form a variable parameter linkage function and generate a parameterized sight simulation cone model.
[0021] Furthermore, in step 2 and step 4, Revit software is used to establish a three-dimensional visualization model of the building and the original buildings and facilities surrounding the building.
[0022] Furthermore, in step 2 and step 4, the in-situ import of the 3D visual model is achieved by calling the coding box SelectModel Elements in the Dynamo visual programming.
[0023] Furthermore, in step five, the Raybounce.ByOriginDirection function in the Dynamo visual programming function library is called to perform a collision check between the viewpoint ray vector and the three-dimensional model of the surrounding existing buildings and facilities. The function input parameters include: viewpoint origin coordinates (X, Y, Z), line of sight distance L, number of collision reflections n and overhead angle; the result output is the sum of the vector starting point, vector end point and collision point.
[0024] Furthermore, the process of forming the valid point set list file in step five is: during the collision check, first screen out the viewpoint ray vector starting point O, and then use the space vector equation Ax+By+Cz=0 to screen out all the vector end points without collision, and combine the non-colliding vector end points and the collision point together to form a point set list file.
[0025] Furthermore, the process of regenerating the sight simulation cone in step 5 is: taking the sight origin O as the starting point, and the point set consisting of the non-colliding vector end point and the collision point as the end point, finally forming the sight simulation cone; then mapping the color of each sight simulation cone, and regenerating the color-mapped sight simulation cone entity in Revit.
[0026] Furthermore, the sight parameters adjusted in step six include the viewpoint starting point O (X, Y, Z), the overlooking angle θ, the sight distance L, and the average angle α between sights, wherein the Y coordinate value of the viewpoint starting point O is used to directly locate the floor with the best viewing view.
[0027] 3. Beneficial effects
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] (1) The present invention discloses a method for determining the best floor and viewing angle of an observation deck based on line of sight analysis. The method constructs a line of sight simulation cone through Dynamo visual programming and combines it with a three-dimensional model to obtain an accurate prediction model for locating the best floor and viewing angle of a building by directly adjusting line of sight parameters in the three-dimensional modeling software. The method effectively assists in solving the problem that when architects design and locate the best floor and viewing angle for viewing, they do not fully consider the interference of external environmental factors, are greatly affected by human subjective factors, and are not accurate enough. The method greatly improves the accuracy and efficiency of determining the best floor and viewing angle of the observation deck.
[0030] (2) The method for determining the best floor and viewing angle of an observation deck based on line of sight analysis of the present invention constructs a parameterized prediction model, which can be applied to all similar designs in the future. It only needs to modify the line of sight parameters according to the parameter information related to the design building and the surrounding original buildings and facilities environment. It is fast and convenient, and effectively meets the needs of architects to accurately locate the best floor and viewing angle for viewing in the design building. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of a method for determining the best floor and viewing angle of an observation deck based on line of sight analysis of the present invention;
[0032] Figure 2 It is a schematic diagram of the sight line simulation cone construction model in the present invention;
[0033] Figure 3 It is a flow chart of the parameterized sight line simulation cone coding generation construction model in the present invention;
[0034] Figure 4 It is a flow chart for importing the three-dimensional model of the building and the surrounding original buildings and facilities environment in the present invention;
[0035] Figure 5 It is a flow chart of parameter input and result output of collision check between viewpoint ray vector and Revit model in the present invention;
[0036] Figure 6 This is a flow chart of screening out the starting point of the viewpoint ray vector in the present invention;
[0037] Figure 7 It is a Python coding program diagram for selecting the end point of the collision-free vector in the present invention;
[0038] Figure 8 is a flow chart for screening the end point of the collision-free vector in the present invention;
[0039] Fig. 9 is a flow chart of the formation of the sight line simulation cone in the present invention;
[0040] Fig.10 It is a flow chart of the final sight line simulation cone entity mapping color of the present invention;
[0041] Fig.11 It is the sight line simulation cone entity that is finally mapped with colors in the present invention. DETAILED DESCRIPTION
[0042] In view of the problem that the accuracy of the best floor and viewing angle for building viewing is greatly affected by subjective factors when the traditional design experience is used in the prior art, and the selected floor cannot fully consider the relationship between the building and the surrounding environment, the landscape of regional culture and local culture, and the effect of architectural aesthetics, so that the positioning accuracy is difficult to guarantee, the present invention constructs a sightline simulation cone through Dynamo visual programming, and combines it with the Revit three-dimensional model to obtain an accurate prediction parameterized model that can directly adjust the sightline parameters in Revit to locate the best floor and viewing angle for building viewing. The prediction model of the present invention can quickly realize the accurate positioning of the best floor and viewing angle for building viewing.
[0043] Combination Figure 1-10 The method for determining the best floor and viewing angle of an observation deck based on line of sight analysis of the present invention mainly comprises the following steps:
[0044] Step 1: Use Dynamo visual programming to create a sightline simulation cone structure model;
[0045] S1: Call the viewpoint parameters in the Dynamo visual programming function library, including the viewpoint horizontal position: X variable sliding definition box, Y variable sliding definition box and viewpoint height: Z variable sliding definition box, such as Figure 2 As shown, the viewpoint origin O coordinates (X, Y, Z) are formed;
[0046] S2: Call the top-down angle θ in the Dynamo visual programming function library, such as Figure 2 As shown, the viewing angle of the viewing floor is controlled by parameterizing the adjustment according to the angle θ;
[0047] S3: Call the line of sight distance L in the Dynamo visual programming function library, such as Figure 2 As shown, the length of the ray emitted from the viewpoint origin O is controlled by adjusting the parameter according to the L view distance;
[0048] S4: Call the Dynamo visual programming function library to divide the angle α between the sight lines, such as Figure 2 As shown, the density of rays emitted from the viewpoint origin O is controlled by parameterizing the α angle.
[0049] S5: Call the Code Block in Dynamo visual programming, such as Figure 3 As shown, the viewpoint origin O coordinates (X, Y, Z), the overlooking angle θ, the sight distance L and the average angle α between sights are compiled into control codes to form a variable parameter linkage function to generate a parameterized sight simulation cone model.
[0050] Step 2: Import the completed building Revit model into Dynamo. Figure 4 As shown, read the Revit model;
[0051] Revit software is used to build a three-dimensional architectural visualization model of the building. The model only needs to express the architectural outline of the geometric information. The in-situ import of the Revit model is achieved by calling the coding box Select Model Elements in Dynamo visual programming.
[0052] Step 3: Use the variable sliding definition box to parametrically adjust the coordinates (X, Y, Z) of the cone origin O, such as Figure 3 As shown, adjust the viewpoint origin O to the preset floor position of the building Revit model;
[0053] Step 4: If Figure 4 As shown, the Revit model of the original buildings and facilities surrounding the building viewpoint is imported into Dynamo;
[0054] Revit software is used to build a 3D architectural visualization model cluster of the original buildings and facilities around the building's viewpoint. Each unit in the model cluster only needs to express the shape outline of geometric information. The in-situ import of the Revit model is achieved by calling the coding box Select Model Elements in Dynamo visual programming.
[0055] Step 5: Generate ray vectors using the viewpoint origin O set in step 3, and perform collision simulation with the Revit models of the surrounding existing buildings and facilities to form collision points. Filter invalid points to form a valid point set list file, and finally regenerate the color-mapped sightline simulation cone entity in Revit.
[0056] The specific process of forming the parameterized sight line simulation cone entity is as follows:
[0057] R1: Call the Raybounce.ByOriginDirection function in the Dynamo visual programming function library to perform a collision check between the viewpoint ray vector and the Revit model, such as Figure 5 As shown, the function input parameters include: viewpoint origin coordinates (X, Y, Z), line of sight distance L, number of collision reflections n, and overlooking angle; the result output is the sum of the vector starting point, vector end point, and collision point;
[0058] R2: Figure 6 As shown, the starting point O of the viewpoint ray vector is screened out;
[0059] R3: Figure 7 , Figure 8As shown, the embedded script IronPython is run through Dynamo, and a Python program is written to use the space vector equation Ax+By+Cz=0 to filter out all vector endpoints without collision, and the vector endpoints without collision and the collision points are combined to form a point set list file;
[0060] R4: Fig. 9 As shown, the Cone.ByPointsRadius function in the Dynamo visual programming function library is called to take the sight origin O as the starting point, and the point set consisting of the non-colliding vector end point and the collision point as the end point, and finally form a sight simulation cone;
[0061] R5: Fig.10 As shown, the Math.MapTo function in the Dynamo visual programming function library is called to map the color of each sight line simulation cone, and the ImportInstance.ByGeometry function in the function library is used to regenerate the color-mapped sight line simulation cone entity in Revit (such as Fig.11 shown).
[0062] The present invention uses Dynamo's built-in function RayBounce.ByOriginDirection to identify the collision point of the sight vector. The return value data of this function is the total set of point coordinates of all vector starting points, all vector end points, and collision points. According to the assumption of the program function, only the point coordinate sets of the non-colliding vector end points and the collision points are needed, so it is necessary to eliminate all the end points that have collided with the space vector. During the research process, the inventor found that the above operation cannot be achieved by conventional methods. Therefore, the present invention uses IronPython through dynamo to implement the embedding of python commands, and writes a python script. The relationship between all collision points and all space vectors is cross-compared with the spatial straight line equation, and the vectors with collision points are screened and their space vector end points are eliminated. Finally, the needs of the present invention are met, and only the point coordinate sets of the collision points and the non-colliding vector end points are retained.
[0063] Step 6: Finally, directly call Dynamo Player to adjust the sight parameters in Revit to directly locate the best floor and viewing angle for viewing the building.
[0064] Call Dynamo Player to directly adjust the sight parameters in Revit, including the viewpoint starting point O (X, Y, Z), the overlooking angle θ, the sight distance L, and the average angle α between sights. The Y coordinate value of the viewpoint starting point O is used to directly locate the floor with the best viewing angle.
Claims
1. A method for determining the best floor and viewing angle of an observation deck based on line of sight analysis, characterized in that: The following steps are involved: Step 1: Use Dynamo visual programming to create a sightline simulation cone structure model; Step 2: Import the built 3D visualization model of the building into Dynamo and read the 3D model; Step 3: Use the variable sliding definition box to parametrically adjust the cone origin O coordinate (X, Y, Z), and adjust the viewpoint origin to the preset floor position of the building's three-dimensional model; Step 4: Import the 3D visualization model of the existing buildings and facilities around the building viewpoint into Dynamo; Step 5: Generate ray vectors using the viewpoint origin set in step 3, perform collision simulation with the 3D model of the surrounding existing buildings and facilities to form collision points; filter out invalid points to form a valid point set list file, and finally regenerate a color-mapped sightline simulation cone in the 3D modeling software; Specifically, the Raybounce.ByOriginDirection function in the Dynamo visual programming function library is called to perform a collision check between the viewpoint ray vector and the three-dimensional model of the surrounding original buildings and facilities. The function input parameters include: viewpoint origin coordinates (X, Y, Z), line of sight distance L, collision reflection number n, and overlooking angle; The result output is the sum of the vector starting point, vector end point and collision point; The formation process of the effective point set list file is as follows: when checking for collision, first screen out the viewpoint ray vector starting point O, then use the space vector equation Ax+By+Cz=0 to screen out all vector end points without collision, and combine the vector end points without collision and the collision point together to form a point set list file; The process of regenerating the sight line simulation cone is as follows: taking the sight line origin O as the starting point, taking the point set consisting of the non-colliding vector end point and the collision point as the end point, and finally forming the sight line simulation cone; then mapping the color of each sight line simulation cone, and regenerating the sight line simulation cone entity with the mapped color in Revit; Step 6: Finally, use Dynamo Player to directly adjust the sightline parameters in the 3D modeling software to locate the best floor and viewing angle of the building's observation deck.
2. The method for determining the best floor and viewing angle of an observation deck based on line of sight analysis according to claim 1, characterized in that: In step 1, the construction process of the parameterized sight line simulation cone model is as follows: S1: Call the viewpoint parameters in the Dynamo visual programming function library, including the viewpoint horizontal position, the Y variable sliding definition box and the viewpoint height, to form the viewpoint origin O coordinates (X, Y, Z); S2: Call the bird’s-eye view angle in the Dynamo visual programming function library and adjust it according to the angle parameters to control the viewing angle of the viewing floor; S3: Call the sight distance L in the Dynamo visual programming function library, and adjust it according to the L sight distance parameter to control the length of the ray emitted from the viewpoint origin; S4: Call the angle α between the sight lines in the Dynamo visual programming function library, and adjust the angle parameter according to α to control the density of rays emitted from the viewpoint origin; S5: Call the coding box in Dynamo visual programming to compile the viewpoint origin coordinates, the overlooking angle, the sight distance and the average angle between sights into control codes to form a variable parameter linkage function and generate a parameterized sight simulation cone model.
3. The method for determining the best floor and viewing angle of an observation deck based on line of sight analysis according to claim 1, characterized in that: In step 2 and step 4, Revit software is used to create a three-dimensional visualization model of the building and the existing buildings and facilities surrounding it.
4. The method for determining the best floor and viewing angle of an observation deck based on line of sight analysis according to claim 3 is characterized in that: In step 2 and step 4, the in-situ import of the 3D visual model is achieved by calling the coding box Select ModelElements in the Dynamo visual programming.
5. A method for determining the best floor and viewing angle of an observation deck based on line of sight analysis according to any one of claims 1 to 3, characterized in that: The sight line parameters adjusted in step six include the viewpoint starting point O (X, Y, Z), the overlooking angle θ, the sight line distance L, and the average angle α between sight lines, among which the Y coordinate value of the viewpoint starting point O is used to directly locate the floor with the best viewing view.
Citation Information
Patent Citations
Three-dimensional model fast visualization method based on viewpoint indexes
CN105160707A
Prefabricated part model modeling method based on Revit and Dynamo
CN113721903A